From 31cf269a0d2f8d4f0c589503325b582fb721a2e4 Mon Sep 17 00:00:00 2001 From: liushilong <2224574157@qq.com> Date: Thu, 28 Mar 2024 19:52:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=8F=9C=E5=8D=95=E6=9D=83=E9=99=90?= =?UTF-8?q?=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Menu/index.vue | 96 ++++++++++++------- src/views/final/comp/CustomFilterModalVue.vue | 39 +++++--- 2 files changed, 86 insertions(+), 49 deletions(-) diff --git a/src/layout/components/Menu/index.vue b/src/layout/components/Menu/index.vue index eac3a36..e665776 100644 --- a/src/layout/components/Menu/index.vue +++ b/src/layout/components/Menu/index.vue @@ -1,72 +1,98 @@ diff --git a/src/views/final/comp/CustomFilterModalVue.vue b/src/views/final/comp/CustomFilterModalVue.vue index 4164c8e..429b986 100644 --- a/src/views/final/comp/CustomFilterModalVue.vue +++ b/src/views/final/comp/CustomFilterModalVue.vue @@ -29,7 +29,7 @@ const allCount = computed(() => { }); const selectCount = computed(() => { - return `全部筛选(共${onList.value.length}个)`; + return `已选筛选(共${onList.value.length}个)`; }); defineExpose({ @@ -137,15 +137,13 @@ function onCheckAllChange(value) { } selectIds.value = value ? ids : []; - - } function onCheckChange(checked: any, item: any) { const index = selectIds.value.indexOf(item.id); item.checked = checked; - let currentIndex = offList.value.findIndex(v=>v.id == item.id) + let currentIndex = offList.value.findIndex((v) => v.id == item.id); offList.value[currentIndex].checked = item.checked; if (index === -1 && checked) selectIds.value.push(item.id); else selectIds.value.splice(index, 1); @@ -267,17 +265,17 @@ const rightInputHandler = debounce((keyword) => {
-
+
@@ -317,7 +315,7 @@ const rightInputHandler = debounce((keyword) => {
{ :class="{ fix: item.fix }" class="cursor-move draggable-li" > - + + {{ item.name }} {