Commit 1e13a56d by wangzhihui

修改校验文案

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