From 78e70d853dcad5a858fa623e46d1933849e62da7 Mon Sep 17 00:00:00 2001 From: pengda <1111@qq.com> Date: Wed, 27 Aug 2025 14:00:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E6=B7=BB=E5=8A=A0=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/agent/siteAddChooseService.vue | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) 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 + }); }, } }