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