|
@ -19,11 +19,11 @@ |
|
|
<a-radio :value="1">女</a-radio> |
|
|
<a-radio :value="1">女</a-radio> |
|
|
</a-radio-group> |
|
|
</a-radio-group> |
|
|
</a-form-item> |
|
|
</a-form-item> |
|
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="出生年月"> |
|
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="出生年月" required> |
|
|
<!-- 时间选择器(时间点) --> |
|
|
<!-- 时间选择器(时间点) --> |
|
|
<a-date-picker @change="changeBirthday" class="fill-width" /> |
|
|
<a-date-picker @change="changeBirthday" class="fill-width" /> |
|
|
</a-form-item> |
|
|
</a-form-item> |
|
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="参加工作时间"> |
|
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="参加工作时间" required> |
|
|
<!-- 时间选择器(时间点) --> |
|
|
<!-- 时间选择器(时间点) --> |
|
|
<a-date-picker @change="changeStartJob" class="fill-width" /> |
|
|
<a-date-picker @change="changeStartJob" class="fill-width" /> |
|
|
</a-form-item> |
|
|
</a-form-item> |
|
@ -197,6 +197,10 @@ export default { |
|
|
handleOk(type) { |
|
|
handleOk(type) { |
|
|
if (!this.recruit.name) { |
|
|
if (!this.recruit.name) { |
|
|
this.$message.error('姓名为必填项'); |
|
|
this.$message.error('姓名为必填项'); |
|
|
|
|
|
} else if (!this.recruit.birthday) { |
|
|
|
|
|
this.$message.error('出生年月必填项'); |
|
|
|
|
|
} else if (!this.recruit.startJob) { |
|
|
|
|
|
this.$message.error('参加工作时间必填项'); |
|
|
} else if (!this.recruit.tel) { |
|
|
} else if (!this.recruit.tel) { |
|
|
this.$message.error('电话为必填项'); |
|
|
this.$message.error('电话为必填项'); |
|
|
} else if (!this.recruit.jobWilling) { |
|
|
} else if (!this.recruit.jobWilling) { |
|
@ -262,6 +266,7 @@ export default { |
|
|
files, // 附件Id |
|
|
files, // 附件Id |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
|
|
|
console.log(params.param.files); |
|
|
res = await joinUs(params); |
|
|
res = await joinUs(params); |
|
|
const { data, msg, code } = res.data; |
|
|
const { data, msg, code } = res.data; |
|
|
if (code === 200) { |
|
|
if (code === 200) { |
|
@ -271,6 +276,7 @@ export default { |
|
|
for (let key in this.recruit) { |
|
|
for (let key in this.recruit) { |
|
|
this.recruit[key] = ''; |
|
|
this.recruit[key] = ''; |
|
|
} |
|
|
} |
|
|
|
|
|
this.recruit.files = []; |
|
|
} else { |
|
|
} else { |
|
|
throw msg; |
|
|
throw msg; |
|
|
this.confirmLoading = false; |
|
|
this.confirmLoading = false; |
|
|