diff --git a/src/pages/exchangecode/exchangecodeAdd/utils.js b/src/pages/exchangecode/exchangecodeAdd/utils.js index 2a74bbc5..7c1be7f5 100644 --- a/src/pages/exchangecode/exchangecodeAdd/utils.js +++ b/src/pages/exchangecode/exchangecodeAdd/utils.js @@ -4,7 +4,14 @@ export const codeInfo = { planSelect: [{ type: "required", message: "请选择归属计划" }], keyBatchSelect: [{ type: "required", message: "请选择归属Key" }], issued: [{ type: "required", message: "请输入发放总量" }], - restrict: [{ type: "required", message: "请输入绑定数量" }] + restrict: [ + { type: "required", message: "请输入绑定数量" }, + { + type: "regExp", + message: "请输入大于0的正整数", + reg: "^[0-9]*[1-9][0-9]*$" + } + ] } //基本规则