From cd2dd194781e316a4e4014ad28b127ef04036261 Mon Sep 17 00:00:00 2001 From: yangzhicheng Date: Thu, 18 Jul 2024 17:17:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=B9=E7=AA=97=E5=86=85=E5=AE=B9=E6=B8=85?= =?UTF-8?q?=E7=A9=BA=E5=A4=84=E7=90=86=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inspection/inspectionplan.vue | 4 ++-- src/views/inspection/inspectionroute.vue | 4 ++-- src/views/spares/materialDetail.vue | 6 ++---- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/views/inspection/inspectionplan.vue b/src/views/inspection/inspectionplan.vue index 129e7df..96d4a7b 100644 --- a/src/views/inspection/inspectionplan.vue +++ b/src/views/inspection/inspectionplan.vue @@ -320,7 +320,7 @@ return; } this.cancelBox = true; - this.cancelForm.cancelReason = ''; + this.$refs.cancelForm.resetForm(); }, handleDetailCancel() { this.$confirm("是否将选择数据改为失效状态?", { @@ -332,7 +332,7 @@ return lapse(this.ids, this.cancelForm.cancelReason); }) .then(() => { - this.cancelForm.cancelReason = ''; + this.$refs.cancelForm.resetForm(); this.cancelBox = false; this.onLoad(this.page); this.$message({ diff --git a/src/views/inspection/inspectionroute.vue b/src/views/inspection/inspectionroute.vue index 17801cf..89654af 100644 --- a/src/views/inspection/inspectionroute.vue +++ b/src/views/inspection/inspectionroute.vue @@ -302,7 +302,7 @@ return; } this.cancelBox = true; - this.cancelForm.cancelReason = ''; + this.$refs.cancelForm.resetForm(); }, handleDetailCancel() { this.$confirm("是否将选择数据改为失效状态?", { @@ -314,7 +314,7 @@ return lapse(this.ids, this.cancelForm.cancelReason); }) .then(() => { - this.cancelForm.cancelReason = ''; + this.$refs.cancelForm.resetForm(); this.cancelBox = false; this.onLoad(this.page); this.$message({ diff --git a/src/views/spares/materialDetail.vue b/src/views/spares/materialDetail.vue index be4f991..78e8882 100644 --- a/src/views/spares/materialDetail.vue +++ b/src/views/spares/materialDetail.vue @@ -442,8 +442,7 @@ }, methods: { test(val) { - this.diaForm.code = ''; - this.diaForm.type = ''; + this.$refs.diaForm.resetForm(); this.dialogVisible = true; }, handleFormSubmit() { @@ -632,8 +631,7 @@ if (valid) { done() codeAdd(this.diaForm).then(() => { - this.diaForm.code = ''; - this.diaForm.type = ''; + this.$refs.diaForm.resetForm(); this.dialogVisible = false; this.SearchClassCode(); this.$message({