|
|
@ -192,31 +192,10 @@ export default { |
|
|
|
const total = this.ver2types[this.activeVerid] || []; |
|
|
|
this.$set(this.addlist, this.activeVerid, [...total]); |
|
|
|
} |
|
|
|
|
|
|
|
this.serviceTotal = 0 |
|
|
|
this.addlist.forEach(types=>{ |
|
|
|
this.serviceTotal += types.length |
|
|
|
}) |
|
|
|
}, |
|
|
|
setMenuList(type, status) { |
|
|
|
this.addNum = 0 |
|
|
|
Object.values(this.menuList).forEach((item) => { |
|
|
|
let ver_select = false |
|
|
|
item.list.forEach((item1) => { |
|
|
|
item1.checked = false |
|
|
|
if (item1.type === type) { |
|
|
|
item1.is_select = status |
|
|
|
} |
|
|
|
if (item1.is_select === true) { |
|
|
|
ver_select = true |
|
|
|
this.addNum++ |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
if (ver_select) item.is_select = true |
|
|
|
}) |
|
|
|
this.serviceTotal = 0; |
|
|
|
this.scrollToCategory(this.activeVerid) |
|
|
|
Object.keys(this.addlist).forEach(key => { |
|
|
|
this.serviceTotal += this.addlist[key].length |
|
|
|
}); |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|