mirror of
https://gitee.com/log4j/pig-ui.git
synced 2024-12-22 21:22:33 +08:00
fix(表单验证规则):添加避免输入超长验证规则
This commit is contained in:
parent
c83ef9f0cf
commit
7775e92e2a
@ -129,6 +129,7 @@ const dataRules = ref({
|
||||
],
|
||||
autoapprove: [{required: true, message: '自动放行不能为空', trigger: 'blur'}],
|
||||
webServerRedirectUri: [{validator: rule.overLength, trigger: 'blur'},{required: true, message: '回调地址不能为空', trigger: 'blur'}],
|
||||
authorities: [{validator: rule.overLength, trigger: 'blur'}],
|
||||
});
|
||||
|
||||
// 打开弹窗
|
||||
|
@ -111,6 +111,7 @@ const dataRules = reactive({
|
||||
icon: [{required: true, message: '图标不能为空', trigger: 'blur'}],
|
||||
permission: [{validator: rule.overLength, trigger: 'blur'},{required: true, message: '权限代码不能为空', trigger: 'blur'}],
|
||||
sortOrder: [{validator: rule.overLength, trigger: 'blur'},{required: true, message: '排序不能为空', trigger: 'blur'}],
|
||||
enName: [{validator: rule.overLength, trigger: 'blur'}],
|
||||
});
|
||||
|
||||
// 打开弹窗
|
||||
|
@ -105,6 +105,7 @@ const dataRules = reactive({
|
||||
status: [{required: true, message: '状态不能为空', trigger: 'blur'}],
|
||||
publicType: [{required: true, message: '类型不能为空', trigger: 'blur'}],
|
||||
systemFlag: [{required: true, message: '类型不能为空', trigger: 'blur'}],
|
||||
validateCode: [{validator: rule.overLength, trigger: 'blur'}],
|
||||
});
|
||||
|
||||
// 打开弹窗
|
||||
|
@ -171,6 +171,7 @@ const dataRules = ref({
|
||||
],
|
||||
email: [{validator: rule.overLength, trigger: 'blur'},{ type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }],
|
||||
lockFlag: [{ required: true, message: '状态不能为空', trigger: 'blur' }],
|
||||
nickname: [{validator: rule.overLength, trigger: 'blur'}],
|
||||
});
|
||||
|
||||
// 打开弹窗
|
||||
|
@ -125,11 +125,12 @@ const dataRules = reactive({
|
||||
jobName: [{validator: rule.overLength, trigger: 'blur'},{required: true, message: '任务名称不能为空', trigger: 'blur'}],
|
||||
jobGroup: [{validator: rule.overLength, trigger: 'blur'},{required: true, message: '任务组名不能为空', trigger: 'blur'}],
|
||||
jobType: [{required: true, message: '任务类型不能为空', trigger: 'blur'}],
|
||||
cronExpression: [{required: true, message: 'cron不能为空', trigger: 'blur'}],
|
||||
cronExpression: [{validator: rule.overLength, trigger: 'blur'},{required: true, message: 'cron不能为空', trigger: 'blur'}],
|
||||
misfirePolicy: [{required: true, message: '策略不能为空', trigger: 'blur'}],
|
||||
executePath: [{validator: rule.overLength, trigger: 'blur'},{required: true, message: '执行路径不能为空', trigger: 'blur'}],
|
||||
className: [{validator: rule.overLength, trigger: 'blur'},{required: true, message: '执行文件不能为空', trigger: 'blur'}],
|
||||
methodName: [{validator: rule.overLength, trigger: 'blur'},{required: true, message: '执行方法不能为空', trigger: 'blur'}],
|
||||
methodParamsValue: [{validator: rule.overLength, trigger: 'blur'}],
|
||||
});
|
||||
|
||||
// 打开弹窗
|
||||
|
@ -55,6 +55,7 @@ const dataRules = ref({
|
||||
},
|
||||
],
|
||||
attrType: [{validator: rule.overLength, trigger: 'blur'},{ required: true, message: '属性类型不能为空', trigger: 'blur' }],
|
||||
packageName: [{validator: rule.overLength, trigger: 'blur'}],
|
||||
});
|
||||
|
||||
// 打开弹窗
|
||||
|
Loading…
Reference in New Issue
Block a user