企业管理 - 行业资质去掉图片不能为空限制
parent
07e9c52500
commit
06a2348319
|
@ -85,16 +85,7 @@ export default {
|
|||
rules: {
|
||||
NAME: [{ required: true, message: '名称不能为空', trigger: 'blur' }],
|
||||
VALIDITYTIME: [{ required: true, message: '证书有效期不能为空', trigger: 'blur' }],
|
||||
NUMBER: [{ required: true, message: '证书编号不能为空', trigger: 'blur' }],
|
||||
FILE: [
|
||||
{ validator: (rule, value, callback) => {
|
||||
if (this.certificate_files.length > 0) {
|
||||
callback()
|
||||
} else {
|
||||
callback(new Error('图片不能为空'))
|
||||
}
|
||||
}, trigger: 'blur' }
|
||||
]
|
||||
NUMBER: [{ required: true, message: '证书编号不能为空', trigger: 'blur' }]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue