|
|
@ -305,9 +305,9 @@ const formData = ref({ |
|
|
|
}) |
|
|
|
// 验证规则 |
|
|
|
const rules = ref({ |
|
|
|
strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' }], |
|
|
|
name: [{ required: true, message: '请输入名字', trigger: 'blur' }], |
|
|
|
description: [{ required: true, message: '请输入描述', trigger: 'blur' }], |
|
|
|
strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], |
|
|
|
name: [{ required: true, message: '请输入名字', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], |
|
|
|
description: [{ required: true, message: '请输入描述', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], |
|
|
|
priority: [{ required: true, message: '请输入优先级', trigger: 'blur' }], |
|
|
|
configurationRules: [{ required: true, message: '规则配置请填写完全', trigger: 'blur' }] |
|
|
|
}) |
|
|
|