This commit is contained in:
bb_pan 2026-01-13 17:51:53 +08:00
parent b35aad7a51
commit 5307112844
3 changed files with 6 additions and 8 deletions

View File

@ -997,11 +997,9 @@ export default {
})
},
//
getDeptTreeSelect() {
deptTreeSelect().then((res) => {
this.propertyUnitList = this.filterTree(res.data)
console.log('🚀 ~ getDeptTreeSelect ~ this.propertyUnitList:', this.propertyUnitList)
})
async getDeptTreeSelect() {
const res = await deptTreeSelect()
this.propertyUnitList = this.filterTree(res.data)
},
filterTree(nodes) {
return nodes
@ -1668,7 +1666,7 @@ export default {
},
async created() {
await this.getDeptTreeSelect()
await this.getDeptTreeSelect().catch(() => {})
const params = this.$route.query
this.queryParams.propertyUnitId = params?.deptId || ''
if (params && params.parentId) {

View File

@ -516,7 +516,7 @@ export default {
}
},
async created() {
await this.getDeptTreeSelect()
await this.getDeptTreeSelect().catch(() => {})
const params = this.$route.query
this.queryParams.propertyUnitId = params?.deptId || ''
const ids = []

View File

@ -396,7 +396,7 @@ export default {
}
},
async created() {
await this.getDeptTreeSelect()
await this.getDeptTreeSelect().catch(() => {})
const params = this.$route.query
this.queryParams.propertyUnitId = params?.deptId || ''
const ids = []