From de5b1216cd147efcaf7e310eca2fb06053592af8 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 15 Apr 2023 10:28:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AD=97=E5=85=B8=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=92=8C=E7=B1=BB=E5=9E=8B=E7=9A=84=20status=20?= =?UTF-8?q?=E6=9C=AA=E6=A0=A1=E9=AA=8C=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/dict/DictTypeForm.vue | 3 ++- src/views/system/dict/data/DictDataForm.vue | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/system/dict/DictTypeForm.vue b/src/views/system/dict/DictTypeForm.vue index bb0deb17..8cfc1b57 100644 --- a/src/views/system/dict/DictTypeForm.vue +++ b/src/views/system/dict/DictTypeForm.vue @@ -58,7 +58,8 @@ const formData = ref({ }) const formRules = reactive({ name: [{ required: true, message: '字典名称不能为空', trigger: 'blur' }], - type: [{ required: true, message: '字典类型不能为空', trigger: 'blur' }] + type: [{ required: true, message: '字典类型不能为空', trigger: 'blur' }], + status: [{ required: true, message: '状态不能为空', trigger: 'change' }] }) const formRef = ref() // 表单 Ref diff --git a/src/views/system/dict/data/DictDataForm.vue b/src/views/system/dict/data/DictDataForm.vue index dc2f6057..337ee348 100644 --- a/src/views/system/dict/data/DictDataForm.vue +++ b/src/views/system/dict/data/DictDataForm.vue @@ -82,7 +82,8 @@ const formData = ref({ const formRules = reactive({ label: [{ required: true, message: '数据标签不能为空', trigger: 'blur' }], value: [{ required: true, message: '数据键值不能为空', trigger: 'blur' }], - sort: [{ required: true, message: '数据顺序不能为空', trigger: 'blur' }] + sort: [{ required: true, message: '数据顺序不能为空', trigger: 'blur' }], + status: [{ required: true, message: '状态不能为空', trigger: 'change' }] }) const formRef = ref() // 表单 Ref