Browse Source

服务添加优化

pull/116/head
pengda 6 days ago
parent
commit
78e70d853d
  1. 27
      src/views/agent/siteAddChooseService.vue

27
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
});
},
}
}

Loading…
Cancel
Save