This commit is contained in:
bb_pan 2026-01-08 12:34:23 +08:00
parent f1b2835ca7
commit a95550245b
1 changed files with 4 additions and 4 deletions

View File

@ -1668,20 +1668,20 @@ export default {
},
async created() {
await this.getDeptTreeSelect()
const params = this.$route.query
this.queryParams.propertyUnitId = params?.deptId || ''
if (params && params.parentId) {
this.queryParams.propertyUnitIds.push(params.parentId)
this.queryParams.propertyUnitIds.push(Number(params.parentId))
if (params.deptId) {
this.queryParams.propertyUnitIds.push(params.deptId)
this.queryParams.propertyUnitIds.push(Number(params.deptId))
}
} else if (params && params.deptId) {
this.queryParams.propertyUnitIds.push(params.deptId)
this.queryParams.propertyUnitIds.push(Number(params.deptId))
}
this.getProvinceList()
this.getFirstLevel()
this.getManufacturerSelectList()
this.getDeptTreeSelect()
//
await Promise.all([this.getDeviceTree(), this.getDeviceStatusCount()])
//