|
@ -419,7 +419,8 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
// 表单校验
|
|
|
// 表单校验
|
|
|
export const rules = reactive({ |
|
|
export const rules = reactive({ |
|
|
code: [ |
|
|
code: [ |
|
|
{ required: true, message: '请输入代码', trigger: 'blur' } |
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }, |
|
|
|
|
|
{ max: 30, message: '不得超过30个字符', trigger: 'blur' }, |
|
|
], |
|
|
], |
|
|
name: [ |
|
|
name: [ |
|
|
{ required: true, message: '请输入名称', trigger: 'blur' } |
|
|
{ required: true, message: '请输入名称', trigger: 'blur' } |
|
@ -487,4 +488,5 @@ export const rules = reactive({ |
|
|
expireTime: [ |
|
|
expireTime: [ |
|
|
{ required: true, message: '请输入失效时间', trigger: 'change' } |
|
|
{ required: true, message: '请输入失效时间', trigger: 'change' } |
|
|
], |
|
|
], |
|
|
}) |
|
|
}) |
|
|
|
|
|
console.log(Itembasic) |