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);