[FIX] 修改工作单位为非必填

This commit is contained in:
li.kai
2020-07-02 18:09:37 +08:00
parent 63451f9f28
commit c06eb4bdfe

View File

@@ -252,11 +252,9 @@
<van-field <van-field
v-if="specilFlag != '1'" v-if="specilFlag != '1'"
v-model="userInfo.workcompany" v-model="userInfo.workcompany"
required
label="工作单位" label="工作单位"
name="工作单位" name="工作单位"
placeholder="无工作单位,请输入无" placeholder="无工作单位,请输入无"
v-validate="'required'"
maxlength="50" maxlength="50"
clearable clearable
/> />
@@ -1076,12 +1074,13 @@ export default {
) { ) {
} else if (this.userInfo.workcompany.length < 6 && this.userInfo.workcompany.trim() != '无') { } else if (this.userInfo.workcompany.length < 6 && this.userInfo.workcompany.trim() != '无') {
// await this.asyncToast('亲,您填写的工作单位过于简短哦~') // await this.asyncToast('亲,您填写的工作单位过于简短哦~')
await this.$dialog.confirm({ this.userInfo.workcompany = '无'
title: '提示', // await this.$dialog.confirm({
message: '亲,您填写的工作单位过于简短哦~', // title: '提示',
confirmButtonText: '继续填写', // message: '亲,您填写的工作单位过于简短哦~',
cancelButtonText: '返回修改' // confirmButtonText: '继续填写',
}) // cancelButtonText: '返回修改'
// })
} }
if (this.userInfo.salarySource == '4') { if (this.userInfo.salarySource == '4') {