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(); },