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" }