From 69a8207689e221037d1d293d4890c55a5727ef7c Mon Sep 17 00:00:00 2001 From: A0010407 Date: Sat, 16 Sep 2023 14:26:49 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E9=87=8D=E7=BD=AE=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/technology/process/single.vue | 1 + src/views/technology/recipe/single.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/src/views/technology/process/single.vue b/src/views/technology/process/single.vue index 6e35845..7fe311a 100644 --- a/src/views/technology/process/single.vue +++ b/src/views/technology/process/single.vue @@ -202,6 +202,7 @@ export default { /** 重置按钮操作 */ resetQuery() { + this.queryParams.equipmentTypeCode = null; this.resetForm("queryForm"); this.handleQuery(); }, diff --git a/src/views/technology/recipe/single.vue b/src/views/technology/recipe/single.vue index 6e35845..7fe311a 100644 --- a/src/views/technology/recipe/single.vue +++ b/src/views/technology/recipe/single.vue @@ -202,6 +202,7 @@ export default { /** 重置按钮操作 */ resetQuery() { + this.queryParams.equipmentTypeCode = null; this.resetForm("queryForm"); this.handleQuery(); }, From b462f90930a370aff453c902e8cd62dec5b2eddf Mon Sep 17 00:00:00 2001 From: A0010407 Date: Sat, 16 Sep 2023 14:51:44 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=B7=A5=E8=89=BA=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E9=87=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/technology/process/single.vue | 24 +++++++++++++++++------- src/views/technology/recipe/single.vue | 24 +++++++++++++++++------- 2 files changed, 34 insertions(+), 14 deletions(-) diff --git a/src/views/technology/process/single.vue b/src/views/technology/process/single.vue index 7fe311a..d16f1bf 100644 --- a/src/views/technology/process/single.vue +++ b/src/views/technology/process/single.vue @@ -5,6 +5,7 @@ :modal= false width="1100px" center + :before-close="cancelEquipmentForm" > @@ -78,7 +79,7 @@ @@ -187,18 +188,18 @@ export default { // 节点单击事件 handleNodeClick(data) { - console.log('id',data.id); + console.log('id',data.id); this.queryParams.equipmentTypeCode = data.equipmentTypeCode; console.log(this.equipmentTypeCode); this.handleQuery(); this.queryParams.equipmentTypeCode = null; }, - /** 搜索按钮操作 */ - handleQuery() { - this.queryParams.pageNum = 1; - this.getList(); - }, + /** 搜索按钮操作 */ + handleQuery() { + this.queryParams.pageNum = 1; + this.getList(); + }, /** 重置按钮操作 */ resetQuery() { @@ -264,9 +265,18 @@ export default { } this.selectedRows = this.queryParams.itemCodeGet; this.$emit('onSelected', this.selectedRows); + this.queryParams.equipmentTypeCode = null; + this.getList(); + console.log('111111',this.queryParams.equipmentTypeCode); this.showFlag = false; this.queryParams.itemCodeGet = ""; }, + cancelEquipmentForm(){ + this.queryParams.equipmentTypeCode = null; + this.getList(); + console.log('111111',this.queryParams.equipmentTypeCode); + this.showFlag = false; + } } }; diff --git a/src/views/technology/recipe/single.vue b/src/views/technology/recipe/single.vue index 7fe311a..d16f1bf 100644 --- a/src/views/technology/recipe/single.vue +++ b/src/views/technology/recipe/single.vue @@ -5,6 +5,7 @@ :modal= false width="1100px" center + :before-close="cancelEquipmentForm" > @@ -78,7 +79,7 @@ @@ -187,18 +188,18 @@ export default { // 节点单击事件 handleNodeClick(data) { - console.log('id',data.id); + console.log('id',data.id); this.queryParams.equipmentTypeCode = data.equipmentTypeCode; console.log(this.equipmentTypeCode); this.handleQuery(); this.queryParams.equipmentTypeCode = null; }, - /** 搜索按钮操作 */ - handleQuery() { - this.queryParams.pageNum = 1; - this.getList(); - }, + /** 搜索按钮操作 */ + handleQuery() { + this.queryParams.pageNum = 1; + this.getList(); + }, /** 重置按钮操作 */ resetQuery() { @@ -264,9 +265,18 @@ export default { } this.selectedRows = this.queryParams.itemCodeGet; this.$emit('onSelected', this.selectedRows); + this.queryParams.equipmentTypeCode = null; + this.getList(); + console.log('111111',this.queryParams.equipmentTypeCode); this.showFlag = false; this.queryParams.itemCodeGet = ""; }, + cancelEquipmentForm(){ + this.queryParams.equipmentTypeCode = null; + this.getList(); + console.log('111111',this.queryParams.equipmentTypeCode); + this.showFlag = false; + } } };