|
@@ -570,10 +570,28 @@ const _sfc_main = {
|
|
|
},
|
|
|
// 教育经历相关方法
|
|
|
bindStartTimeChange(e) {
|
|
|
- this.educationForm.startTime = e.detail.value;
|
|
|
+ const startTime = e.detail.value;
|
|
|
+ if (this.educationForm.endTime && startTime > this.educationForm.endTime) {
|
|
|
+ common_vendor.index.showToast({
|
|
|
+ title: "开始时间不能大于结束时间",
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.educationForm.startTime = startTime;
|
|
|
+ this.educationErrors.startTime = false;
|
|
|
},
|
|
|
bindEndTimeChange(e) {
|
|
|
- this.educationForm.endTime = e.detail.value;
|
|
|
+ const endTime = e.detail.value;
|
|
|
+ if (this.educationForm.startTime && endTime < this.educationForm.startTime) {
|
|
|
+ common_vendor.index.showToast({
|
|
|
+ title: "结束时间不能小于开始时间",
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.educationForm.endTime = endTime;
|
|
|
+ this.educationErrors.endTime = false;
|
|
|
},
|
|
|
bindDegreeChange(e) {
|
|
|
this.degreeIndex = e.detail.value;
|
|
@@ -667,10 +685,28 @@ const _sfc_main = {
|
|
|
},
|
|
|
// 工作经历相关方法
|
|
|
bindWorkStartTimeChange(e) {
|
|
|
- this.workForm.startTime = e.detail.value;
|
|
|
+ const startTime = e.detail.value;
|
|
|
+ if (this.workForm.endTime && startTime > this.workForm.endTime) {
|
|
|
+ common_vendor.index.showToast({
|
|
|
+ title: "开始时间不能大于结束时间",
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.workForm.startTime = startTime;
|
|
|
+ this.workErrors.startTime = false;
|
|
|
},
|
|
|
bindWorkEndTimeChange(e) {
|
|
|
- this.workForm.endTime = e.detail.value;
|
|
|
+ const endTime = e.detail.value;
|
|
|
+ if (this.workForm.startTime && endTime < this.workForm.startTime) {
|
|
|
+ common_vendor.index.showToast({
|
|
|
+ title: "结束时间不能小于开始时间",
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.workForm.endTime = endTime;
|
|
|
+ this.workErrors.endTime = false;
|
|
|
},
|
|
|
saveWork() {
|
|
|
this.workErrors = {
|
|
@@ -1349,6 +1385,72 @@ const _sfc_main = {
|
|
|
return false;
|
|
|
}
|
|
|
return true;
|
|
|
+ },
|
|
|
+ validateExpectedSalary(e) {
|
|
|
+ const value = e.detail.value;
|
|
|
+ console.log(value);
|
|
|
+ if (value === "") {
|
|
|
+ this.formData.expectedSalary = "";
|
|
|
+ this.formErrors.expectedSalary = "";
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ let num = parseFloat(value);
|
|
|
+ if (isNaN(num)) {
|
|
|
+ this.formErrors.expectedSalary = "请输入有效的数字";
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (num < 0) {
|
|
|
+ num = 0;
|
|
|
+ this.formErrors.expectedSalary = "薪资不能小于0";
|
|
|
+ } else if (num > 1e5) {
|
|
|
+ num = 1e5;
|
|
|
+ this.formErrors.expectedSalary = "薪资不能超过100000";
|
|
|
+ }
|
|
|
+ this.formData.expectedSalary = num.toString();
|
|
|
+ },
|
|
|
+ validateEmployeeCount(e) {
|
|
|
+ const value = e.detail.value;
|
|
|
+ if (value === "") {
|
|
|
+ this.workForm.employeeCount = "";
|
|
|
+ this.workErrors.employeeCount = "";
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ let num = parseInt(value);
|
|
|
+ if (isNaN(num)) {
|
|
|
+ this.workErrors.employeeCount = "请输入有效的数字";
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (num < 0) {
|
|
|
+ num = 0;
|
|
|
+ this.workErrors.employeeCount = "人数不能小于0";
|
|
|
+ } else if (num > 1e4) {
|
|
|
+ num = 1e4;
|
|
|
+ this.workErrors.employeeCount = "人数不能超过10000";
|
|
|
+ }
|
|
|
+ this.workForm.employeeCount = num.toString();
|
|
|
+ },
|
|
|
+ validateMonthlySalary(e) {
|
|
|
+ const value = e.detail.value;
|
|
|
+ if (value === "") {
|
|
|
+ this.workForm.monthlySalary = "";
|
|
|
+ this.workErrors.monthlySalary = "";
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ let num = parseInt(value);
|
|
|
+ if (isNaN(num)) {
|
|
|
+ this.workErrors.monthlySalary = "请输入有效的数字";
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (num < 0) {
|
|
|
+ num = 0;
|
|
|
+ this.workErrors.monthlySalary = "月总收入不能小于0";
|
|
|
+ } else if (num > 1e5) {
|
|
|
+ num = 1e5;
|
|
|
+ this.workErrors.monthlySalary = "月总收入不能超过100000";
|
|
|
+ } else {
|
|
|
+ this.workErrors.monthlySalary = "";
|
|
|
+ }
|
|
|
+ this.workForm.monthlySalary = num.toString();
|
|
|
}
|
|
|
},
|
|
|
// 添加监听器来清除错误信息
|
|
@@ -1591,14 +1693,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
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)
|
|
|
- }) : {}, {
|
|
|
- ar: $data.currentStep === 3
|
|
|
+ ap: common_vendor.o((...args) => $options.validateExpectedSalary && $options.validateExpectedSalary(...args)),
|
|
|
+ aq: $data.formErrors.expectedSalary ? 1 : "",
|
|
|
+ ar: $data.formData.expectedSalary,
|
|
|
+ as: common_vendor.o(($event) => $data.formData.expectedSalary = $event.detail.value),
|
|
|
+ at: $data.formErrors.expectedSalary
|
|
|
+ }, $data.formErrors.expectedSalary ? {
|
|
|
+ av: common_vendor.t($data.formErrors.expectedSalary)
|
|
|
+ } : {}) : {}, {
|
|
|
+ aw: $data.currentStep === 3
|
|
|
}, $data.currentStep === 3 ? common_vendor.e({
|
|
|
- as: $data.familyMembers.length > 0
|
|
|
+ ax: $data.familyMembers.length > 0
|
|
|
}, $data.familyMembers.length > 0 ? {
|
|
|
- at: common_vendor.f($data.familyMembers, (member, index, i0) => {
|
|
|
+ ay: common_vendor.f($data.familyMembers, (member, index, i0) => {
|
|
|
return common_vendor.e({
|
|
|
a: common_vendor.t(index + 1),
|
|
|
b: common_vendor.o(($event) => $options.editFamilyMember(index), index),
|
|
@@ -1618,65 +1725,65 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
j: index
|
|
|
});
|
|
|
}),
|
|
|
- av: $options.showFamilyRelationField,
|
|
|
- aw: $options.showFamilyNameField,
|
|
|
- ax: $options.showFamilyWorkplaceField,
|
|
|
- ay: $options.showFamilyPositionField,
|
|
|
- az: $options.showFamilyPhoneField
|
|
|
+ az: $options.showFamilyRelationField,
|
|
|
+ aA: $options.showFamilyNameField,
|
|
|
+ aB: $options.showFamilyWorkplaceField,
|
|
|
+ aC: $options.showFamilyPositionField,
|
|
|
+ aD: $options.showFamilyPhoneField
|
|
|
} : {}, {
|
|
|
- aA: common_vendor.t($data.isEditing ? "编辑家庭成员" : "添加家庭成员"),
|
|
|
- aB: $data.isEditing
|
|
|
+ aE: common_vendor.t($data.isEditing ? "编辑家庭成员" : "添加家庭成员"),
|
|
|
+ aF: $data.isEditing
|
|
|
}, $data.isEditing ? {
|
|
|
- aC: common_vendor.o((...args) => $options.cancelEdit && $options.cancelEdit(...args))
|
|
|
+ aG: common_vendor.o((...args) => $options.cancelEdit && $options.cancelEdit(...args))
|
|
|
} : {}, {
|
|
|
- aD: $options.showFamilyRelationField
|
|
|
+ aH: $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
|
|
|
+ aI: $data.familyMemberErrors.relation ? 1 : "",
|
|
|
+ aJ: $data.familyMemberForm.relation,
|
|
|
+ aK: common_vendor.o(($event) => $data.familyMemberForm.relation = $event.detail.value),
|
|
|
+ aL: $data.familyMemberErrors.relation
|
|
|
}, $data.familyMemberErrors.relation ? {
|
|
|
- aI: common_vendor.t($data.familyMemberErrors.relation)
|
|
|
+ aM: common_vendor.t($data.familyMemberErrors.relation)
|
|
|
} : {}) : {}, {
|
|
|
- aJ: $options.showFamilyNameField
|
|
|
+ aN: $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
|
|
|
+ aO: $data.familyMemberErrors.name ? 1 : "",
|
|
|
+ aP: $data.familyMemberForm.name,
|
|
|
+ aQ: common_vendor.o(($event) => $data.familyMemberForm.name = $event.detail.value),
|
|
|
+ aR: $data.familyMemberErrors.name
|
|
|
}, $data.familyMemberErrors.name ? {
|
|
|
- aO: common_vendor.t($data.familyMemberErrors.name)
|
|
|
+ aS: common_vendor.t($data.familyMemberErrors.name)
|
|
|
} : {}) : {}, {
|
|
|
- aP: $options.showFamilyWorkplaceField
|
|
|
+ aT: $options.showFamilyWorkplaceField
|
|
|
}, $options.showFamilyWorkplaceField ? {
|
|
|
- aQ: $data.familyMemberForm.workplaceOrAddress,
|
|
|
- aR: common_vendor.o(($event) => $data.familyMemberForm.workplaceOrAddress = $event.detail.value)
|
|
|
+ aU: $data.familyMemberForm.workplaceOrAddress,
|
|
|
+ aV: common_vendor.o(($event) => $data.familyMemberForm.workplaceOrAddress = $event.detail.value)
|
|
|
} : {}, {
|
|
|
- aS: $options.showFamilyPositionField
|
|
|
+ aW: $options.showFamilyPositionField
|
|
|
}, $options.showFamilyPositionField ? {
|
|
|
- aT: $data.familyMemberForm.position,
|
|
|
- aU: common_vendor.o(($event) => $data.familyMemberForm.position = $event.detail.value)
|
|
|
+ aX: $data.familyMemberForm.position,
|
|
|
+ aY: common_vendor.o(($event) => $data.familyMemberForm.position = $event.detail.value)
|
|
|
} : {}, {
|
|
|
- aV: $options.showFamilyPhoneField
|
|
|
+ aZ: $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
|
|
|
+ ba: $data.familyMemberErrors.phone ? 1 : "",
|
|
|
+ bb: $data.familyMemberForm.phone,
|
|
|
+ bc: common_vendor.o(($event) => $data.familyMemberForm.phone = $event.detail.value),
|
|
|
+ bd: $data.familyMemberErrors.phone
|
|
|
}, $data.familyMemberErrors.phone ? {
|
|
|
- ba: common_vendor.t($data.familyMemberErrors.phone)
|
|
|
+ be: 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 ? "保存修改" : "添加成员")
|
|
|
+ bf: $data.familyMemberForm.isEmergencyContact,
|
|
|
+ bg: common_vendor.o((...args) => $options.handleEmergencyContactChange && $options.handleEmergencyContactChange(...args)),
|
|
|
+ bh: common_vendor.t($data.isEditing ? "✓" : "+"),
|
|
|
+ bi: common_vendor.o((...args) => $options.saveFamilyMember && $options.saveFamilyMember(...args)),
|
|
|
+ bj: common_vendor.t($data.isEditing ? "保存修改" : "添加成员")
|
|
|
}) : {}, {
|
|
|
- bg: $data.currentStep === 5
|
|
|
+ bk: $data.currentStep === 5
|
|
|
}, $data.currentStep === 5 ? common_vendor.e({
|
|
|
- bh: $data.educationList.length > 0
|
|
|
+ bl: $data.educationList.length > 0
|
|
|
}, $data.educationList.length > 0 ? {
|
|
|
- bi: common_vendor.f($data.educationList, (edu, index, i0) => {
|
|
|
+ bm: common_vendor.f($data.educationList, (edu, index, i0) => {
|
|
|
return common_vendor.e({
|
|
|
a: common_vendor.t(index === 0 ? "第一学历" : "最高学历"),
|
|
|
b: common_vendor.o(($event) => $options.editEducation(index), index),
|
|
@@ -1694,98 +1801,98 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
i: index
|
|
|
});
|
|
|
}),
|
|
|
- bj: $options.showEducationTimeField,
|
|
|
- bk: $options.showEducationSchoolField,
|
|
|
- bl: $options.showEducationMajorField,
|
|
|
- bm: $options.showEducationDegreeField
|
|
|
+ bn: $options.showEducationTimeField,
|
|
|
+ bo: $options.showEducationSchoolField,
|
|
|
+ bp: $options.showEducationMajorField,
|
|
|
+ bq: $options.showEducationDegreeField
|
|
|
} : {}, {
|
|
|
- bn: $data.educationList.length < 2 || $data.isEditingEducation
|
|
|
+ br: $data.educationList.length < 2 || $data.isEditingEducation
|
|
|
}, $data.educationList.length < 2 || $data.isEditingEducation ? common_vendor.e({
|
|
|
- bo: common_vendor.t($data.isEditingEducation ? "编辑教育经历" : $data.educationList.length === 0 ? "添加第一学历" : "添加最高学历"),
|
|
|
- bp: $data.isEditingEducation
|
|
|
+ bs: common_vendor.t($data.isEditingEducation ? "编辑教育经历" : $data.educationList.length === 0 ? "添加第一学历" : "添加最高学历"),
|
|
|
+ bt: $data.isEditingEducation
|
|
|
}, $data.isEditingEducation ? {
|
|
|
- bq: common_vendor.o((...args) => $options.cancelEditEducation && $options.cancelEditEducation(...args))
|
|
|
+ bv: common_vendor.o((...args) => $options.cancelEditEducation && $options.cancelEditEducation(...args))
|
|
|
} : {}, {
|
|
|
- br: $options.showEducationTimeField
|
|
|
+ bw: $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
|
|
|
+ bx: common_vendor.t($data.educationForm.startTime || "开始时间"),
|
|
|
+ by: $data.educationForm.startTime,
|
|
|
+ bz: common_vendor.o((...args) => $options.bindStartTimeChange && $options.bindStartTimeChange(...args)),
|
|
|
+ bA: $data.educationErrors.startTime ? 1 : "",
|
|
|
+ bB: common_vendor.t($data.educationForm.endTime || "结束时间"),
|
|
|
+ bC: $data.educationForm.endTime,
|
|
|
+ bD: common_vendor.o((...args) => $options.bindEndTimeChange && $options.bindEndTimeChange(...args)),
|
|
|
+ bE: $data.educationErrors.endTime ? 1 : "",
|
|
|
+ bF: $data.educationErrors.startTime
|
|
|
}, $data.educationErrors.startTime ? {
|
|
|
- bC: common_vendor.t($data.educationErrors.startTime)
|
|
|
+ bG: common_vendor.t($data.educationErrors.startTime)
|
|
|
} : {}, {
|
|
|
- bD: $data.educationErrors.endTime
|
|
|
+ bH: $data.educationErrors.endTime
|
|
|
}, $data.educationErrors.endTime ? {
|
|
|
- bE: common_vendor.t($data.educationErrors.endTime)
|
|
|
+ bI: common_vendor.t($data.educationErrors.endTime)
|
|
|
} : {}) : {}, {
|
|
|
- bF: $options.showEducationSchoolField
|
|
|
+ bJ: $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
|
|
|
+ bK: $data.educationErrors.schoolName ? 1 : "",
|
|
|
+ bL: $data.educationForm.schoolName,
|
|
|
+ bM: common_vendor.o(($event) => $data.educationForm.schoolName = $event.detail.value),
|
|
|
+ bN: $data.educationErrors.schoolName
|
|
|
}, $data.educationErrors.schoolName ? {
|
|
|
- bK: common_vendor.t($data.educationErrors.schoolName)
|
|
|
+ bO: common_vendor.t($data.educationErrors.schoolName)
|
|
|
} : {}) : {}, {
|
|
|
- bL: $options.showEducationMajorField
|
|
|
+ bP: $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
|
|
|
+ bQ: $data.educationErrors.major ? 1 : "",
|
|
|
+ bR: $data.educationForm.major,
|
|
|
+ bS: common_vendor.o(($event) => $data.educationForm.major = $event.detail.value),
|
|
|
+ bT: $data.educationErrors.major
|
|
|
}, $data.educationErrors.major ? {
|
|
|
- bQ: common_vendor.t($data.educationErrors.major)
|
|
|
+ bU: common_vendor.t($data.educationErrors.major)
|
|
|
} : {}) : {}, {
|
|
|
- bR: $options.showEducationDegreeField
|
|
|
+ bV: $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
|
|
|
+ bW: common_vendor.t($data.degreeOptions[$data.degreeIndex] || "请选择学历"),
|
|
|
+ bX: common_vendor.o((...args) => $options.bindDegreeChange && $options.bindDegreeChange(...args)),
|
|
|
+ bY: $data.degreeIndex,
|
|
|
+ bZ: $data.degreeOptions,
|
|
|
+ ca: $data.educationErrors.degree ? 1 : "",
|
|
|
+ cb: $data.educationErrors.degree
|
|
|
}, $data.educationErrors.degree ? {
|
|
|
- bY: common_vendor.t($data.educationErrors.degree)
|
|
|
+ cc: 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 ? "保存修改" : "添加学历")
|
|
|
+ cd: common_vendor.t($data.isEditingEducation ? "✓" : "+"),
|
|
|
+ ce: common_vendor.o((...args) => $options.saveEducation && $options.saveEducation(...args)),
|
|
|
+ cf: common_vendor.t($data.isEditingEducation ? "保存修改" : "添加学历")
|
|
|
}) : {}) : {}, {
|
|
|
- cc: $data.currentStep === 6 && ($options.showRequireTrainingInfoField || $options.showRequireProfessionalSkillsField)
|
|
|
+ cg: $data.currentStep === 6 && ($options.showRequireTrainingInfoField || $options.showRequireProfessionalSkillsField)
|
|
|
}, $data.currentStep === 6 && ($options.showRequireTrainingInfoField || $options.showRequireProfessionalSkillsField) ? common_vendor.e({
|
|
|
- cd: $options.showRequireTrainingInfoField
|
|
|
+ ch: $options.showRequireTrainingInfoField
|
|
|
}, $options.showRequireTrainingInfoField ? {} : {}, {
|
|
|
- ce: $options.showRequireTrainingInfoField
|
|
|
+ ci: $options.showRequireTrainingInfoField
|
|
|
}, $options.showRequireTrainingInfoField ? common_vendor.e({
|
|
|
- cf: $data.formErrors.skills ? 1 : "",
|
|
|
- cg: $data.formData.skills,
|
|
|
- ch: common_vendor.o(($event) => $data.formData.skills = $event.detail.value),
|
|
|
- ci: $data.formErrors.skills
|
|
|
+ cj: $data.formErrors.skills ? 1 : "",
|
|
|
+ ck: $data.formData.skills,
|
|
|
+ cl: common_vendor.o(($event) => $data.formData.skills = $event.detail.value),
|
|
|
+ cm: $data.formErrors.skills
|
|
|
}, $data.formErrors.skills ? {
|
|
|
- cj: common_vendor.t($data.formErrors.skills)
|
|
|
+ cn: common_vendor.t($data.formErrors.skills)
|
|
|
} : {}) : {}, {
|
|
|
- ck: $options.showRequireProfessionalSkillsField
|
|
|
+ co: $options.showRequireProfessionalSkillsField
|
|
|
}, $options.showRequireProfessionalSkillsField ? {} : {}, {
|
|
|
- cl: $options.showRequireProfessionalSkillsField
|
|
|
+ cp: $options.showRequireProfessionalSkillsField
|
|
|
}, $options.showRequireProfessionalSkillsField ? common_vendor.e({
|
|
|
- cm: $data.formErrors.training ? 1 : "",
|
|
|
- cn: $data.formData.training,
|
|
|
- co: common_vendor.o(($event) => $data.formData.training = $event.detail.value),
|
|
|
- cp: $data.formErrors.training
|
|
|
+ cq: $data.formErrors.training ? 1 : "",
|
|
|
+ cr: $data.formData.training,
|
|
|
+ cs: common_vendor.o(($event) => $data.formData.training = $event.detail.value),
|
|
|
+ ct: $data.formErrors.training
|
|
|
}, $data.formErrors.training ? {
|
|
|
- cq: common_vendor.t($data.formErrors.training)
|
|
|
+ cv: common_vendor.t($data.formErrors.training)
|
|
|
} : {}) : {}) : {}, {
|
|
|
- cr: $data.currentStep === 8
|
|
|
+ cw: $data.currentStep === 8
|
|
|
}, $data.currentStep === 8 ? common_vendor.e({
|
|
|
- cs: $data.workList.length > 0
|
|
|
+ cx: $data.workList.length > 0
|
|
|
}, $data.workList.length > 0 ? {
|
|
|
- ct: common_vendor.f($data.workList, (work, index, i0) => {
|
|
|
+ cy: common_vendor.f($data.workList, (work, index, i0) => {
|
|
|
return common_vendor.e({
|
|
|
a: common_vendor.t(index + 1),
|
|
|
b: common_vendor.o(($event) => $options.editWork(index), index),
|
|
@@ -1808,106 +1915,108 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
m: index
|
|
|
});
|
|
|
}),
|
|
|
- cv: $options.showWorkTimeField,
|
|
|
- cw: $options.showWorkCompanyField,
|
|
|
- cx: $options.showWorkDepartmentField,
|
|
|
- cy: $options.showWorkEmployeeCountField,
|
|
|
- cz: $options.showWorkPositionField
|
|
|
+ cz: $options.showWorkTimeField,
|
|
|
+ cA: $options.showWorkCompanyField,
|
|
|
+ cB: $options.showWorkDepartmentField,
|
|
|
+ cC: $options.showWorkEmployeeCountField,
|
|
|
+ cD: $options.showWorkPositionField
|
|
|
} : {}, {
|
|
|
- cA: $data.workList.length < 2 || $data.isEditingWork
|
|
|
+ cE: $data.workList.length < 2 || $data.isEditingWork
|
|
|
}, $data.workList.length < 2 || $data.isEditingWork ? common_vendor.e({
|
|
|
- cB: common_vendor.t($data.isEditingWork ? "编辑工作经历" : "添加工作经历"),
|
|
|
- cC: $data.isEditingWork
|
|
|
+ cF: common_vendor.t($data.isEditingWork ? "编辑工作经历" : "添加工作经历"),
|
|
|
+ cG: $data.isEditingWork
|
|
|
}, $data.isEditingWork ? {
|
|
|
- cD: common_vendor.o((...args) => $options.cancelEditWork && $options.cancelEditWork(...args))
|
|
|
+ cH: common_vendor.o((...args) => $options.cancelEditWork && $options.cancelEditWork(...args))
|
|
|
} : {}, {
|
|
|
- cE: $options.showWorkTimeField
|
|
|
+ cI: $options.showWorkTimeField
|
|
|
}, $options.showWorkTimeField ? common_vendor.e({
|
|
|
- cF: common_vendor.t($data.workForm.startTime || "开始时间"),
|
|
|
- cG: $data.workForm.startTime,
|
|
|
- cH: common_vendor.o((...args) => $options.bindWorkStartTimeChange && $options.bindWorkStartTimeChange(...args)),
|
|
|
- cI: $data.workErrors.startTime ? 1 : "",
|
|
|
- cJ: common_vendor.t($data.workForm.endTime || "结束时间"),
|
|
|
- cK: $data.workForm.endTime,
|
|
|
- cL: common_vendor.o((...args) => $options.bindWorkEndTimeChange && $options.bindWorkEndTimeChange(...args)),
|
|
|
- cM: $data.workErrors.endTime ? 1 : "",
|
|
|
- cN: $data.workErrors.startTime
|
|
|
+ cJ: common_vendor.t($data.workForm.startTime || "开始时间"),
|
|
|
+ cK: $data.workForm.startTime,
|
|
|
+ cL: common_vendor.o((...args) => $options.bindWorkStartTimeChange && $options.bindWorkStartTimeChange(...args)),
|
|
|
+ cM: $data.workErrors.startTime ? 1 : "",
|
|
|
+ cN: common_vendor.t($data.workForm.endTime || "结束时间"),
|
|
|
+ cO: $data.workForm.endTime,
|
|
|
+ cP: common_vendor.o((...args) => $options.bindWorkEndTimeChange && $options.bindWorkEndTimeChange(...args)),
|
|
|
+ cQ: $data.workErrors.endTime ? 1 : "",
|
|
|
+ cR: $data.workErrors.startTime
|
|
|
}, $data.workErrors.startTime ? {
|
|
|
- cO: common_vendor.t($data.workErrors.startTime)
|
|
|
+ cS: common_vendor.t($data.workErrors.startTime)
|
|
|
} : {}, {
|
|
|
- cP: $data.workErrors.endTime
|
|
|
+ cT: $data.workErrors.endTime
|
|
|
}, $data.workErrors.endTime ? {
|
|
|
- cQ: common_vendor.t($data.workErrors.endTime)
|
|
|
+ cU: common_vendor.t($data.workErrors.endTime)
|
|
|
} : {}) : {}, {
|
|
|
- cR: $options.showWorkCompanyField
|
|
|
+ cV: $options.showWorkCompanyField
|
|
|
}, $options.showWorkCompanyField ? common_vendor.e({
|
|
|
- cS: $data.workErrors.companyName ? 1 : "",
|
|
|
- cT: $data.workForm.companyName,
|
|
|
- cU: common_vendor.o(($event) => $data.workForm.companyName = $event.detail.value),
|
|
|
- cV: $data.workErrors.companyName
|
|
|
+ cW: $data.workErrors.companyName ? 1 : "",
|
|
|
+ cX: $data.workForm.companyName,
|
|
|
+ cY: common_vendor.o(($event) => $data.workForm.companyName = $event.detail.value),
|
|
|
+ cZ: $data.workErrors.companyName
|
|
|
}, $data.workErrors.companyName ? {
|
|
|
- cW: common_vendor.t($data.workErrors.companyName)
|
|
|
+ da: common_vendor.t($data.workErrors.companyName)
|
|
|
} : {}) : {}, {
|
|
|
- cX: $options.showWorkEmployeeCountField
|
|
|
+ db: $options.showWorkEmployeeCountField
|
|
|
}, $options.showWorkEmployeeCountField ? common_vendor.e({
|
|
|
- cY: $data.workErrors.employeeCount ? 1 : "",
|
|
|
- cZ: $data.workForm.employeeCount,
|
|
|
- da: common_vendor.o(($event) => $data.workForm.employeeCount = $event.detail.value),
|
|
|
- db: $data.workErrors.employeeCount
|
|
|
+ dc: $data.workErrors.employeeCount ? 1 : "",
|
|
|
+ dd: common_vendor.o((...args) => $options.validateEmployeeCount && $options.validateEmployeeCount(...args)),
|
|
|
+ de: $data.workForm.employeeCount,
|
|
|
+ df: common_vendor.o(($event) => $data.workForm.employeeCount = $event.detail.value),
|
|
|
+ dg: $data.workErrors.employeeCount
|
|
|
}, $data.workErrors.employeeCount ? {
|
|
|
- dc: common_vendor.t($data.workErrors.employeeCount)
|
|
|
+ dh: common_vendor.t($data.workErrors.employeeCount)
|
|
|
} : {}) : {}, {
|
|
|
- dd: $options.showWorkDepartmentField
|
|
|
+ di: $options.showWorkDepartmentField
|
|
|
}, $options.showWorkDepartmentField ? common_vendor.e({
|
|
|
- de: $data.workErrors.department ? 1 : "",
|
|
|
- df: $data.workForm.department,
|
|
|
- dg: common_vendor.o(($event) => $data.workForm.department = $event.detail.value),
|
|
|
- dh: $data.workErrors.department
|
|
|
+ dj: $data.workErrors.department ? 1 : "",
|
|
|
+ dk: $data.workForm.department,
|
|
|
+ dl: common_vendor.o(($event) => $data.workForm.department = $event.detail.value),
|
|
|
+ dm: $data.workErrors.department
|
|
|
}, $data.workErrors.department ? {
|
|
|
- di: common_vendor.t($data.workErrors.department)
|
|
|
+ dn: common_vendor.t($data.workErrors.department)
|
|
|
} : {}) : {}, {
|
|
|
- dj: $options.showWorkPositionField
|
|
|
+ dp: $options.showWorkPositionField
|
|
|
}, $options.showWorkPositionField ? common_vendor.e({
|
|
|
- dk: $data.workErrors.position ? 1 : "",
|
|
|
- dl: $data.workForm.position,
|
|
|
- dm: common_vendor.o(($event) => $data.workForm.position = $event.detail.value),
|
|
|
- dn: $data.workErrors.position
|
|
|
+ dq: $data.workErrors.position ? 1 : "",
|
|
|
+ dr: $data.workForm.position,
|
|
|
+ ds: common_vendor.o(($event) => $data.workForm.position = $event.detail.value),
|
|
|
+ dt: $data.workErrors.position
|
|
|
}, $data.workErrors.position ? {
|
|
|
- dp: common_vendor.t($data.workErrors.position)
|
|
|
+ dv: common_vendor.t($data.workErrors.position)
|
|
|
} : {}) : {}, {
|
|
|
- dq: $data.workForm.monthlySalary,
|
|
|
- dr: common_vendor.o(($event) => $data.workForm.monthlySalary = $event.detail.value),
|
|
|
- ds: $data.workErrors.monthlySalary
|
|
|
+ dw: $data.workErrors.monthlySalary ? 1 : "",
|
|
|
+ dx: common_vendor.o([($event) => $data.workForm.monthlySalary = $event.detail.value, (...args) => $options.validateMonthlySalary && $options.validateMonthlySalary(...args)]),
|
|
|
+ dy: $data.workForm.monthlySalary,
|
|
|
+ dz: $data.workErrors.monthlySalary
|
|
|
}, $data.workErrors.monthlySalary ? {
|
|
|
- dt: common_vendor.t($data.workErrors.monthlySalary)
|
|
|
+ dA: common_vendor.t($data.workErrors.monthlySalary)
|
|
|
} : {}, {
|
|
|
- dv: $data.workForm.supervisor,
|
|
|
- dw: common_vendor.o(($event) => $data.workForm.supervisor = $event.detail.value),
|
|
|
- dx: $data.workErrors.supervisor
|
|
|
+ dB: $data.workForm.supervisor,
|
|
|
+ dC: common_vendor.o(($event) => $data.workForm.supervisor = $event.detail.value),
|
|
|
+ dD: $data.workErrors.supervisor
|
|
|
}, $data.workErrors.supervisor ? {
|
|
|
- dy: common_vendor.t($data.workErrors.supervisor)
|
|
|
+ dE: common_vendor.t($data.workErrors.supervisor)
|
|
|
} : {}, {
|
|
|
- dz: $data.workForm.supervisorPhone,
|
|
|
- dA: common_vendor.o(($event) => $data.workForm.supervisorPhone = $event.detail.value),
|
|
|
- dB: $data.workErrors.supervisorPhone
|
|
|
+ dF: $data.workForm.supervisorPhone,
|
|
|
+ dG: common_vendor.o(($event) => $data.workForm.supervisorPhone = $event.detail.value),
|
|
|
+ dH: $data.workErrors.supervisorPhone
|
|
|
}, $data.workErrors.supervisorPhone ? {
|
|
|
- dC: common_vendor.t($data.workErrors.supervisorPhone)
|
|
|
+ dI: common_vendor.t($data.workErrors.supervisorPhone)
|
|
|
} : {}, {
|
|
|
- dD: common_vendor.t($data.isEditingWork ? "✓" : "+"),
|
|
|
- dE: common_vendor.o((...args) => $options.saveWork && $options.saveWork(...args)),
|
|
|
- dF: common_vendor.t($data.isEditingWork ? "保存修改" : "添加工作经历")
|
|
|
+ dJ: common_vendor.t($data.isEditingWork ? "✓" : "+"),
|
|
|
+ dK: common_vendor.o((...args) => $options.saveWork && $options.saveWork(...args)),
|
|
|
+ dL: common_vendor.t($data.isEditingWork ? "保存修改" : "添加工作经历")
|
|
|
}) : {}) : {}, {
|
|
|
- dG: $options.showPrevButton
|
|
|
+ dM: $options.showPrevButton
|
|
|
}, $options.showPrevButton ? {
|
|
|
- dH: common_vendor.o((...args) => $options.prevStep && $options.prevStep(...args))
|
|
|
+ dN: common_vendor.o((...args) => $options.prevStep && $options.prevStep(...args))
|
|
|
} : {}, {
|
|
|
- dI: $options.showNextButton
|
|
|
+ dO: $options.showNextButton
|
|
|
}, $options.showNextButton ? {
|
|
|
- dJ: common_vendor.o((...args) => $options.nextStep && $options.nextStep(...args))
|
|
|
+ dP: common_vendor.o((...args) => $options.nextStep && $options.nextStep(...args))
|
|
|
} : {}, {
|
|
|
- dK: $options.showSubmitButton
|
|
|
+ dQ: $options.showSubmitButton
|
|
|
}, $options.showSubmitButton ? {
|
|
|
- dL: common_vendor.o((...args) => $options.submitForm && $options.submitForm(...args))
|
|
|
+ dR: common_vendor.o((...args) => $options.submitForm && $options.submitForm(...args))
|
|
|
} : {});
|
|
|
}
|
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|