From d5a9b54d7238cdb40c278552a8b2fe52e36f3ebf Mon Sep 17 00:00:00 2001 From: "382696293@qq.com" <382696293@qq.com> Date: Fri, 23 Feb 2024 13:46:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E7=AE=A1=EF=BC=9A=E3=80=90ID1000463?= =?UTF-8?q?=E3=80=91=E4=BB=AA=E5=99=A8=E7=AE=A1=E7=90=86-=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=BB=AA=E5=99=A8=E7=AE=A1=E7=90=86-=E6=8D=A2?= =?UTF-8?q?=E7=BB=91=E5=BA=8F=E5=88=97=E5=8F=B7=E8=BE=93=E5=85=A5=E4=B8=AD?= =?UTF-8?q?=E6=96=87=EF=BC=8C=E6=8F=90=E7=A4=BA=E6=9C=89=E8=AF=AF=EF=BC=8C?= =?UTF-8?q?=E5=BA=94=E8=AF=A5=E6=8F=90=E7=A4=BA=EF=BC=9A=E5=BA=8F=E5=88=97?= =?UTF-8?q?=E5=8F=B7=E4=BB=85=E6=94=AF=E6=8C=81=E8=BE=93=E5=85=A5=E8=8B=B1?= =?UTF-8?q?=E6=96=87=E3=80=81=E6=95=B0=E5=AD=97=E5=92=8C=E5=AD=97=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flossom-ui/src/views/system/userInstrument/index.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/flossom-ui/src/views/system/userInstrument/index.vue b/flossom-ui/src/views/system/userInstrument/index.vue index 030476b..0247f54 100644 --- a/flossom-ui/src/views/system/userInstrument/index.vue +++ b/flossom-ui/src/views/system/userInstrument/index.vue @@ -665,6 +665,11 @@ export default { this.$modal.msgError("序列号不能为空"); return; } + var pattern = /^[a-zA-Z0-9\s]+$/; + if (!pattern.test(this.serialForm.serial)) { + this.$modal.msgError("请输入正确的序列号"); + return; + } changeSerial(this.serialForm).then(response => { if (response.data.code != 200) { this.$modal.msgError(response.data.message);