Commit 1e13a56d by wangzhihui

修改校验文案

1 parent 58c02dc1
......@@ -120,7 +120,8 @@ export default {
label: "招聘数量",
name: "recruitmentQuantity",
type: "input",
isClear: true
isClear: true,
maxlength: 3
},
{
label: "招聘类型",
......@@ -172,7 +173,7 @@ export default {
console.log(value)
// 校验是否为整数
if (!/^\d+$/.test(value)) {
callback(new Error("招聘数量必须为正整数"))
callback(new Error("招聘数量必须为整数"))
} else if (value <= 0 || value > 100) {
callback(new Error("招聘数量必须为1-100之间的整数"))
} else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!