From 8223c1f44efd5b8756da9328e75e74fa4a850e8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=8A=B2=E9=BE=99?= <2860996570@qq.com> Date: Wed, 4 Dec 2024 20:32:01 +0800 Subject: [PATCH] =?UTF-8?q?genggai=E7=B3=BB=E7=BB=9F=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/auditPages/taskManagement/info.vue | 8 +++++++- src/views/unitPages/myTask/info.vue | 10 +++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/views/auditPages/taskManagement/info.vue b/src/views/auditPages/taskManagement/info.vue index 16ce249..73af3b2 100644 --- a/src/views/auditPages/taskManagement/info.vue +++ b/src/views/auditPages/taskManagement/info.vue @@ -298,7 +298,6 @@ export default { this.formInline = { xtlx: "", } - console.log(tab); this.activeName = tab.name this.xtmcName = tab.$attrs.xtmcName, localStorage.setItem("activeName",this.activeName) @@ -410,9 +409,16 @@ export default { }); }) this.activeName = this.chanckListTow[0].lable + // this.xtmcName = tab.$attrs.xtmcName + if(localStorage.getItem("activeName")){ this.activeName = localStorage.getItem("activeName") localStorage.setItem("activeName",this.activeName) + } + let listname = this.chanckListTow.filter(item=> item.lable == this.activeName) + if(listname){ + this.xtmcName = listname[0].xtmcName + } this.handleQuery(); diff --git a/src/views/unitPages/myTask/info.vue b/src/views/unitPages/myTask/info.vue index 55b76e7..c59cae1 100644 --- a/src/views/unitPages/myTask/info.vue +++ b/src/views/unitPages/myTask/info.vue @@ -280,8 +280,11 @@ export default { this.formInline = { xtlx: "", } + this.activeName = tab.name - this.xtmcName = tab.$attrs.xtmcName, + + this.xtmcName = tab.$attrs.xtmcName + localStorage.setItem("activeName",this.activeName) this.handleQuery() @@ -394,6 +397,11 @@ export default { if(localStorage.getItem("activeName")){ this.activeName = localStorage.getItem("activeName") localStorage.setItem("activeName",this.activeName) + } + let listname = this.chanckListTow.filter(item=> item.lable == this.activeName) + if(listname){ + this.xtmcName = listname[0].xtmcName + } this.handleQuery(); },