[update] 企标库收藏字段修改

This commit is contained in:
lideqin
2023-09-19 09:46:50 +08:00
parent bc95bd338b
commit 1f7ac041d3
2 changed files with 12 additions and 4 deletions
+8
View File
@@ -438,6 +438,13 @@ export default {
message: res.dbFieldTxt + this.$t('cannotEmpty'),
trigger: 'blur'
})
} else if (res.fieldShowType === FieldType.DATE_SINGLE.value) {
// 解决第一次校验不消失的问题
rule.push({
required: true,
message: res.dbFieldTxt + this.$t('cannotEmpty'),
trigger: ['change', 'blur']
})
} else {
rule.push({
required: true,
@@ -450,6 +457,7 @@ export default {
rules[res.dbFieldName] = rule
}
})
console.log(rules)
this.rules = rules
this.isFormInline = true
this.confirmLoading = false