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(); + // }); + // } } }); },