From aa5df6596175a1750a00b37dacd585374a01eb5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=8A=B2=E9=BE=99?= <2860996570@qq.com> Date: Mon, 9 Dec 2024 09:09:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/unitPages/myTask/info.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/views/unitPages/myTask/info.vue b/src/views/unitPages/myTask/info.vue index c59cae1..972106c 100644 --- a/src/views/unitPages/myTask/info.vue +++ b/src/views/unitPages/myTask/info.vue @@ -380,10 +380,13 @@ export default { return "-" } }, + //根据传入的类型,去分发状态 titleInfoObjtype(type = "0,1") { console.log(type); let list = type.split(",") + //顶部展示 this.listTow = [] + //tab的分页状态 this.chanckListTow = [] this.chanckList.forEach(res => { list.forEach(element => { @@ -393,11 +396,13 @@ export default { } }); }) + //tab的下标 this.activeName = this.chanckListTow[0].lable 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