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