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