兑换码新增绑定数正则验证

This commit is contained in:
Wind-58 2022-09-07 10:38:17 +08:00
parent 99e99df028
commit fb58e6f1a1
1 changed files with 8 additions and 1 deletions

View File

@ -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]*$"
}
]
}
//基本规则