修复字典数据和类型的 status 未校验的问题
This commit is contained in:
parent
168f751a24
commit
de5b1216cd
@ -58,7 +58,8 @@ const formData = ref({
|
|||||||
})
|
})
|
||||||
const formRules = reactive({
|
const formRules = reactive({
|
||||||
name: [{ required: true, message: '字典名称不能为空', trigger: 'blur' }],
|
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
|
const formRef = ref() // 表单 Ref
|
||||||
|
|
||||||
|
@ -82,7 +82,8 @@ const formData = ref({
|
|||||||
const formRules = reactive({
|
const formRules = reactive({
|
||||||
label: [{ required: true, message: '数据标签不能为空', trigger: 'blur' }],
|
label: [{ required: true, message: '数据标签不能为空', trigger: 'blur' }],
|
||||||
value: [{ 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
|
const formRef = ref() // 表单 Ref
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user