From fb58e6f1a1c3c106ab4ee20364f34ae3da1f12c3 Mon Sep 17 00:00:00 2001 From: Wind-58 Date: Wed, 7 Sep 2022 10:38:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=91=E6=8D=A2=E7=A0=81=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=E6=95=B0=E6=AD=A3=E5=88=99=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangecode/exchangecodeAdd/utils.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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]*$" + } + ] } //基本规则