This commit is contained in:
parent
f1b2835ca7
commit
a95550245b
|
|
@ -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()])
|
||||
// 最后加载列表数据
|
||||
|
|
|
|||
Loading…
Reference in New Issue