|
@ -438,14 +438,6 @@ export const rules = reactive({ |
|
|
{ required: true, message: '请输入名称', trigger: 'blur' }, |
|
|
{ required: true, message: '请输入名称', trigger: 'blur' }, |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, |
|
|
], |
|
|
], |
|
|
desc1: [ |
|
|
|
|
|
{ required: true, message: '请输入描述1', trigger: 'blur' }, |
|
|
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, |
|
|
|
|
|
], |
|
|
|
|
|
desc2: [ |
|
|
|
|
|
{ required: true, message: '请输入描述2', trigger: 'blur' }, |
|
|
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, |
|
|
|
|
|
], |
|
|
|
|
|
status: [ |
|
|
status: [ |
|
|
{ required: true, message: '请选择状态', trigger: 'change' }, |
|
|
{ required: true, message: '请选择状态', trigger: 'change' }, |
|
|
], |
|
|
], |
|
@ -479,36 +471,11 @@ export const rules = reactive({ |
|
|
type: [ |
|
|
type: [ |
|
|
{ required: true, message: '请选择类型', trigger: 'change' }, |
|
|
{ required: true, message: '请选择类型', trigger: 'change' }, |
|
|
], |
|
|
], |
|
|
category: [ |
|
|
|
|
|
{ required: true, message: '请选择种类', trigger: 'change' }, |
|
|
|
|
|
], |
|
|
|
|
|
itemGroup: [ |
|
|
|
|
|
{ required: true, message: '请选择分组', trigger: 'change' }, |
|
|
|
|
|
], |
|
|
|
|
|
color: [ |
|
|
|
|
|
{ required: true, message: '请选择颜色', trigger: 'change' }, |
|
|
|
|
|
], |
|
|
|
|
|
configuration: [ |
|
|
|
|
|
{ required: true, message: '请选择配置', trigger: 'change' }, |
|
|
|
|
|
], |
|
|
|
|
|
project: [ |
|
|
|
|
|
{ required: true, message: '请输入项目', trigger: 'blur' }, |
|
|
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, |
|
|
|
|
|
], |
|
|
|
|
|
eqLevel: [ |
|
|
|
|
|
{ required: true, message: '请选择质量等级', trigger: 'change' }, |
|
|
|
|
|
], |
|
|
|
|
|
validityDays: [ |
|
|
validityDays: [ |
|
|
{ required: true, message: '请输入有效天数', trigger: 'change' }, |
|
|
{ required: true, message: '请输入有效天数', trigger: 'change' }, |
|
|
], |
|
|
], |
|
|
available: [ |
|
|
available: [ |
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }, |
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }, |
|
|
], |
|
|
], |
|
|
activeTime: [ |
|
|
|
|
|
{ required: true, message: '请输入生效时间', trigger: 'change' }, |
|
|
|
|
|
], |
|
|
|
|
|
expireTime: [ |
|
|
|
|
|
{ required: true, message: '请输入失效时间', trigger: 'change' }, |
|
|
|
|
|
], |
|
|
|
|
|
}) |
|
|
}) |
|
|
console.log(Itembasic) |
|
|
console.log(Itembasic) |