From fbf9002ca668a9d51743631a6d504f2996c33ce5 Mon Sep 17 00:00:00 2001 From: hongchao <3228015117@qq.com> Date: Sat, 1 Nov 2025 13:15:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=93=E5=AD=98=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/business/leasePublish/index.vue | 6 ++++++ src/views/material/back/component/addReturn.vue | 4 ++-- src/views/material/back/index.vue | 10 ++++++++++ src/views/material/lease/apply/index.vue | 6 ++++++ src/views/material/repair/repairManage/index.vue | 3 +++ src/views/material/repair/testExamine/index.vue | 3 +++ .../material/repair/testedInBound/component/home.vue | 2 +- src/views/material/repair/testedInBound/index.vue | 3 +++ 8 files changed, 34 insertions(+), 3 deletions(-) diff --git a/src/views/business/leasePublish/index.vue b/src/views/business/leasePublish/index.vue index fea6ab84..6c904c9c 100644 --- a/src/views/business/leasePublish/index.vue +++ b/src/views/business/leasePublish/index.vue @@ -6,7 +6,9 @@ :pageContent="pageContent" @goBack="goBack" /> + + @@ -62,6 +65,9 @@ export default { /* 新增成功 */ addToolsSuccess() { this.isShowComponent = "Home"; + this.$nextTick(() => { + this.$refs.componentRef.resetQuery() + }) }, /* 编辑工机具 */ editTools(taskId, id) { diff --git a/src/views/material/back/component/addReturn.vue b/src/views/material/back/component/addReturn.vue index 572ea561..ee16cbd1 100644 --- a/src/views/material/back/component/addReturn.vue +++ b/src/views/material/back/component/addReturn.vue @@ -886,7 +886,7 @@ export default { const data = res.data this.queryParams.unitId = data.backApplyInfo.unitId // this.unitId = this.treeParentsById(this.unitList, this.queryParams.unitId) - this.GetProData() + await this.GetProData() setTimeout(() => { this.queryParams.proId = data.backApplyInfo.proId }, 500) @@ -996,7 +996,7 @@ export default { if (res.code == 200) { this.$message({ type: 'success', message: res.msg }) setTimeout(() => { - this.$emit('goBackPage') + this.$emit('addToolsSuccess') }, 1000) } } diff --git a/src/views/material/back/index.vue b/src/views/material/back/index.vue index e591646d..11e6789a 100644 --- a/src/views/material/back/index.vue +++ b/src/views/material/back/index.vue @@ -6,7 +6,9 @@ :pageContent="pageContent" @goBack="goBack" /> + + @@ -65,6 +69,12 @@ export default { goBack() { this.isShowComponent = 'Home' }, + addToolsSuccess() { + this.isShowComponent = "Home"; + this.$nextTick(() => { + this.$refs.componentRef.resetQuery() + }) + }, }, } diff --git a/src/views/material/lease/apply/index.vue b/src/views/material/lease/apply/index.vue index 7c889cdb..79c10848 100644 --- a/src/views/material/lease/apply/index.vue +++ b/src/views/material/lease/apply/index.vue @@ -6,7 +6,9 @@ :pageContent="pageContent" @goBack="goBack" /> + + @@ -62,6 +65,9 @@ export default { /* 新增成功 */ addToolsSuccess() { this.isShowComponent = "Home"; + this.$nextTick(() => { + this.$refs.componentRef.resetQuery() + }) }, /* 编辑工机具 */ editTools(taskId, id) { diff --git a/src/views/material/repair/repairManage/index.vue b/src/views/material/repair/repairManage/index.vue index 8e5f4765..c84cb278 100644 --- a/src/views/material/repair/repairManage/index.vue +++ b/src/views/material/repair/repairManage/index.vue @@ -6,7 +6,9 @@ :pageContent="pageContent" @goBack="goBack" /> + + diff --git a/src/views/material/repair/testExamine/index.vue b/src/views/material/repair/testExamine/index.vue index 08c8605d..7d2f1fce 100644 --- a/src/views/material/repair/testExamine/index.vue +++ b/src/views/material/repair/testExamine/index.vue @@ -6,7 +6,9 @@ :pageContent="pageContent" @goBack="goBack" /> + + diff --git a/src/views/material/repair/testedInBound/component/home.vue b/src/views/material/repair/testedInBound/component/home.vue index 5b6b51b6..eaf34c8e 100644 --- a/src/views/material/repair/testedInBound/component/home.vue +++ b/src/views/material/repair/testedInBound/component/home.vue @@ -164,7 +164,7 @@ import { import { formatTime } from '@/utils/bonus' export default { - name: "testedInBound", + name: "Home", dicts: ["repair_end_task_status"], data() { return { diff --git a/src/views/material/repair/testedInBound/index.vue b/src/views/material/repair/testedInBound/index.vue index 18d20a41..b488eefd 100644 --- a/src/views/material/repair/testedInBound/index.vue +++ b/src/views/material/repair/testedInBound/index.vue @@ -6,7 +6,9 @@ :pageContent="pageContent" @goBack="goBack" /> + +