From a95550245b63e03bf791808d091d7242f4825fd1 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Thu, 8 Jan 2026 12:34:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/EquipmentLedger/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()]) // 最后加载列表数据