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)