From fc0272dca0f2e3255b66e72531f5541e6aa33e4d Mon Sep 17 00:00:00 2001 From: hhl123456789 <3118891075@qq.com> Date: Tue, 5 Mar 2024 16:29:54 +0800 Subject: [PATCH] =?UTF-8?q?'3.5=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/caseManagement/components/selectMediator.vue | 10 ++++++++-- src/views/index.vue | 7 +++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/views/caseManagement/components/selectMediator.vue b/src/views/caseManagement/components/selectMediator.vue index 438746f..e7b9336 100644 --- a/src/views/caseManagement/components/selectMediator.vue +++ b/src/views/caseManagement/components/selectMediator.vue @@ -47,8 +47,15 @@ export default { watch: { mediatorVisable(val) { if (val) { - listMediator().then(res=>{ + listMediator({caseAppliId: this.mediatorData.id}).then(res=>{ this.tableData = res.data; + this.tableData.forEach((item)=> { + if (item.echoFlag) { + this.$nextTick(()=>{ + this.$refs.multipleTable.toggleRowSelection(item, true); + }) + } + }) }) } } @@ -88,7 +95,6 @@ export default { }, handleSelectionChange(val) { this.multipleSelection = val; - // console.log(this.multipleSelection,"LLLLLLLLLLLLLLLLL"); } }, }; diff --git a/src/views/index.vue b/src/views/index.vue index ab18aba..6f671ce 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -35,6 +35,13 @@ export default { iconHead: process.env.VUE_APP_BASE_API }; }, + watch: { + $route(val) { + if (val) { + this.gettodoCount(); + } + } + }, created() { this.gettodoCount(); },