From b726af2e5dcd9d3d2401762d78ce2f227846df51 Mon Sep 17 00:00:00 2001 From: zhangxuanming <2260476558@qq.com> Date: Fri, 20 Dec 2024 16:54:09 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=B7=A5=E8=A3=85=E7=B1=BB?= =?UTF-8?q?=E5=85=B7=E7=B1=BB=E5=9E=8B=E6=96=B0=E5=A2=9E=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E4=BF=9D=E5=85=BB=E5=91=A8=E6=9C=9F=E5=A2=9E=E5=8A=A0=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C-=E5=BF=85=E9=A1=BB=E4=B8=BA=E6=95=B0=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mes/tm/tooltype/index.vue | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/src/views/mes/tm/tooltype/index.vue b/src/views/mes/tm/tooltype/index.vue index 8ae2938..869055d 100644 --- a/src/views/mes/tm/tooltype/index.vue +++ b/src/views/mes/tm/tooltype/index.vue @@ -268,6 +268,9 @@ export default { ], remark: [ { max: 250, message: '长度必须小于250个字符', trigger: 'blur' } + ], + maintenPeriod: [ + { pattern: /^-?\d+(\.\d+)?$/, message: '输入必须为数字类型', trigger: 'blur' } ] } }; @@ -357,19 +360,19 @@ export default { submitForm() { this.$refs["form"].validate(valid => { if (valid) { - if (this.form.toolTypeId != null) { - updateTooltype(this.form).then(response => { - this.$modal.msgSuccess("修改成功"); - this.open = false; - this.getList(); - }); - } else { - addTooltype(this.form).then(response => { - this.$modal.msgSuccess("新增成功"); - this.open = false; - this.getList(); - }); - } + // if (this.form.toolTypeId != null) { + // updateTooltype(this.form).then(response => { + // this.$modal.msgSuccess("修改成功"); + // this.open = false; + // this.getList(); + // }); + // } else { + // addTooltype(this.form).then(response => { + // this.$modal.msgSuccess("新增成功"); + // this.open = false; + // this.getList(); + // }); + // } } }); },