From 1f7ac041d3de18f8b3eb1fd16de634bda40d633c Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Tue, 19 Sep 2023 09:46:50 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BC=81=E6=A0=87=E5=BA=93=E6=94=B6?= =?UTF-8?q?=E8=97=8F=E5=AD=97=E6=AE=B5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/customField/AddForm.vue | 8 ++++++++ .../standard/EnterpriseStandardList.vue | 8 ++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/components/customField/AddForm.vue b/src/components/customField/AddForm.vue index bf86f415..4b25e66f 100644 --- a/src/components/customField/AddForm.vue +++ b/src/components/customField/AddForm.vue @@ -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 diff --git a/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue b/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue index 3fc3bd02..b368469d 100644 --- a/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue +++ b/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue @@ -112,7 +112,7 @@ -