BUG 修改 我的发布无法跳转 申购车 过滤已经下架的能力

This commit is contained in:
a0049873 2022-07-26 10:17:47 +08:00
parent 837641ba79
commit 73ef6f5bdc
2 changed files with 10 additions and 4 deletions

View File

@ -484,7 +484,7 @@
del() del()
}) })
onBeforeUnmount(() => { onBeforeUnmount(() => {
mybus.off('tabsChange') mybus.off('Cancellation')
mybus.off('Determine') mybus.off('Determine')
}) })
const reason = ref('') const reason = ref('')

View File

@ -821,9 +821,15 @@
} else { } else {
let arr = [] let arr = []
list.value.map((val) => { list.value.map((val) => {
val.arr = val.children.filter( val.arr = val.children.filter((item) => {
(item) => checkedListAbility.value.indexOf(item.id) > -1 console.log('选择的数据=============>', item)
) if (
checkedListAbility.value.indexOf(item.id) > -1 &&
item.delFlag != 0
) {
return item
}
})
}) })
arr = list.value.filter((val) => val.arr.length !== 0) arr = list.value.filter((val) => val.arr.length !== 0)
console.log('一键申请===================>', arr) console.log('一键申请===================>', arr)