|
@@ -183,11 +183,25 @@ const _sfc_main = {
|
|
pattern: /^\d+(\.\d{1,2})?$/,
|
|
pattern: /^\d+(\.\d{1,2})?$/,
|
|
message: "请输入正确的期望薪资"
|
|
message: "请输入正确的期望薪资"
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ // 获取配置信息
|
|
|
|
+ configData: (() => {
|
|
|
|
+ try {
|
|
|
|
+ const configStr = common_vendor.index.getStorageSync("configData");
|
|
|
|
+ if (configStr && configStr.trim()) {
|
|
|
|
+ return JSON.parse(configStr);
|
|
|
|
+ }
|
|
|
|
+ return {};
|
|
|
|
+ } catch (error) {
|
|
|
|
+ console.warn("解析配置数据失败:", error);
|
|
|
|
+ return {};
|
|
|
|
+ }
|
|
|
|
+ })()
|
|
};
|
|
};
|
|
},
|
|
},
|
|
onLoad() {
|
|
onLoad() {
|
|
this.fetchUserData();
|
|
this.fetchUserData();
|
|
|
|
+ console.log(this.configData);
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
// 添加计算属性来控制按钮显示
|
|
// 添加计算属性来控制按钮显示
|
|
@@ -203,6 +217,110 @@ const _sfc_main = {
|
|
// 获取当前步骤在数组中的索引
|
|
// 获取当前步骤在数组中的索引
|
|
currentStepIndex() {
|
|
currentStepIndex() {
|
|
return this.steps.findIndex((step) => step.id === this.currentStep);
|
|
return this.steps.findIndex((step) => step.id === this.currentStep);
|
|
|
|
+ },
|
|
|
|
+ // 添加安全的配置访问器
|
|
|
|
+ safeConfigData() {
|
|
|
|
+ return this.configData || {};
|
|
|
|
+ },
|
|
|
|
+ safeProfileFieldsConfig() {
|
|
|
|
+ return this.safeConfigData.profile_fields_config || {};
|
|
|
|
+ },
|
|
|
|
+ safeFamilyFieldsConfig() {
|
|
|
|
+ return this.safeConfigData.family_fields_config || {};
|
|
|
|
+ },
|
|
|
|
+ safeEducationFieldsConfig() {
|
|
|
|
+ return this.safeConfigData.education_fields_config || {};
|
|
|
|
+ },
|
|
|
|
+ safeWorkFieldsConfig() {
|
|
|
|
+ return this.safeConfigData.work_experience_fields_config || {};
|
|
|
|
+ },
|
|
|
|
+ // 字段显示控制方法
|
|
|
|
+ showNameField() {
|
|
|
|
+ var _a;
|
|
|
|
+ return Object.keys(this.safeProfileFieldsConfig).length === 0 || ((_a = this.safeProfileFieldsConfig.name) == null ? void 0 : _a.visible) !== false;
|
|
|
|
+ },
|
|
|
|
+ showGenderField() {
|
|
|
|
+ var _a;
|
|
|
|
+ return Object.keys(this.safeProfileFieldsConfig).length === 0 || ((_a = this.safeProfileFieldsConfig.gender) == null ? void 0 : _a.visible) !== false;
|
|
|
|
+ },
|
|
|
|
+ showPhoneField() {
|
|
|
|
+ var _a;
|
|
|
|
+ return Object.keys(this.safeProfileFieldsConfig).length === 0 || ((_a = this.safeProfileFieldsConfig.phone) == null ? void 0 : _a.visible) !== false;
|
|
|
|
+ },
|
|
|
|
+ showIdCardField() {
|
|
|
|
+ var _a;
|
|
|
|
+ return Object.keys(this.safeProfileFieldsConfig).length === 0 || ((_a = this.safeProfileFieldsConfig.id_card) == null ? void 0 : _a.visible) !== false;
|
|
|
|
+ },
|
|
|
|
+ showEthnicField() {
|
|
|
|
+ var _a;
|
|
|
|
+ return Object.keys(this.safeProfileFieldsConfig).length === 0 || ((_a = this.safeProfileFieldsConfig.ethnic) == null ? void 0 : _a.visible) !== false;
|
|
|
|
+ },
|
|
|
|
+ showHeightField() {
|
|
|
|
+ var _a;
|
|
|
|
+ return Object.keys(this.safeProfileFieldsConfig).length === 0 || ((_a = this.safeProfileFieldsConfig.height) == null ? void 0 : _a.visible) !== false;
|
|
|
|
+ },
|
|
|
|
+ showWeightField() {
|
|
|
|
+ var _a;
|
|
|
|
+ return Object.keys(this.safeProfileFieldsConfig).length === 0 || ((_a = this.safeProfileFieldsConfig.weight) == null ? void 0 : _a.visible) !== false;
|
|
|
|
+ },
|
|
|
|
+ // 家庭成员字段显示控制
|
|
|
|
+ showFamilyRelationField() {
|
|
|
|
+ var _a;
|
|
|
|
+ return Object.keys(this.safeFamilyFieldsConfig).length === 0 || ((_a = this.safeFamilyFieldsConfig.relation) == null ? void 0 : _a.visible) !== false;
|
|
|
|
+ },
|
|
|
|
+ showFamilyNameField() {
|
|
|
|
+ var _a;
|
|
|
|
+ return Object.keys(this.safeFamilyFieldsConfig).length === 0 || ((_a = this.safeFamilyFieldsConfig.name) == null ? void 0 : _a.visible) !== false;
|
|
|
|
+ },
|
|
|
|
+ showFamilyWorkplaceField() {
|
|
|
|
+ var _a;
|
|
|
|
+ return Object.keys(this.safeFamilyFieldsConfig).length === 0 || ((_a = this.safeFamilyFieldsConfig.workplace_or_address) == null ? void 0 : _a.visible) !== false;
|
|
|
|
+ },
|
|
|
|
+ showFamilyPositionField() {
|
|
|
|
+ var _a;
|
|
|
|
+ return Object.keys(this.safeFamilyFieldsConfig).length === 0 || ((_a = this.safeFamilyFieldsConfig.position) == null ? void 0 : _a.visible) !== false;
|
|
|
|
+ },
|
|
|
|
+ showFamilyPhoneField() {
|
|
|
|
+ var _a;
|
|
|
|
+ return Object.keys(this.safeFamilyFieldsConfig).length === 0 || ((_a = this.safeFamilyFieldsConfig.phone) == null ? void 0 : _a.visible) !== false;
|
|
|
|
+ },
|
|
|
|
+ // 教育经历字段显示控制
|
|
|
|
+ showEducationTimeField() {
|
|
|
|
+ var _a;
|
|
|
|
+ return Object.keys(this.safeEducationFieldsConfig).length === 0 || ((_a = this.safeEducationFieldsConfig.start_time) == null ? void 0 : _a.visible) !== false;
|
|
|
|
+ },
|
|
|
|
+ showEducationSchoolField() {
|
|
|
|
+ var _a;
|
|
|
|
+ return Object.keys(this.safeEducationFieldsConfig).length === 0 || ((_a = this.safeEducationFieldsConfig.school_name) == null ? void 0 : _a.visible) !== false;
|
|
|
|
+ },
|
|
|
|
+ showEducationMajorField() {
|
|
|
|
+ var _a;
|
|
|
|
+ return Object.keys(this.safeEducationFieldsConfig).length === 0 || ((_a = this.safeEducationFieldsConfig.major) == null ? void 0 : _a.visible) !== false;
|
|
|
|
+ },
|
|
|
|
+ showEducationDegreeField() {
|
|
|
|
+ var _a;
|
|
|
|
+ return Object.keys(this.safeEducationFieldsConfig).length === 0 || ((_a = this.safeEducationFieldsConfig.degree) == null ? void 0 : _a.visible) !== false;
|
|
|
|
+ },
|
|
|
|
+ // 工作经历字段显示控制
|
|
|
|
+ showWorkTimeField() {
|
|
|
|
+ var _a;
|
|
|
|
+ return Object.keys(this.safeWorkFieldsConfig).length === 0 || ((_a = this.safeWorkFieldsConfig.start_time) == null ? void 0 : _a.visible) !== false;
|
|
|
|
+ },
|
|
|
|
+ showWorkCompanyField() {
|
|
|
|
+ var _a;
|
|
|
|
+ return Object.keys(this.safeWorkFieldsConfig).length === 0 || ((_a = this.safeWorkFieldsConfig.company_name) == null ? void 0 : _a.visible) !== false;
|
|
|
|
+ },
|
|
|
|
+ showWorkDepartmentField() {
|
|
|
|
+ var _a;
|
|
|
|
+ return Object.keys(this.safeWorkFieldsConfig).length === 0 || ((_a = this.safeWorkFieldsConfig.department) == null ? void 0 : _a.visible) !== false;
|
|
|
|
+ },
|
|
|
|
+ showWorkEmployeeCountField() {
|
|
|
|
+ var _a;
|
|
|
|
+ return Object.keys(this.safeWorkFieldsConfig).length === 0 || ((_a = this.safeWorkFieldsConfig.employee_count) == null ? void 0 : _a.visible) !== false;
|
|
|
|
+ },
|
|
|
|
+ showWorkPositionField() {
|
|
|
|
+ var _a;
|
|
|
|
+ return Object.keys(this.safeWorkFieldsConfig).length === 0 || ((_a = this.safeWorkFieldsConfig.position) == null ? void 0 : _a.visible) !== false;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -220,6 +338,69 @@ const _sfc_main = {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ // 添加字段是否需要验证的判断方法
|
|
|
|
+ shouldValidateField(fieldName, section) {
|
|
|
|
+ section = section || "profile";
|
|
|
|
+ switch (section) {
|
|
|
|
+ case "profile":
|
|
|
|
+ const fieldShowMap = {
|
|
|
|
+ "name": this.showNameField,
|
|
|
|
+ "gender": this.showGenderField,
|
|
|
|
+ "phone": this.showPhoneField,
|
|
|
|
+ "idCard": this.showIdCardField,
|
|
|
|
+ "ethnic": this.showEthnicField,
|
|
|
|
+ "height": this.showHeightField,
|
|
|
|
+ "weight": this.showWeightField,
|
|
|
|
+ "currentAddress": true,
|
|
|
|
+ // 现居住地址总是显示和必填
|
|
|
|
+ "expectedSalary": true,
|
|
|
|
+ // 期望薪资总是显示
|
|
|
|
+ "skills": true,
|
|
|
|
+ // 专业技能总是显示和必填
|
|
|
|
+ "training": true,
|
|
|
|
+ // 培训经历总是显示和必填
|
|
|
|
+ "threePeriod": this.formData.gender === "女"
|
|
|
|
+ // 只有女性时才需要验证三期状态
|
|
|
|
+ };
|
|
|
|
+ return fieldShowMap[fieldName] !== false;
|
|
|
|
+ case "family":
|
|
|
|
+ const familyFieldShowMap = {
|
|
|
|
+ "relation": this.showFamilyRelationField,
|
|
|
|
+ "name": this.showFamilyNameField,
|
|
|
|
+ "phone": this.showFamilyPhoneField,
|
|
|
|
+ "workplaceOrAddress": this.showFamilyWorkplaceField,
|
|
|
|
+ "position": this.showFamilyPositionField
|
|
|
|
+ };
|
|
|
|
+ return familyFieldShowMap[fieldName] !== false;
|
|
|
|
+ case "education":
|
|
|
|
+ const educationFieldShowMap = {
|
|
|
|
+ "startTime": this.showEducationTimeField,
|
|
|
|
+ "endTime": this.showEducationTimeField,
|
|
|
|
+ "schoolName": this.showEducationSchoolField,
|
|
|
|
+ "major": this.showEducationMajorField,
|
|
|
|
+ "degree": this.showEducationDegreeField
|
|
|
|
+ };
|
|
|
|
+ return educationFieldShowMap[fieldName] !== false;
|
|
|
|
+ case "work":
|
|
|
|
+ const workFieldShowMap = {
|
|
|
|
+ "startTime": this.showWorkTimeField,
|
|
|
|
+ "endTime": this.showWorkTimeField,
|
|
|
|
+ "companyName": this.showWorkCompanyField,
|
|
|
|
+ "department": this.showWorkDepartmentField,
|
|
|
|
+ "position": this.showWorkPositionField,
|
|
|
|
+ "employeeCount": this.showWorkEmployeeCountField,
|
|
|
|
+ "monthlySalary": true,
|
|
|
|
+ // 月薪总是需要验证
|
|
|
|
+ "supervisor": true,
|
|
|
|
+ // 直接领导总是需要验证
|
|
|
|
+ "supervisorPhone": true
|
|
|
|
+ // 领导电话总是需要验证
|
|
|
|
+ };
|
|
|
|
+ return workFieldShowMap[fieldName] !== false;
|
|
|
|
+ default:
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
bindGenderChange(e) {
|
|
bindGenderChange(e) {
|
|
this.genderIndex = e.detail.value;
|
|
this.genderIndex = e.detail.value;
|
|
this.formData.gender = this.genderOptions[this.genderIndex];
|
|
this.formData.gender = this.genderOptions[this.genderIndex];
|
|
@@ -229,11 +410,15 @@ const _sfc_main = {
|
|
if (this.formData.gender !== "女") {
|
|
if (this.formData.gender !== "女") {
|
|
this.formData.threePeriod = "";
|
|
this.formData.threePeriod = "";
|
|
this.threePeriodIndex = -1;
|
|
this.threePeriodIndex = -1;
|
|
|
|
+ this.formErrors.threePeriod = "";
|
|
}
|
|
}
|
|
},
|
|
},
|
|
bindThreePeriodChange(e) {
|
|
bindThreePeriodChange(e) {
|
|
this.threePeriodIndex = e.detail.value;
|
|
this.threePeriodIndex = e.detail.value;
|
|
this.formData.threePeriod = this.threePeriodOptions[this.threePeriodIndex];
|
|
this.formData.threePeriod = this.threePeriodOptions[this.threePeriodIndex];
|
|
|
|
+ if (this.formErrors.threePeriod) {
|
|
|
|
+ this.formErrors.threePeriod = "";
|
|
|
|
+ }
|
|
},
|
|
},
|
|
bindPoliticalChange(e) {
|
|
bindPoliticalChange(e) {
|
|
this.politicalIndex = e.detail.value;
|
|
this.politicalIndex = e.detail.value;
|
|
@@ -256,18 +441,26 @@ const _sfc_main = {
|
|
saveFamilyMember() {
|
|
saveFamilyMember() {
|
|
this.resetFamilyMemberErrors();
|
|
this.resetFamilyMemberErrors();
|
|
let isValid = true;
|
|
let isValid = true;
|
|
- if (!this.familyMemberForm.relation) {
|
|
|
|
|
|
+ if (this.shouldValidateField("relation", "family") && !this.familyMemberForm.relation) {
|
|
this.familyMemberErrors.relation = "请输入称谓";
|
|
this.familyMemberErrors.relation = "请输入称谓";
|
|
isValid = false;
|
|
isValid = false;
|
|
}
|
|
}
|
|
- if (!this.familyMemberForm.name) {
|
|
|
|
|
|
+ if (this.shouldValidateField("name", "family") && !this.familyMemberForm.name) {
|
|
this.familyMemberErrors.name = "请输入姓名";
|
|
this.familyMemberErrors.name = "请输入姓名";
|
|
isValid = false;
|
|
isValid = false;
|
|
}
|
|
}
|
|
- if (!this.familyMemberForm.phone) {
|
|
|
|
|
|
+ if (this.shouldValidateField("workplaceOrAddress", "family") && !this.familyMemberForm.workplaceOrAddress) {
|
|
|
|
+ this.familyMemberErrors.workplaceOrAddress = "请输入工作单位/家庭地址";
|
|
|
|
+ isValid = false;
|
|
|
|
+ }
|
|
|
|
+ if (this.shouldValidateField("position", "family") && !this.familyMemberForm.position) {
|
|
|
|
+ this.familyMemberErrors.position = "请输入职务";
|
|
|
|
+ isValid = false;
|
|
|
|
+ }
|
|
|
|
+ if (this.shouldValidateField("phone", "family") && !this.familyMemberForm.phone) {
|
|
this.familyMemberErrors.phone = "请输入联系电话";
|
|
this.familyMemberErrors.phone = "请输入联系电话";
|
|
isValid = false;
|
|
isValid = false;
|
|
- } else if (!/^1[3-9]\d{9}$/.test(this.familyMemberForm.phone)) {
|
|
|
|
|
|
+ } else if (this.shouldValidateField("phone", "family") && this.familyMemberForm.phone && !/^1[3-9]\d{9}$/.test(this.familyMemberForm.phone)) {
|
|
this.familyMemberErrors.phone = "请输入正确的手机号";
|
|
this.familyMemberErrors.phone = "请输入正确的手机号";
|
|
isValid = false;
|
|
isValid = false;
|
|
}
|
|
}
|
|
@@ -376,23 +569,23 @@ const _sfc_main = {
|
|
saveEducation() {
|
|
saveEducation() {
|
|
this.resetEducationErrors();
|
|
this.resetEducationErrors();
|
|
let isValid = true;
|
|
let isValid = true;
|
|
- if (!this.educationForm.startTime) {
|
|
|
|
|
|
+ if (this.shouldValidateField("startTime", "education") && !this.educationForm.startTime) {
|
|
this.educationErrors.startTime = "请选择开始时间";
|
|
this.educationErrors.startTime = "请选择开始时间";
|
|
isValid = false;
|
|
isValid = false;
|
|
}
|
|
}
|
|
- if (!this.educationForm.endTime) {
|
|
|
|
|
|
+ if (this.shouldValidateField("endTime", "education") && !this.educationForm.endTime) {
|
|
this.educationErrors.endTime = "请选择结束时间";
|
|
this.educationErrors.endTime = "请选择结束时间";
|
|
isValid = false;
|
|
isValid = false;
|
|
}
|
|
}
|
|
- if (!this.educationForm.schoolName) {
|
|
|
|
|
|
+ if (this.shouldValidateField("schoolName", "education") && !this.educationForm.schoolName) {
|
|
this.educationErrors.schoolName = "请输入学校名称";
|
|
this.educationErrors.schoolName = "请输入学校名称";
|
|
isValid = false;
|
|
isValid = false;
|
|
}
|
|
}
|
|
- if (!this.educationForm.major) {
|
|
|
|
|
|
+ if (this.shouldValidateField("major", "education") && !this.educationForm.major) {
|
|
this.educationErrors.major = "请输入专业";
|
|
this.educationErrors.major = "请输入专业";
|
|
isValid = false;
|
|
isValid = false;
|
|
}
|
|
}
|
|
- if (!this.educationForm.degree) {
|
|
|
|
|
|
+ if (this.shouldValidateField("degree", "education") && !this.educationForm.degree) {
|
|
this.educationErrors.degree = "请选择学历";
|
|
this.educationErrors.degree = "请选择学历";
|
|
isValid = false;
|
|
isValid = false;
|
|
}
|
|
}
|
|
@@ -479,39 +672,39 @@ const _sfc_main = {
|
|
supervisorPhone: ""
|
|
supervisorPhone: ""
|
|
};
|
|
};
|
|
let isValid = true;
|
|
let isValid = true;
|
|
- if (!this.workForm.startTime) {
|
|
|
|
|
|
+ if (this.shouldValidateField("startTime", "work") && !this.workForm.startTime) {
|
|
this.workErrors.startTime = "请选择开始时间";
|
|
this.workErrors.startTime = "请选择开始时间";
|
|
isValid = false;
|
|
isValid = false;
|
|
}
|
|
}
|
|
- if (!this.workForm.endTime) {
|
|
|
|
|
|
+ if (this.shouldValidateField("endTime", "work") && !this.workForm.endTime) {
|
|
this.workErrors.endTime = "请选择结束时间";
|
|
this.workErrors.endTime = "请选择结束时间";
|
|
isValid = false;
|
|
isValid = false;
|
|
}
|
|
}
|
|
- if (!this.workForm.companyName) {
|
|
|
|
|
|
+ if (this.shouldValidateField("companyName", "work") && !this.workForm.companyName) {
|
|
this.workErrors.companyName = "请输入单位名称";
|
|
this.workErrors.companyName = "请输入单位名称";
|
|
isValid = false;
|
|
isValid = false;
|
|
}
|
|
}
|
|
- if (!this.workForm.department) {
|
|
|
|
|
|
+ if (this.shouldValidateField("department", "work") && !this.workForm.department) {
|
|
this.workErrors.department = "请输入任职部门";
|
|
this.workErrors.department = "请输入任职部门";
|
|
isValid = false;
|
|
isValid = false;
|
|
}
|
|
}
|
|
- if (!this.workForm.position) {
|
|
|
|
|
|
+ if (this.shouldValidateField("position", "work") && !this.workForm.position) {
|
|
this.workErrors.position = "请输入担任职务";
|
|
this.workErrors.position = "请输入担任职务";
|
|
isValid = false;
|
|
isValid = false;
|
|
}
|
|
}
|
|
- if (!this.workForm.employeeCount) {
|
|
|
|
|
|
+ if (this.shouldValidateField("employeeCount", "work") && !this.workForm.employeeCount) {
|
|
this.workErrors.employeeCount = "请输入单位人数";
|
|
this.workErrors.employeeCount = "请输入单位人数";
|
|
isValid = false;
|
|
isValid = false;
|
|
}
|
|
}
|
|
- if (!this.workForm.monthlySalary) {
|
|
|
|
|
|
+ if (this.shouldValidateField("monthlySalary", "work") && !this.workForm.monthlySalary) {
|
|
this.workErrors.monthlySalary = "请输入月薪";
|
|
this.workErrors.monthlySalary = "请输入月薪";
|
|
isValid = false;
|
|
isValid = false;
|
|
}
|
|
}
|
|
- if (!this.workForm.supervisor) {
|
|
|
|
|
|
+ if (this.shouldValidateField("supervisor", "work") && !this.workForm.supervisor) {
|
|
this.workErrors.supervisor = "请输入直属上级";
|
|
this.workErrors.supervisor = "请输入直属上级";
|
|
isValid = false;
|
|
isValid = false;
|
|
}
|
|
}
|
|
- if (!this.workForm.supervisorPhone) {
|
|
|
|
|
|
+ if (this.shouldValidateField("supervisorPhone", "work") && !this.workForm.supervisorPhone) {
|
|
this.workErrors.supervisorPhone = "请输入直属上级电话";
|
|
this.workErrors.supervisorPhone = "请输入直属上级电话";
|
|
isValid = false;
|
|
isValid = false;
|
|
}
|
|
}
|
|
@@ -584,6 +777,7 @@ const _sfc_main = {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
submitForm() {
|
|
submitForm() {
|
|
|
|
+ var _a, _b;
|
|
if (!this.validateCurrentStep()) {
|
|
if (!this.validateCurrentStep()) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -597,10 +791,18 @@ const _sfc_main = {
|
|
];
|
|
];
|
|
let isValid = true;
|
|
let isValid = true;
|
|
allRequired.forEach((field) => {
|
|
allRequired.forEach((field) => {
|
|
- if (!this.validateField(field, this.formData[field])) {
|
|
|
|
|
|
+ if (this.shouldValidateField(field) && !this.validateField(field, this.formData[field])) {
|
|
isValid = false;
|
|
isValid = false;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+ if (this.shouldValidateField("skills") && !((_a = this.formData.skills) == null ? void 0 : _a.trim())) {
|
|
|
|
+ this.formErrors.skills = "请描述您的专业技能";
|
|
|
|
+ isValid = false;
|
|
|
|
+ }
|
|
|
|
+ if (this.shouldValidateField("training") && !((_b = this.formData.training) == null ? void 0 : _b.trim())) {
|
|
|
|
+ this.formErrors.training = "请描述您的培训经历";
|
|
|
|
+ isValid = false;
|
|
|
|
+ }
|
|
if (!isValid) {
|
|
if (!isValid) {
|
|
common_vendor.index.showToast({
|
|
common_vendor.index.showToast({
|
|
title: "请完善所有必填信息",
|
|
title: "请完善所有必填信息",
|
|
@@ -903,21 +1105,21 @@ const _sfc_main = {
|
|
case 1:
|
|
case 1:
|
|
const basicFields = ["name", "gender", "phone", "idCard", "ethnic", "currentAddress"];
|
|
const basicFields = ["name", "gender", "phone", "idCard", "ethnic", "currentAddress"];
|
|
basicFields.forEach((field) => {
|
|
basicFields.forEach((field) => {
|
|
- if (!this.validateField(field, this.formData[field])) {
|
|
|
|
|
|
+ if (this.shouldValidateField(field) && !this.validateField(field, this.formData[field])) {
|
|
isValid = false;
|
|
isValid = false;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- if (this.formData.gender === "女" && this.threePeriodIndex === -1) {
|
|
|
|
|
|
+ if (this.shouldValidateField("threePeriod") && this.formData.gender === "女" && this.threePeriodIndex === -1) {
|
|
this.formErrors.threePeriod = "请选择三期状态";
|
|
this.formErrors.threePeriod = "请选择三期状态";
|
|
isValid = false;
|
|
isValid = false;
|
|
}
|
|
}
|
|
- if (this.formData.height) {
|
|
|
|
|
|
+ if (this.shouldValidateField("height") && this.formData.height) {
|
|
isValid = this.validateField("height", this.formData.height) && isValid;
|
|
isValid = this.validateField("height", this.formData.height) && isValid;
|
|
}
|
|
}
|
|
- if (this.formData.weight) {
|
|
|
|
|
|
+ if (this.shouldValidateField("weight") && this.formData.weight) {
|
|
isValid = this.validateField("weight", this.formData.weight) && isValid;
|
|
isValid = this.validateField("weight", this.formData.weight) && isValid;
|
|
}
|
|
}
|
|
- if (this.formData.expectedSalary) {
|
|
|
|
|
|
+ if (this.shouldValidateField("expectedSalary") && this.formData.expectedSalary) {
|
|
isValid = this.validateField("expectedSalary", this.formData.expectedSalary) && isValid;
|
|
isValid = this.validateField("expectedSalary", this.formData.expectedSalary) && isValid;
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
@@ -941,11 +1143,11 @@ const _sfc_main = {
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
case 6:
|
|
case 6:
|
|
- if (!((_a = this.formData.skills) == null ? void 0 : _a.trim())) {
|
|
|
|
|
|
+ if (this.shouldValidateField("skills") && !((_a = this.formData.skills) == null ? void 0 : _a.trim())) {
|
|
this.formErrors.skills = "请描述您的专业技能";
|
|
this.formErrors.skills = "请描述您的专业技能";
|
|
isValid = false;
|
|
isValid = false;
|
|
}
|
|
}
|
|
- if (!((_b = this.formData.training) == null ? void 0 : _b.trim())) {
|
|
|
|
|
|
+ if (this.shouldValidateField("training") && !((_b = this.formData.training) == null ? void 0 : _b.trim())) {
|
|
this.formErrors.training = "请描述您的培训经历";
|
|
this.formErrors.training = "请描述您的培训经历";
|
|
isValid = false;
|
|
isValid = false;
|
|
}
|
|
}
|
|
@@ -1114,12 +1316,15 @@ const _sfc_main = {
|
|
const rule = this.validationRules[fieldName];
|
|
const rule = this.validationRules[fieldName];
|
|
if (!rule)
|
|
if (!rule)
|
|
return true;
|
|
return true;
|
|
|
|
+ if (!this.shouldValidateField(fieldName)) {
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
this.formErrors[fieldName] = "";
|
|
this.formErrors[fieldName] = "";
|
|
if (rule.required && !value) {
|
|
if (rule.required && !value) {
|
|
this.formErrors[fieldName] = rule.message;
|
|
this.formErrors[fieldName] = rule.message;
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
- if (rule.pattern && !rule.pattern.test(value)) {
|
|
|
|
|
|
+ if (rule.pattern && value && !rule.pattern.test(value)) {
|
|
this.formErrors[fieldName] = rule.message;
|
|
this.formErrors[fieldName] = rule.message;
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
@@ -1260,7 +1465,7 @@ const _sfc_main = {
|
|
}[this.currentStep];
|
|
}[this.currentStep];
|
|
if (currentStepFields) {
|
|
if (currentStepFields) {
|
|
currentStepFields.forEach((field) => {
|
|
currentStepFields.forEach((field) => {
|
|
- if (newVal[field] !== void 0) {
|
|
|
|
|
|
+ if (newVal[field] !== void 0 && this.shouldValidateField(field)) {
|
|
this.validateField(field, newVal[field]);
|
|
this.validateField(field, newVal[field]);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -1283,321 +1488,398 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
} : {}, {
|
|
} : {}, {
|
|
g: $data.currentStep === 1
|
|
g: $data.currentStep === 1
|
|
}, $data.currentStep === 1 ? common_vendor.e({
|
|
}, $data.currentStep === 1 ? common_vendor.e({
|
|
- h: $data.formErrors.name ? 1 : "",
|
|
|
|
- i: $data.formData.name,
|
|
|
|
- j: common_vendor.o(($event) => $data.formData.name = $event.detail.value),
|
|
|
|
- k: $data.formErrors.name
|
|
|
|
|
|
+ h: $options.showNameField
|
|
|
|
+ }, $options.showNameField ? common_vendor.e({
|
|
|
|
+ i: $data.formErrors.name ? 1 : "",
|
|
|
|
+ j: $data.formData.name,
|
|
|
|
+ k: common_vendor.o(($event) => $data.formData.name = $event.detail.value),
|
|
|
|
+ l: $data.formErrors.name
|
|
}, $data.formErrors.name ? {
|
|
}, $data.formErrors.name ? {
|
|
- l: common_vendor.t($data.formErrors.name)
|
|
|
|
- } : {}, {
|
|
|
|
- m: common_vendor.t($data.genderOptions[$data.genderIndex] || "请选择性别"),
|
|
|
|
- n: $data.formErrors.gender ? 1 : "",
|
|
|
|
- o: common_vendor.o((...args) => $options.bindGenderChange && $options.bindGenderChange(...args)),
|
|
|
|
- p: $data.genderIndex,
|
|
|
|
- q: $data.genderOptions,
|
|
|
|
- r: $data.formErrors.gender
|
|
|
|
|
|
+ m: common_vendor.t($data.formErrors.name)
|
|
|
|
+ } : {}) : {}, {
|
|
|
|
+ n: $options.showGenderField
|
|
|
|
+ }, $options.showGenderField ? common_vendor.e({
|
|
|
|
+ o: common_vendor.t($data.genderOptions[$data.genderIndex] || "请选择性别"),
|
|
|
|
+ p: $data.formErrors.gender ? 1 : "",
|
|
|
|
+ q: common_vendor.o((...args) => $options.bindGenderChange && $options.bindGenderChange(...args)),
|
|
|
|
+ r: $data.genderIndex,
|
|
|
|
+ s: $data.genderOptions,
|
|
|
|
+ t: $data.formErrors.gender
|
|
}, $data.formErrors.gender ? {
|
|
}, $data.formErrors.gender ? {
|
|
- s: common_vendor.t($data.formErrors.gender)
|
|
|
|
- } : {}, {
|
|
|
|
- t: $data.formData.gender === "女"
|
|
|
|
|
|
+ v: common_vendor.t($data.formErrors.gender)
|
|
|
|
+ } : {}) : {}, {
|
|
|
|
+ w: $data.formData.gender === "女"
|
|
}, $data.formData.gender === "女" ? common_vendor.e({
|
|
}, $data.formData.gender === "女" ? common_vendor.e({
|
|
- v: common_vendor.t($data.threePeriodOptions[$data.threePeriodIndex] || "请选择"),
|
|
|
|
- w: common_vendor.o((...args) => $options.bindThreePeriodChange && $options.bindThreePeriodChange(...args)),
|
|
|
|
- x: $data.threePeriodIndex,
|
|
|
|
- y: $data.threePeriodOptions,
|
|
|
|
- z: $data.formErrors.threePeriod ? 1 : "",
|
|
|
|
- A: $data.formErrors.threePeriod
|
|
|
|
|
|
+ x: common_vendor.t($data.threePeriodOptions[$data.threePeriodIndex] || "请选择"),
|
|
|
|
+ y: common_vendor.o((...args) => $options.bindThreePeriodChange && $options.bindThreePeriodChange(...args)),
|
|
|
|
+ z: $data.threePeriodIndex,
|
|
|
|
+ A: $data.threePeriodOptions,
|
|
|
|
+ B: $data.formErrors.threePeriod ? 1 : "",
|
|
|
|
+ C: $data.formErrors.threePeriod
|
|
}, $data.formErrors.threePeriod ? {
|
|
}, $data.formErrors.threePeriod ? {
|
|
- B: common_vendor.t($data.formErrors.threePeriod)
|
|
|
|
|
|
+ D: common_vendor.t($data.formErrors.threePeriod)
|
|
} : {}) : {}, {
|
|
} : {}) : {}, {
|
|
- C: $data.formErrors.phone ? 1 : "",
|
|
|
|
- D: $data.formData.phone,
|
|
|
|
- E: common_vendor.o(($event) => $data.formData.phone = $event.detail.value),
|
|
|
|
- F: $data.formErrors.phone
|
|
|
|
|
|
+ E: $options.showPhoneField
|
|
|
|
+ }, $options.showPhoneField ? common_vendor.e({
|
|
|
|
+ F: $data.formErrors.phone ? 1 : "",
|
|
|
|
+ G: $data.formData.phone,
|
|
|
|
+ H: common_vendor.o(($event) => $data.formData.phone = $event.detail.value),
|
|
|
|
+ I: $data.formErrors.phone
|
|
}, $data.formErrors.phone ? {
|
|
}, $data.formErrors.phone ? {
|
|
- G: common_vendor.t($data.formErrors.phone)
|
|
|
|
- } : {}, {
|
|
|
|
- H: $data.formErrors.idCard ? 1 : "",
|
|
|
|
- I: $data.formData.idCard,
|
|
|
|
- J: common_vendor.o(($event) => $data.formData.idCard = $event.detail.value),
|
|
|
|
- K: $data.formErrors.idCard
|
|
|
|
|
|
+ J: common_vendor.t($data.formErrors.phone)
|
|
|
|
+ } : {}) : {}, {
|
|
|
|
+ K: $options.showIdCardField
|
|
|
|
+ }, $options.showIdCardField ? common_vendor.e({
|
|
|
|
+ L: $data.formErrors.idCard ? 1 : "",
|
|
|
|
+ M: $data.formData.idCard,
|
|
|
|
+ N: common_vendor.o(($event) => $data.formData.idCard = $event.detail.value),
|
|
|
|
+ O: $data.formErrors.idCard
|
|
}, $data.formErrors.idCard ? {
|
|
}, $data.formErrors.idCard ? {
|
|
- L: common_vendor.t($data.formErrors.idCard)
|
|
|
|
- } : {}, {
|
|
|
|
- M: common_vendor.t($data.ethnicOptions[$data.ethnicIndex] || "请选择民族"),
|
|
|
|
- N: $data.formErrors.ethnic ? 1 : "",
|
|
|
|
- O: common_vendor.o((...args) => $options.bindEthnicChange && $options.bindEthnicChange(...args)),
|
|
|
|
- P: $data.ethnicIndex,
|
|
|
|
- Q: $data.ethnicOptions,
|
|
|
|
- R: $data.formErrors.ethnic
|
|
|
|
|
|
+ P: common_vendor.t($data.formErrors.idCard)
|
|
|
|
+ } : {}) : {}, {
|
|
|
|
+ Q: $options.showEthnicField
|
|
|
|
+ }, $options.showEthnicField ? common_vendor.e({
|
|
|
|
+ R: common_vendor.t($data.ethnicOptions[$data.ethnicIndex] || "请选择民族"),
|
|
|
|
+ S: $data.formErrors.ethnic ? 1 : "",
|
|
|
|
+ T: common_vendor.o((...args) => $options.bindEthnicChange && $options.bindEthnicChange(...args)),
|
|
|
|
+ U: $data.ethnicIndex,
|
|
|
|
+ V: $data.ethnicOptions,
|
|
|
|
+ W: $data.formErrors.ethnic
|
|
}, $data.formErrors.ethnic ? {
|
|
}, $data.formErrors.ethnic ? {
|
|
- S: common_vendor.t($data.formErrors.ethnic)
|
|
|
|
|
|
+ X: common_vendor.t($data.formErrors.ethnic)
|
|
|
|
+ } : {}) : {}, {
|
|
|
|
+ Y: $options.showHeightField
|
|
|
|
+ }, $options.showHeightField ? {
|
|
|
|
+ Z: $data.formData.height,
|
|
|
|
+ aa: common_vendor.o(($event) => $data.formData.height = $event.detail.value)
|
|
|
|
+ } : {}, {
|
|
|
|
+ ab: $options.showWeightField
|
|
|
|
+ }, $options.showWeightField ? {
|
|
|
|
+ ac: $data.formData.weight,
|
|
|
|
+ ad: common_vendor.o(($event) => $data.formData.weight = $event.detail.value)
|
|
} : {}, {
|
|
} : {}, {
|
|
- T: $data.formData.height,
|
|
|
|
- U: common_vendor.o(($event) => $data.formData.height = $event.detail.value),
|
|
|
|
- V: $data.formData.weight,
|
|
|
|
- W: common_vendor.o(($event) => $data.formData.weight = $event.detail.value),
|
|
|
|
- X: $data.formErrors.currentAddress ? 1 : "",
|
|
|
|
- Y: $data.formData.currentAddress,
|
|
|
|
- Z: common_vendor.o(($event) => $data.formData.currentAddress = $event.detail.value),
|
|
|
|
- aa: $data.formErrors.currentAddress
|
|
|
|
|
|
+ ae: $data.formErrors.currentAddress ? 1 : "",
|
|
|
|
+ af: $data.formData.currentAddress,
|
|
|
|
+ ag: common_vendor.o(($event) => $data.formData.currentAddress = $event.detail.value),
|
|
|
|
+ ah: $data.formErrors.currentAddress
|
|
}, $data.formErrors.currentAddress ? {
|
|
}, $data.formErrors.currentAddress ? {
|
|
- ab: common_vendor.t($data.formErrors.currentAddress)
|
|
|
|
|
|
+ ai: common_vendor.t($data.formErrors.currentAddress)
|
|
} : {}, {
|
|
} : {}, {
|
|
- ac: $data.formData.residence,
|
|
|
|
- ad: common_vendor.o(($event) => $data.formData.residence = $event.detail.value),
|
|
|
|
- ae: common_vendor.t($data.marriageOptions[$data.marriageIndex] || "请选择婚育状况"),
|
|
|
|
- af: common_vendor.o((...args) => $options.bindMarriageChange && $options.bindMarriageChange(...args)),
|
|
|
|
- ag: $data.marriageIndex,
|
|
|
|
- ah: $data.marriageOptions,
|
|
|
|
- ai: $data.formData.expectedSalary,
|
|
|
|
- aj: common_vendor.o(($event) => $data.formData.expectedSalary = $event.detail.value)
|
|
|
|
|
|
+ aj: $data.formData.residence,
|
|
|
|
+ ak: common_vendor.o(($event) => $data.formData.residence = $event.detail.value),
|
|
|
|
+ al: common_vendor.t($data.marriageOptions[$data.marriageIndex] || "请选择婚育状况"),
|
|
|
|
+ am: common_vendor.o((...args) => $options.bindMarriageChange && $options.bindMarriageChange(...args)),
|
|
|
|
+ an: $data.marriageIndex,
|
|
|
|
+ ao: $data.marriageOptions,
|
|
|
|
+ ap: $data.formData.expectedSalary,
|
|
|
|
+ aq: common_vendor.o(($event) => $data.formData.expectedSalary = $event.detail.value)
|
|
}) : {}, {
|
|
}) : {}, {
|
|
- ak: $data.currentStep === 3
|
|
|
|
|
|
+ ar: $data.currentStep === 3
|
|
}, $data.currentStep === 3 ? common_vendor.e({
|
|
}, $data.currentStep === 3 ? common_vendor.e({
|
|
- al: $data.familyMembers.length > 0
|
|
|
|
|
|
+ as: $data.familyMembers.length > 0
|
|
}, $data.familyMembers.length > 0 ? {
|
|
}, $data.familyMembers.length > 0 ? {
|
|
- am: common_vendor.f($data.familyMembers, (member, index, i0) => {
|
|
|
|
- return {
|
|
|
|
|
|
+ at: common_vendor.f($data.familyMembers, (member, index, i0) => {
|
|
|
|
+ return common_vendor.e({
|
|
a: common_vendor.t(index + 1),
|
|
a: common_vendor.t(index + 1),
|
|
b: common_vendor.o(($event) => $options.editFamilyMember(index), index),
|
|
b: common_vendor.o(($event) => $options.editFamilyMember(index), index),
|
|
- c: common_vendor.o(($event) => $options.deleteFamilyMember(index), index),
|
|
|
|
- d: common_vendor.t(member.relation),
|
|
|
|
- e: common_vendor.t(member.name),
|
|
|
|
- f: common_vendor.t(member.workplaceOrAddress),
|
|
|
|
- g: common_vendor.t(member.position),
|
|
|
|
- h: common_vendor.t(member.phone),
|
|
|
|
|
|
+ c: common_vendor.o(($event) => $options.deleteFamilyMember(index), index)
|
|
|
|
+ }, $options.showFamilyRelationField ? {
|
|
|
|
+ d: common_vendor.t(member.relation)
|
|
|
|
+ } : {}, $options.showFamilyNameField ? {
|
|
|
|
+ e: common_vendor.t(member.name)
|
|
|
|
+ } : {}, $options.showFamilyWorkplaceField ? {
|
|
|
|
+ f: common_vendor.t(member.workplaceOrAddress)
|
|
|
|
+ } : {}, $options.showFamilyPositionField ? {
|
|
|
|
+ g: common_vendor.t(member.position)
|
|
|
|
+ } : {}, $options.showFamilyPhoneField ? {
|
|
|
|
+ h: common_vendor.t(member.phone)
|
|
|
|
+ } : {}, {
|
|
i: common_vendor.t(member.isEmergencyContact ? "是" : "否"),
|
|
i: common_vendor.t(member.isEmergencyContact ? "是" : "否"),
|
|
j: index
|
|
j: index
|
|
- };
|
|
|
|
- })
|
|
|
|
|
|
+ });
|
|
|
|
+ }),
|
|
|
|
+ av: $options.showFamilyRelationField,
|
|
|
|
+ aw: $options.showFamilyNameField,
|
|
|
|
+ ax: $options.showFamilyWorkplaceField,
|
|
|
|
+ ay: $options.showFamilyPositionField,
|
|
|
|
+ az: $options.showFamilyPhoneField
|
|
} : {}, {
|
|
} : {}, {
|
|
- an: common_vendor.t($data.isEditing ? "编辑家庭成员" : "添加家庭成员"),
|
|
|
|
- ao: $data.isEditing
|
|
|
|
|
|
+ aA: common_vendor.t($data.isEditing ? "编辑家庭成员" : "添加家庭成员"),
|
|
|
|
+ aB: $data.isEditing
|
|
}, $data.isEditing ? {
|
|
}, $data.isEditing ? {
|
|
- ap: common_vendor.o((...args) => $options.cancelEdit && $options.cancelEdit(...args))
|
|
|
|
|
|
+ aC: common_vendor.o((...args) => $options.cancelEdit && $options.cancelEdit(...args))
|
|
} : {}, {
|
|
} : {}, {
|
|
- aq: $data.familyMemberErrors.relation ? 1 : "",
|
|
|
|
- ar: $data.familyMemberForm.relation,
|
|
|
|
- as: common_vendor.o(($event) => $data.familyMemberForm.relation = $event.detail.value),
|
|
|
|
- at: $data.familyMemberErrors.relation
|
|
|
|
|
|
+ aD: $options.showFamilyRelationField
|
|
|
|
+ }, $options.showFamilyRelationField ? common_vendor.e({
|
|
|
|
+ aE: $data.familyMemberErrors.relation ? 1 : "",
|
|
|
|
+ aF: $data.familyMemberForm.relation,
|
|
|
|
+ aG: common_vendor.o(($event) => $data.familyMemberForm.relation = $event.detail.value),
|
|
|
|
+ aH: $data.familyMemberErrors.relation
|
|
}, $data.familyMemberErrors.relation ? {
|
|
}, $data.familyMemberErrors.relation ? {
|
|
- av: common_vendor.t($data.familyMemberErrors.relation)
|
|
|
|
- } : {}, {
|
|
|
|
- aw: $data.familyMemberErrors.name ? 1 : "",
|
|
|
|
- ax: $data.familyMemberForm.name,
|
|
|
|
- ay: common_vendor.o(($event) => $data.familyMemberForm.name = $event.detail.value),
|
|
|
|
- az: $data.familyMemberErrors.name
|
|
|
|
|
|
+ aI: common_vendor.t($data.familyMemberErrors.relation)
|
|
|
|
+ } : {}) : {}, {
|
|
|
|
+ aJ: $options.showFamilyNameField
|
|
|
|
+ }, $options.showFamilyNameField ? common_vendor.e({
|
|
|
|
+ aK: $data.familyMemberErrors.name ? 1 : "",
|
|
|
|
+ aL: $data.familyMemberForm.name,
|
|
|
|
+ aM: common_vendor.o(($event) => $data.familyMemberForm.name = $event.detail.value),
|
|
|
|
+ aN: $data.familyMemberErrors.name
|
|
}, $data.familyMemberErrors.name ? {
|
|
}, $data.familyMemberErrors.name ? {
|
|
- aA: common_vendor.t($data.familyMemberErrors.name)
|
|
|
|
|
|
+ aO: common_vendor.t($data.familyMemberErrors.name)
|
|
|
|
+ } : {}) : {}, {
|
|
|
|
+ aP: $options.showFamilyWorkplaceField
|
|
|
|
+ }, $options.showFamilyWorkplaceField ? {
|
|
|
|
+ aQ: $data.familyMemberForm.workplaceOrAddress,
|
|
|
|
+ aR: common_vendor.o(($event) => $data.familyMemberForm.workplaceOrAddress = $event.detail.value)
|
|
} : {}, {
|
|
} : {}, {
|
|
- aB: $data.familyMemberForm.workplaceOrAddress,
|
|
|
|
- aC: common_vendor.o(($event) => $data.familyMemberForm.workplaceOrAddress = $event.detail.value),
|
|
|
|
- aD: $data.familyMemberForm.position,
|
|
|
|
- aE: common_vendor.o(($event) => $data.familyMemberForm.position = $event.detail.value),
|
|
|
|
- aF: $data.familyMemberErrors.phone ? 1 : "",
|
|
|
|
- aG: $data.familyMemberForm.phone,
|
|
|
|
- aH: common_vendor.o(($event) => $data.familyMemberForm.phone = $event.detail.value),
|
|
|
|
- aI: $data.familyMemberErrors.phone
|
|
|
|
- }, $data.familyMemberErrors.phone ? {
|
|
|
|
- aJ: common_vendor.t($data.familyMemberErrors.phone)
|
|
|
|
|
|
+ aS: $options.showFamilyPositionField
|
|
|
|
+ }, $options.showFamilyPositionField ? {
|
|
|
|
+ aT: $data.familyMemberForm.position,
|
|
|
|
+ aU: common_vendor.o(($event) => $data.familyMemberForm.position = $event.detail.value)
|
|
} : {}, {
|
|
} : {}, {
|
|
- aK: $data.familyMemberForm.isEmergencyContact,
|
|
|
|
- aL: common_vendor.o((...args) => $options.handleEmergencyContactChange && $options.handleEmergencyContactChange(...args)),
|
|
|
|
- aM: common_vendor.t($data.isEditing ? "✓" : "+"),
|
|
|
|
- aN: common_vendor.o((...args) => $options.saveFamilyMember && $options.saveFamilyMember(...args)),
|
|
|
|
- aO: common_vendor.t($data.isEditing ? "保存修改" : "添加成员")
|
|
|
|
|
|
+ aV: $options.showFamilyPhoneField
|
|
|
|
+ }, $options.showFamilyPhoneField ? common_vendor.e({
|
|
|
|
+ aW: $data.familyMemberErrors.phone ? 1 : "",
|
|
|
|
+ aX: $data.familyMemberForm.phone,
|
|
|
|
+ aY: common_vendor.o(($event) => $data.familyMemberForm.phone = $event.detail.value),
|
|
|
|
+ aZ: $data.familyMemberErrors.phone
|
|
|
|
+ }, $data.familyMemberErrors.phone ? {
|
|
|
|
+ ba: common_vendor.t($data.familyMemberErrors.phone)
|
|
|
|
+ } : {}) : {}, {
|
|
|
|
+ bb: $data.familyMemberForm.isEmergencyContact,
|
|
|
|
+ bc: common_vendor.o((...args) => $options.handleEmergencyContactChange && $options.handleEmergencyContactChange(...args)),
|
|
|
|
+ bd: common_vendor.t($data.isEditing ? "✓" : "+"),
|
|
|
|
+ be: common_vendor.o((...args) => $options.saveFamilyMember && $options.saveFamilyMember(...args)),
|
|
|
|
+ bf: common_vendor.t($data.isEditing ? "保存修改" : "添加成员")
|
|
}) : {}, {
|
|
}) : {}, {
|
|
- aP: $data.currentStep === 5
|
|
|
|
|
|
+ bg: $data.currentStep === 5
|
|
}, $data.currentStep === 5 ? common_vendor.e({
|
|
}, $data.currentStep === 5 ? common_vendor.e({
|
|
- aQ: $data.educationList.length > 0
|
|
|
|
|
|
+ bh: $data.educationList.length > 0
|
|
}, $data.educationList.length > 0 ? {
|
|
}, $data.educationList.length > 0 ? {
|
|
- aR: common_vendor.f($data.educationList, (edu, index, i0) => {
|
|
|
|
- return {
|
|
|
|
|
|
+ bi: common_vendor.f($data.educationList, (edu, index, i0) => {
|
|
|
|
+ return common_vendor.e({
|
|
a: common_vendor.t(index === 0 ? "第一学历" : "最高学历"),
|
|
a: common_vendor.t(index === 0 ? "第一学历" : "最高学历"),
|
|
b: common_vendor.o(($event) => $options.editEducation(index), index),
|
|
b: common_vendor.o(($event) => $options.editEducation(index), index),
|
|
- c: common_vendor.o(($event) => $options.deleteEducation(index), index),
|
|
|
|
|
|
+ c: common_vendor.o(($event) => $options.deleteEducation(index), index)
|
|
|
|
+ }, $options.showEducationTimeField ? {
|
|
d: common_vendor.t(edu.startTime),
|
|
d: common_vendor.t(edu.startTime),
|
|
- e: common_vendor.t(edu.endTime),
|
|
|
|
- f: common_vendor.t(edu.schoolName),
|
|
|
|
- g: common_vendor.t(edu.major),
|
|
|
|
- h: common_vendor.t(edu.degree),
|
|
|
|
|
|
+ e: common_vendor.t(edu.endTime)
|
|
|
|
+ } : {}, $options.showEducationSchoolField ? {
|
|
|
|
+ f: common_vendor.t(edu.schoolName)
|
|
|
|
+ } : {}, $options.showEducationMajorField ? {
|
|
|
|
+ g: common_vendor.t(edu.major)
|
|
|
|
+ } : {}, $options.showEducationDegreeField ? {
|
|
|
|
+ h: common_vendor.t(edu.degree)
|
|
|
|
+ } : {}, {
|
|
i: index
|
|
i: index
|
|
- };
|
|
|
|
- })
|
|
|
|
|
|
+ });
|
|
|
|
+ }),
|
|
|
|
+ bj: $options.showEducationTimeField,
|
|
|
|
+ bk: $options.showEducationSchoolField,
|
|
|
|
+ bl: $options.showEducationMajorField,
|
|
|
|
+ bm: $options.showEducationDegreeField
|
|
} : {}, {
|
|
} : {}, {
|
|
- aS: $data.educationList.length < 2 || $data.isEditingEducation
|
|
|
|
|
|
+ bn: $data.educationList.length < 2 || $data.isEditingEducation
|
|
}, $data.educationList.length < 2 || $data.isEditingEducation ? common_vendor.e({
|
|
}, $data.educationList.length < 2 || $data.isEditingEducation ? common_vendor.e({
|
|
- aT: common_vendor.t($data.isEditingEducation ? "编辑教育经历" : $data.educationList.length === 0 ? "添加第一学历" : "添加最高学历"),
|
|
|
|
- aU: $data.isEditingEducation
|
|
|
|
|
|
+ bo: common_vendor.t($data.isEditingEducation ? "编辑教育经历" : $data.educationList.length === 0 ? "添加第一学历" : "添加最高学历"),
|
|
|
|
+ bp: $data.isEditingEducation
|
|
}, $data.isEditingEducation ? {
|
|
}, $data.isEditingEducation ? {
|
|
- aV: common_vendor.o((...args) => $options.cancelEditEducation && $options.cancelEditEducation(...args))
|
|
|
|
|
|
+ bq: common_vendor.o((...args) => $options.cancelEditEducation && $options.cancelEditEducation(...args))
|
|
} : {}, {
|
|
} : {}, {
|
|
- aW: common_vendor.t($data.educationForm.startTime || "开始时间"),
|
|
|
|
- aX: $data.educationForm.startTime,
|
|
|
|
- aY: common_vendor.o((...args) => $options.bindStartTimeChange && $options.bindStartTimeChange(...args)),
|
|
|
|
- aZ: $data.educationErrors.startTime ? 1 : "",
|
|
|
|
- ba: common_vendor.t($data.educationForm.endTime || "结束时间"),
|
|
|
|
- bb: $data.educationForm.endTime,
|
|
|
|
- bc: common_vendor.o((...args) => $options.bindEndTimeChange && $options.bindEndTimeChange(...args)),
|
|
|
|
- bd: $data.educationErrors.endTime ? 1 : "",
|
|
|
|
- be: $data.educationErrors.startTime
|
|
|
|
|
|
+ br: $options.showEducationTimeField
|
|
|
|
+ }, $options.showEducationTimeField ? common_vendor.e({
|
|
|
|
+ bs: common_vendor.t($data.educationForm.startTime || "开始时间"),
|
|
|
|
+ bt: $data.educationForm.startTime,
|
|
|
|
+ bv: common_vendor.o((...args) => $options.bindStartTimeChange && $options.bindStartTimeChange(...args)),
|
|
|
|
+ bw: $data.educationErrors.startTime ? 1 : "",
|
|
|
|
+ bx: common_vendor.t($data.educationForm.endTime || "结束时间"),
|
|
|
|
+ by: $data.educationForm.endTime,
|
|
|
|
+ bz: common_vendor.o((...args) => $options.bindEndTimeChange && $options.bindEndTimeChange(...args)),
|
|
|
|
+ bA: $data.educationErrors.endTime ? 1 : "",
|
|
|
|
+ bB: $data.educationErrors.startTime
|
|
}, $data.educationErrors.startTime ? {
|
|
}, $data.educationErrors.startTime ? {
|
|
- bf: common_vendor.t($data.educationErrors.startTime)
|
|
|
|
|
|
+ bC: common_vendor.t($data.educationErrors.startTime)
|
|
} : {}, {
|
|
} : {}, {
|
|
- bg: $data.educationErrors.endTime
|
|
|
|
|
|
+ bD: $data.educationErrors.endTime
|
|
}, $data.educationErrors.endTime ? {
|
|
}, $data.educationErrors.endTime ? {
|
|
- bh: common_vendor.t($data.educationErrors.endTime)
|
|
|
|
- } : {}, {
|
|
|
|
- bi: $data.educationErrors.schoolName ? 1 : "",
|
|
|
|
- bj: $data.educationForm.schoolName,
|
|
|
|
- bk: common_vendor.o(($event) => $data.educationForm.schoolName = $event.detail.value),
|
|
|
|
- bl: $data.educationErrors.schoolName
|
|
|
|
|
|
+ bE: common_vendor.t($data.educationErrors.endTime)
|
|
|
|
+ } : {}) : {}, {
|
|
|
|
+ bF: $options.showEducationSchoolField
|
|
|
|
+ }, $options.showEducationSchoolField ? common_vendor.e({
|
|
|
|
+ bG: $data.educationErrors.schoolName ? 1 : "",
|
|
|
|
+ bH: $data.educationForm.schoolName,
|
|
|
|
+ bI: common_vendor.o(($event) => $data.educationForm.schoolName = $event.detail.value),
|
|
|
|
+ bJ: $data.educationErrors.schoolName
|
|
}, $data.educationErrors.schoolName ? {
|
|
}, $data.educationErrors.schoolName ? {
|
|
- bm: common_vendor.t($data.educationErrors.schoolName)
|
|
|
|
- } : {}, {
|
|
|
|
- bn: $data.educationErrors.major ? 1 : "",
|
|
|
|
- bo: $data.educationForm.major,
|
|
|
|
- bp: common_vendor.o(($event) => $data.educationForm.major = $event.detail.value),
|
|
|
|
- bq: $data.educationErrors.major
|
|
|
|
|
|
+ bK: common_vendor.t($data.educationErrors.schoolName)
|
|
|
|
+ } : {}) : {}, {
|
|
|
|
+ bL: $options.showEducationMajorField
|
|
|
|
+ }, $options.showEducationMajorField ? common_vendor.e({
|
|
|
|
+ bM: $data.educationErrors.major ? 1 : "",
|
|
|
|
+ bN: $data.educationForm.major,
|
|
|
|
+ bO: common_vendor.o(($event) => $data.educationForm.major = $event.detail.value),
|
|
|
|
+ bP: $data.educationErrors.major
|
|
}, $data.educationErrors.major ? {
|
|
}, $data.educationErrors.major ? {
|
|
- br: common_vendor.t($data.educationErrors.major)
|
|
|
|
- } : {}, {
|
|
|
|
- bs: common_vendor.t($data.degreeOptions[$data.degreeIndex] || "请选择学历"),
|
|
|
|
- bt: common_vendor.o((...args) => $options.bindDegreeChange && $options.bindDegreeChange(...args)),
|
|
|
|
- bv: $data.degreeIndex,
|
|
|
|
- bw: $data.degreeOptions,
|
|
|
|
- bx: $data.educationErrors.degree ? 1 : "",
|
|
|
|
- by: $data.educationErrors.degree
|
|
|
|
|
|
+ bQ: common_vendor.t($data.educationErrors.major)
|
|
|
|
+ } : {}) : {}, {
|
|
|
|
+ bR: $options.showEducationDegreeField
|
|
|
|
+ }, $options.showEducationDegreeField ? common_vendor.e({
|
|
|
|
+ bS: common_vendor.t($data.degreeOptions[$data.degreeIndex] || "请选择学历"),
|
|
|
|
+ bT: common_vendor.o((...args) => $options.bindDegreeChange && $options.bindDegreeChange(...args)),
|
|
|
|
+ bU: $data.degreeIndex,
|
|
|
|
+ bV: $data.degreeOptions,
|
|
|
|
+ bW: $data.educationErrors.degree ? 1 : "",
|
|
|
|
+ bX: $data.educationErrors.degree
|
|
}, $data.educationErrors.degree ? {
|
|
}, $data.educationErrors.degree ? {
|
|
- bz: common_vendor.t($data.educationErrors.degree)
|
|
|
|
- } : {}, {
|
|
|
|
- bA: common_vendor.t($data.isEditingEducation ? "✓" : "+"),
|
|
|
|
- bB: common_vendor.o((...args) => $options.saveEducation && $options.saveEducation(...args)),
|
|
|
|
- bC: common_vendor.t($data.isEditingEducation ? "保存修改" : "添加学历")
|
|
|
|
|
|
+ bY: common_vendor.t($data.educationErrors.degree)
|
|
|
|
+ } : {}) : {}, {
|
|
|
|
+ bZ: common_vendor.t($data.isEditingEducation ? "✓" : "+"),
|
|
|
|
+ ca: common_vendor.o((...args) => $options.saveEducation && $options.saveEducation(...args)),
|
|
|
|
+ cb: common_vendor.t($data.isEditingEducation ? "保存修改" : "添加学历")
|
|
}) : {}) : {}, {
|
|
}) : {}) : {}, {
|
|
- bD: $data.currentStep === 6
|
|
|
|
|
|
+ cc: $data.currentStep === 6
|
|
}, $data.currentStep === 6 ? common_vendor.e({
|
|
}, $data.currentStep === 6 ? common_vendor.e({
|
|
- bE: $data.formErrors.skills ? 1 : "",
|
|
|
|
- bF: $data.formData.skills,
|
|
|
|
- bG: common_vendor.o(($event) => $data.formData.skills = $event.detail.value),
|
|
|
|
- bH: $data.formErrors.skills
|
|
|
|
|
|
+ cd: $data.formErrors.skills ? 1 : "",
|
|
|
|
+ ce: $data.formData.skills,
|
|
|
|
+ cf: common_vendor.o(($event) => $data.formData.skills = $event.detail.value),
|
|
|
|
+ cg: $data.formErrors.skills
|
|
}, $data.formErrors.skills ? {
|
|
}, $data.formErrors.skills ? {
|
|
- bI: common_vendor.t($data.formErrors.skills)
|
|
|
|
|
|
+ ch: common_vendor.t($data.formErrors.skills)
|
|
} : {}, {
|
|
} : {}, {
|
|
- bJ: $data.formErrors.training ? 1 : "",
|
|
|
|
- bK: $data.formData.training,
|
|
|
|
- bL: common_vendor.o(($event) => $data.formData.training = $event.detail.value),
|
|
|
|
- bM: $data.formErrors.training
|
|
|
|
|
|
+ ci: $data.formErrors.training ? 1 : "",
|
|
|
|
+ cj: $data.formData.training,
|
|
|
|
+ ck: common_vendor.o(($event) => $data.formData.training = $event.detail.value),
|
|
|
|
+ cl: $data.formErrors.training
|
|
}, $data.formErrors.training ? {
|
|
}, $data.formErrors.training ? {
|
|
- bN: common_vendor.t($data.formErrors.training)
|
|
|
|
|
|
+ cm: common_vendor.t($data.formErrors.training)
|
|
} : {}) : {}, {
|
|
} : {}) : {}, {
|
|
- bO: $data.currentStep === 8
|
|
|
|
|
|
+ cn: $data.currentStep === 8
|
|
}, $data.currentStep === 8 ? common_vendor.e({
|
|
}, $data.currentStep === 8 ? common_vendor.e({
|
|
- bP: $data.workList.length > 0
|
|
|
|
|
|
+ co: $data.workList.length > 0
|
|
}, $data.workList.length > 0 ? {
|
|
}, $data.workList.length > 0 ? {
|
|
- bQ: common_vendor.f($data.workList, (work, index, i0) => {
|
|
|
|
- return {
|
|
|
|
|
|
+ cp: common_vendor.f($data.workList, (work, index, i0) => {
|
|
|
|
+ return common_vendor.e({
|
|
a: common_vendor.t(index + 1),
|
|
a: common_vendor.t(index + 1),
|
|
b: common_vendor.o(($event) => $options.editWork(index), index),
|
|
b: common_vendor.o(($event) => $options.editWork(index), index),
|
|
- c: common_vendor.o(($event) => $options.deleteWork(index), index),
|
|
|
|
|
|
+ c: common_vendor.o(($event) => $options.deleteWork(index), index)
|
|
|
|
+ }, $options.showWorkTimeField ? {
|
|
d: common_vendor.t(work.startTime),
|
|
d: common_vendor.t(work.startTime),
|
|
- e: common_vendor.t(work.endTime),
|
|
|
|
- f: common_vendor.t(work.companyName),
|
|
|
|
- g: common_vendor.t(work.department),
|
|
|
|
- h: common_vendor.t(work.employeeCount),
|
|
|
|
- i: common_vendor.t(work.position),
|
|
|
|
|
|
+ e: common_vendor.t(work.endTime)
|
|
|
|
+ } : {}, $options.showWorkCompanyField ? {
|
|
|
|
+ f: common_vendor.t(work.companyName)
|
|
|
|
+ } : {}, $options.showWorkDepartmentField ? {
|
|
|
|
+ g: common_vendor.t(work.department)
|
|
|
|
+ } : {}, $options.showWorkEmployeeCountField ? {
|
|
|
|
+ h: common_vendor.t(work.employeeCount)
|
|
|
|
+ } : {}, $options.showWorkPositionField ? {
|
|
|
|
+ i: common_vendor.t(work.position)
|
|
|
|
+ } : {}, {
|
|
j: common_vendor.t(work.monthlySalary),
|
|
j: common_vendor.t(work.monthlySalary),
|
|
k: common_vendor.t(work.supervisor),
|
|
k: common_vendor.t(work.supervisor),
|
|
l: common_vendor.t(work.supervisorPhone),
|
|
l: common_vendor.t(work.supervisorPhone),
|
|
m: index
|
|
m: index
|
|
- };
|
|
|
|
- })
|
|
|
|
|
|
+ });
|
|
|
|
+ }),
|
|
|
|
+ cq: $options.showWorkTimeField,
|
|
|
|
+ cr: $options.showWorkCompanyField,
|
|
|
|
+ cs: $options.showWorkDepartmentField,
|
|
|
|
+ ct: $options.showWorkEmployeeCountField,
|
|
|
|
+ cv: $options.showWorkPositionField
|
|
} : {}, {
|
|
} : {}, {
|
|
- bR: $data.workList.length < 2 || $data.isEditingWork
|
|
|
|
|
|
+ cw: $data.workList.length < 2 || $data.isEditingWork
|
|
}, $data.workList.length < 2 || $data.isEditingWork ? common_vendor.e({
|
|
}, $data.workList.length < 2 || $data.isEditingWork ? common_vendor.e({
|
|
- bS: common_vendor.t($data.isEditingWork ? "编辑工作经历" : "添加工作经历"),
|
|
|
|
- bT: $data.isEditingWork
|
|
|
|
|
|
+ cx: common_vendor.t($data.isEditingWork ? "编辑工作经历" : "添加工作经历"),
|
|
|
|
+ cy: $data.isEditingWork
|
|
}, $data.isEditingWork ? {
|
|
}, $data.isEditingWork ? {
|
|
- bU: common_vendor.o((...args) => $options.cancelEditWork && $options.cancelEditWork(...args))
|
|
|
|
|
|
+ cz: common_vendor.o((...args) => $options.cancelEditWork && $options.cancelEditWork(...args))
|
|
} : {}, {
|
|
} : {}, {
|
|
- bV: common_vendor.t($data.workForm.startTime || "开始时间"),
|
|
|
|
- bW: $data.workForm.startTime,
|
|
|
|
- bX: common_vendor.o((...args) => $options.bindWorkStartTimeChange && $options.bindWorkStartTimeChange(...args)),
|
|
|
|
- bY: $data.workErrors.startTime ? 1 : "",
|
|
|
|
- bZ: common_vendor.t($data.workForm.endTime || "结束时间"),
|
|
|
|
- ca: $data.workForm.endTime,
|
|
|
|
- cb: common_vendor.o((...args) => $options.bindWorkEndTimeChange && $options.bindWorkEndTimeChange(...args)),
|
|
|
|
- cc: $data.workErrors.endTime ? 1 : "",
|
|
|
|
- cd: $data.workErrors.startTime
|
|
|
|
|
|
+ cA: $options.showWorkTimeField
|
|
|
|
+ }, $options.showWorkTimeField ? common_vendor.e({
|
|
|
|
+ cB: common_vendor.t($data.workForm.startTime || "开始时间"),
|
|
|
|
+ cC: $data.workForm.startTime,
|
|
|
|
+ cD: common_vendor.o((...args) => $options.bindWorkStartTimeChange && $options.bindWorkStartTimeChange(...args)),
|
|
|
|
+ cE: $data.workErrors.startTime ? 1 : "",
|
|
|
|
+ cF: common_vendor.t($data.workForm.endTime || "结束时间"),
|
|
|
|
+ cG: $data.workForm.endTime,
|
|
|
|
+ cH: common_vendor.o((...args) => $options.bindWorkEndTimeChange && $options.bindWorkEndTimeChange(...args)),
|
|
|
|
+ cI: $data.workErrors.endTime ? 1 : "",
|
|
|
|
+ cJ: $data.workErrors.startTime
|
|
}, $data.workErrors.startTime ? {
|
|
}, $data.workErrors.startTime ? {
|
|
- ce: common_vendor.t($data.workErrors.startTime)
|
|
|
|
|
|
+ cK: common_vendor.t($data.workErrors.startTime)
|
|
} : {}, {
|
|
} : {}, {
|
|
- cf: $data.workErrors.endTime
|
|
|
|
|
|
+ cL: $data.workErrors.endTime
|
|
}, $data.workErrors.endTime ? {
|
|
}, $data.workErrors.endTime ? {
|
|
- cg: common_vendor.t($data.workErrors.endTime)
|
|
|
|
- } : {}, {
|
|
|
|
- ch: $data.workErrors.companyName ? 1 : "",
|
|
|
|
- ci: $data.workForm.companyName,
|
|
|
|
- cj: common_vendor.o(($event) => $data.workForm.companyName = $event.detail.value),
|
|
|
|
- ck: $data.workErrors.companyName
|
|
|
|
|
|
+ cM: common_vendor.t($data.workErrors.endTime)
|
|
|
|
+ } : {}) : {}, {
|
|
|
|
+ cN: $options.showWorkCompanyField
|
|
|
|
+ }, $options.showWorkCompanyField ? common_vendor.e({
|
|
|
|
+ cO: $data.workErrors.companyName ? 1 : "",
|
|
|
|
+ cP: $data.workForm.companyName,
|
|
|
|
+ cQ: common_vendor.o(($event) => $data.workForm.companyName = $event.detail.value),
|
|
|
|
+ cR: $data.workErrors.companyName
|
|
}, $data.workErrors.companyName ? {
|
|
}, $data.workErrors.companyName ? {
|
|
- cl: common_vendor.t($data.workErrors.companyName)
|
|
|
|
- } : {}, {
|
|
|
|
- cm: $data.workErrors.employeeCount ? 1 : "",
|
|
|
|
- cn: $data.workForm.employeeCount,
|
|
|
|
- co: common_vendor.o(($event) => $data.workForm.employeeCount = $event.detail.value),
|
|
|
|
- cp: $data.workErrors.employeeCount
|
|
|
|
|
|
+ cS: common_vendor.t($data.workErrors.companyName)
|
|
|
|
+ } : {}) : {}, {
|
|
|
|
+ cT: $options.showWorkEmployeeCountField
|
|
|
|
+ }, $options.showWorkEmployeeCountField ? common_vendor.e({
|
|
|
|
+ cU: $data.workErrors.employeeCount ? 1 : "",
|
|
|
|
+ cV: $data.workForm.employeeCount,
|
|
|
|
+ cW: common_vendor.o(($event) => $data.workForm.employeeCount = $event.detail.value),
|
|
|
|
+ cX: $data.workErrors.employeeCount
|
|
}, $data.workErrors.employeeCount ? {
|
|
}, $data.workErrors.employeeCount ? {
|
|
- cq: common_vendor.t($data.workErrors.employeeCount)
|
|
|
|
- } : {}, {
|
|
|
|
- cr: $data.workErrors.department ? 1 : "",
|
|
|
|
- cs: $data.workForm.department,
|
|
|
|
- ct: common_vendor.o(($event) => $data.workForm.department = $event.detail.value),
|
|
|
|
- cv: $data.workErrors.department
|
|
|
|
|
|
+ cY: common_vendor.t($data.workErrors.employeeCount)
|
|
|
|
+ } : {}) : {}, {
|
|
|
|
+ cZ: $options.showWorkDepartmentField
|
|
|
|
+ }, $options.showWorkDepartmentField ? common_vendor.e({
|
|
|
|
+ da: $data.workErrors.department ? 1 : "",
|
|
|
|
+ db: $data.workForm.department,
|
|
|
|
+ dc: common_vendor.o(($event) => $data.workForm.department = $event.detail.value),
|
|
|
|
+ dd: $data.workErrors.department
|
|
}, $data.workErrors.department ? {
|
|
}, $data.workErrors.department ? {
|
|
- cw: common_vendor.t($data.workErrors.department)
|
|
|
|
- } : {}, {
|
|
|
|
- cx: $data.workErrors.position ? 1 : "",
|
|
|
|
- cy: $data.workForm.position,
|
|
|
|
- cz: common_vendor.o(($event) => $data.workForm.position = $event.detail.value),
|
|
|
|
- cA: $data.workErrors.position
|
|
|
|
|
|
+ de: common_vendor.t($data.workErrors.department)
|
|
|
|
+ } : {}) : {}, {
|
|
|
|
+ df: $options.showWorkPositionField
|
|
|
|
+ }, $options.showWorkPositionField ? common_vendor.e({
|
|
|
|
+ dg: $data.workErrors.position ? 1 : "",
|
|
|
|
+ dh: $data.workForm.position,
|
|
|
|
+ di: common_vendor.o(($event) => $data.workForm.position = $event.detail.value),
|
|
|
|
+ dj: $data.workErrors.position
|
|
}, $data.workErrors.position ? {
|
|
}, $data.workErrors.position ? {
|
|
- cB: common_vendor.t($data.workErrors.position)
|
|
|
|
- } : {}, {
|
|
|
|
- cC: $data.workForm.monthlySalary,
|
|
|
|
- cD: common_vendor.o(($event) => $data.workForm.monthlySalary = $event.detail.value),
|
|
|
|
- cE: $data.workErrors.monthlySalary
|
|
|
|
|
|
+ dk: common_vendor.t($data.workErrors.position)
|
|
|
|
+ } : {}) : {}, {
|
|
|
|
+ dl: $data.workForm.monthlySalary,
|
|
|
|
+ dm: common_vendor.o(($event) => $data.workForm.monthlySalary = $event.detail.value),
|
|
|
|
+ dn: $data.workErrors.monthlySalary
|
|
}, $data.workErrors.monthlySalary ? {
|
|
}, $data.workErrors.monthlySalary ? {
|
|
- cF: common_vendor.t($data.workErrors.monthlySalary)
|
|
|
|
|
|
+ dp: common_vendor.t($data.workErrors.monthlySalary)
|
|
} : {}, {
|
|
} : {}, {
|
|
- cG: $data.workForm.supervisor,
|
|
|
|
- cH: common_vendor.o(($event) => $data.workForm.supervisor = $event.detail.value),
|
|
|
|
- cI: $data.workErrors.supervisor
|
|
|
|
|
|
+ dq: $data.workForm.supervisor,
|
|
|
|
+ dr: common_vendor.o(($event) => $data.workForm.supervisor = $event.detail.value),
|
|
|
|
+ ds: $data.workErrors.supervisor
|
|
}, $data.workErrors.supervisor ? {
|
|
}, $data.workErrors.supervisor ? {
|
|
- cJ: common_vendor.t($data.workErrors.supervisor)
|
|
|
|
|
|
+ dt: common_vendor.t($data.workErrors.supervisor)
|
|
} : {}, {
|
|
} : {}, {
|
|
- cK: $data.workForm.supervisorPhone,
|
|
|
|
- cL: common_vendor.o(($event) => $data.workForm.supervisorPhone = $event.detail.value),
|
|
|
|
- cM: $data.workErrors.supervisorPhone
|
|
|
|
|
|
+ dv: $data.workForm.supervisorPhone,
|
|
|
|
+ dw: common_vendor.o(($event) => $data.workForm.supervisorPhone = $event.detail.value),
|
|
|
|
+ dx: $data.workErrors.supervisorPhone
|
|
}, $data.workErrors.supervisorPhone ? {
|
|
}, $data.workErrors.supervisorPhone ? {
|
|
- cN: common_vendor.t($data.workErrors.supervisorPhone)
|
|
|
|
|
|
+ dy: common_vendor.t($data.workErrors.supervisorPhone)
|
|
} : {}, {
|
|
} : {}, {
|
|
- cO: common_vendor.t($data.isEditingWork ? "✓" : "+"),
|
|
|
|
- cP: common_vendor.o((...args) => $options.saveWork && $options.saveWork(...args)),
|
|
|
|
- cQ: common_vendor.t($data.isEditingWork ? "保存修改" : "添加工作经历")
|
|
|
|
|
|
+ dz: common_vendor.t($data.isEditingWork ? "✓" : "+"),
|
|
|
|
+ dA: common_vendor.o((...args) => $options.saveWork && $options.saveWork(...args)),
|
|
|
|
+ dB: common_vendor.t($data.isEditingWork ? "保存修改" : "添加工作经历")
|
|
}) : {}) : {}, {
|
|
}) : {}) : {}, {
|
|
- cR: $options.showPrevButton
|
|
|
|
|
|
+ dC: $options.showPrevButton
|
|
}, $options.showPrevButton ? {
|
|
}, $options.showPrevButton ? {
|
|
- cS: common_vendor.o((...args) => $options.prevStep && $options.prevStep(...args))
|
|
|
|
|
|
+ dD: common_vendor.o((...args) => $options.prevStep && $options.prevStep(...args))
|
|
} : {}, {
|
|
} : {}, {
|
|
- cT: $options.showNextButton
|
|
|
|
|
|
+ dE: $options.showNextButton
|
|
}, $options.showNextButton ? {
|
|
}, $options.showNextButton ? {
|
|
- cU: common_vendor.o((...args) => $options.nextStep && $options.nextStep(...args))
|
|
|
|
|
|
+ dF: common_vendor.o((...args) => $options.nextStep && $options.nextStep(...args))
|
|
} : {}, {
|
|
} : {}, {
|
|
- cV: $options.showSubmitButton
|
|
|
|
|
|
+ dG: $options.showSubmitButton
|
|
}, $options.showSubmitButton ? {
|
|
}, $options.showSubmitButton ? {
|
|
- cW: common_vendor.o((...args) => $options.submitForm && $options.submitForm(...args))
|
|
|
|
|
|
+ dH: common_vendor.o((...args) => $options.submitForm && $options.submitForm(...args))
|
|
} : {});
|
|
} : {});
|
|
}
|
|
}
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|