From 855afb9adb3ba4f13eb8037f3918e362b82889e8 Mon Sep 17 00:00:00 2001 From: yanzai Date: Mon, 24 Nov 2025 22:26:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/views/PlanMngr/PlanModel.vue | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/admin/src/views/PlanMngr/PlanModel.vue b/admin/src/views/PlanMngr/PlanModel.vue index f682745..6ea5e4d 100644 --- a/admin/src/views/PlanMngr/PlanModel.vue +++ b/admin/src/views/PlanMngr/PlanModel.vue @@ -256,7 +256,7 @@ 全部转换 - + 批量勾选 @@ -612,6 +612,7 @@ } let ToPlanType=ref(null) const PiLiangOpenFunc2=(type)=>{ //从原来类型转换为目标类型,记录目标类型 + ToPlanType.value=type PiLiangDialogVisible.value=true } @@ -684,7 +685,9 @@ start_k=i } if(start_k !==null && (v.time<=PiliangSelectedEndTime.value+':00' || v.time<=PiliangSelectedEndTime.value)){ - if( (v.plan_type_id==SelectedPlanType.value.id && j==0) || v.plan_type_id===ToPlanType.value.id){ //已经选中的同类型也算作数量 + if(ToPlanType.value!==0 && ((v.plan_type_id==SelectedPlanType.value.id && j==0) + //|| v.plan_type_id===ToPlanType.value.id//已经选中的同类型也算作数量(之所以屏蔽这句,是因为只想勾选选定的类型进行转换,已经是目标类型的不做计数) + )){ console.log(v.time) if(count{//新类型数量增加 - if(ToPlanType.value.id==t_v.id){ + if(ToPlanType.value!==0 && ToPlanType.value.id==t_v.id){ t_v.count=t_v.count+count } if(SelectedPlanType.value.id==t_v.id){ //之前的数量减少