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