吕天方 1 month ago
commit a22c1fc983

@ -380,10 +380,13 @@ export default {
return "-" return "-"
} }
}, },
//
titleInfoObjtype(type = "0,1") { titleInfoObjtype(type = "0,1") {
console.log(type); console.log(type);
let list = type.split(",") let list = type.split(",")
//
this.listTow = [] this.listTow = []
//tab
this.chanckListTow = [] this.chanckListTow = []
this.chanckList.forEach(res => { this.chanckList.forEach(res => {
list.forEach(element => { list.forEach(element => {
@ -393,11 +396,13 @@ export default {
} }
}); });
}) })
//tab
this.activeName = this.chanckListTow[0].lable this.activeName = this.chanckListTow[0].lable
if(localStorage.getItem("activeName")){ if(localStorage.getItem("activeName")){
this.activeName = localStorage.getItem("activeName") this.activeName = localStorage.getItem("activeName")
localStorage.setItem("activeName",this.activeName) localStorage.setItem("activeName",this.activeName)
} }
//
let listname = this.chanckListTow.filter(item=> item.lable == this.activeName) let listname = this.chanckListTow.filter(item=> item.lable == this.activeName)
if(listname){ if(listname){
this.xtmcName = listname[0].xtmcName this.xtmcName = listname[0].xtmcName

Loading…
Cancel
Save