From 73ef6f5bdc527fa53d1d9602bd911af1d40c3d53 Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Tue, 26 Jul 2022 10:17:47 +0800 Subject: [PATCH] =?UTF-8?q?BUG=20=E4=BF=AE=E6=94=B9=20=E6=88=91=E7=9A=84?= =?UTF-8?q?=E5=8F=91=E5=B8=83=E6=97=A0=E6=B3=95=E8=B7=B3=E8=BD=AC=20=20?= =?UTF-8?q?=E7=94=B3=E8=B4=AD=E8=BD=A6=20=E8=BF=87=E6=BB=A4=E5=B7=B2?= =?UTF-8?q?=E7=BB=8F=E4=B8=8B=E6=9E=B6=E7=9A=84=E8=83=BD=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/personalCenter/components/MyPublish.vue | 2 +- .../personalCenter/components/PurchaseVehicle.vue | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/front/src/views/personalCenter/components/MyPublish.vue b/front/src/views/personalCenter/components/MyPublish.vue index f802d426..03508c97 100644 --- a/front/src/views/personalCenter/components/MyPublish.vue +++ b/front/src/views/personalCenter/components/MyPublish.vue @@ -484,7 +484,7 @@ del() }) onBeforeUnmount(() => { - mybus.off('tabsChange') + mybus.off('Cancellation') mybus.off('Determine') }) const reason = ref('') diff --git a/front/src/views/personalCenter/components/PurchaseVehicle.vue b/front/src/views/personalCenter/components/PurchaseVehicle.vue index fc707d66..f557a4b3 100644 --- a/front/src/views/personalCenter/components/PurchaseVehicle.vue +++ b/front/src/views/personalCenter/components/PurchaseVehicle.vue @@ -821,9 +821,15 @@ } else { let arr = [] list.value.map((val) => { - val.arr = val.children.filter( - (item) => checkedListAbility.value.indexOf(item.id) > -1 - ) + val.arr = val.children.filter((item) => { + console.log('选择的数据=============>', item) + if ( + checkedListAbility.value.indexOf(item.id) > -1 && + item.delFlag != 0 + ) { + return item + } + }) }) arr = list.value.filter((val) => val.arr.length !== 0) console.log('一键申请===================>', arr)