diff --git a/src/views/agent/siteAddChooseService.vue b/src/views/agent/siteAddChooseService.vue index b93951f..5f711ee 100644 --- a/src/views/agent/siteAddChooseService.vue +++ b/src/views/agent/siteAddChooseService.vue @@ -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 + }); }, } }