企业管理 - 行业资质去掉图片不能为空限制

liujun-07-22-风向模块迁移
water_xu 2024-07-17 19:32:07 +08:00
parent 07e9c52500
commit 06a2348319
1 changed files with 1 additions and 10 deletions

View File

@ -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' }]
}
}
},