From 63a8dbbe0d608bf28929e696369151df1a940ff7 Mon Sep 17 00:00:00 2001 From: binbin0314 Date: Mon, 18 Jan 2021 17:51:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E5=8D=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Introduce/Model.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/Introduce/Model.vue b/src/components/Introduce/Model.vue index e4be245..2db3769 100644 --- a/src/components/Introduce/Model.vue +++ b/src/components/Introduce/Model.vue @@ -19,11 +19,11 @@ - + - + @@ -197,6 +197,10 @@ export default { handleOk(type) { if (!this.recruit.name) { this.$message.error('姓名为必填项'); + } else if (!this.recruit.birthday) { + this.$message.error('出生年月必填项'); + } else if (!this.recruit.startJob) { + this.$message.error('参加工作时间必填项'); } else if (!this.recruit.tel) { this.$message.error('电话为必填项'); } else if (!this.recruit.jobWilling) { @@ -262,6 +266,7 @@ export default { files, // 附件Id }, }; + console.log(params.param.files); res = await joinUs(params); const { data, msg, code } = res.data; if (code === 200) { @@ -271,6 +276,7 @@ export default { for (let key in this.recruit) { this.recruit[key] = ''; } + this.recruit.files = []; } else { throw msg; this.confirmLoading = false;