diff --git a/src/views/EquipmentLedger/index.vue b/src/views/EquipmentLedger/index.vue index e59cee60..1ed670bf 100644 --- a/src/views/EquipmentLedger/index.vue +++ b/src/views/EquipmentLedger/index.vue @@ -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()]) // 最后加载列表数据