From 111d40734a5fce02dfacc1d3b13ce359b868878a Mon Sep 17 00:00:00 2001 From: yanzai Date: Mon, 10 Nov 2025 16:17:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8F=B7=E6=BA=90=E6=98=8E?= =?UTF-8?q?=E7=BB=86=E5=92=8C=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/views/PlanMngr/Plan.vue | 8 +++++--- admin/src/views/PlanMngr/PlanModel.vue | 12 ++++++++++++ 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/admin/src/views/PlanMngr/Plan.vue b/admin/src/views/PlanMngr/Plan.vue index e730c52..98a3266 100644 --- a/admin/src/views/PlanMngr/Plan.vue +++ b/admin/src/views/PlanMngr/Plan.vue @@ -31,7 +31,7 @@ 已勾选:{{selected_count}} -
+
VIP @@ -158,16 +158,18 @@ const route = useRoute() const router = useRouter() let loading = ref(false) + let plan_loading=ref(false) let searchInfo = ref({}) let list = ref([]); let unused_count=ref(0); let used_count=ref(0); const GetList = () => { - loading.value = true + selected_count.value=0 + plan_loading.value = true PlanGetList({ searchInfo: searchInfo.value, }).then(res => { - loading.value = false + plan_loading.value = false if (res.status) { list.value = res.data.list unused_count.value=res.data.unused_count diff --git a/admin/src/views/PlanMngr/PlanModel.vue b/admin/src/views/PlanMngr/PlanModel.vue index caa5c35..4e31ef3 100644 --- a/admin/src/views/PlanMngr/PlanModel.vue +++ b/admin/src/views/PlanMngr/PlanModel.vue @@ -403,9 +403,21 @@ return false } if (timeList.value[index].class == "timelist_button_selected") { + if(timeList.value[index].plan_type_id !=null){ + PlanUseCount.value-- + PlanUnuseCount.value++ + PlabTypeList.value.forEach((t_v,t_i)=>{ + if(timeList.value[index].plan_type_id==t_v.id){ + t_v.count-- + } + }) + } timeList.value[index].class = "" timeList.value[index].type_color = null timeList.value[index].plan_type_id = null + + + } else { timeList.value[index].class = "timelist_button_selected" }