From 53edae3f26a8706ef19802e4cd65370c14a47425 Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 31 Dec 2021 17:41:25 +0800 Subject: [PATCH] BUG 26288 --- src/apps/AppBuilding/detail.vue | 12 +++++++----- .../AppVideoSurveillance/AppVideoSurveillance.vue | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/apps/AppBuilding/detail.vue b/src/apps/AppBuilding/detail.vue index f3a1fc5a..ceedb05e 100644 --- a/src/apps/AppBuilding/detail.vue +++ b/src/apps/AppBuilding/detail.vue @@ -154,7 +154,7 @@ export default { selectCellIndex: 0, houseId: '', detail: {}, - eachUnitNumber: '' + eachUnitNumber: 1 } }, computed: { @@ -177,12 +177,14 @@ export default { }).then(res => { if (res?.data) { this.selectList = [] - res.data.records.forEach(e => { + let {unitNumber, buildingNumber} = this.detail, + {communityName} = res.data.records?.[0] + for (let i = 1; i <= unitNumber; i++) { this.selectList.push({ - ...e, - cellName: `${e.communityName + e.buildingNumber}栋${e.eachUnitNumber}单元` + eachUnitNumber: i, + cellName: `${communityName + buildingNumber}栋${i}单元` }) - }) + } this.eachUnitNumber = this.selectList[0].eachUnitNumber this.getStatistics() this.getList() diff --git a/src/apps/AppVideoSurveillance/AppVideoSurveillance.vue b/src/apps/AppVideoSurveillance/AppVideoSurveillance.vue index 8ab858da..831754fc 100644 --- a/src/apps/AppVideoSurveillance/AppVideoSurveillance.vue +++ b/src/apps/AppVideoSurveillance/AppVideoSurveillance.vue @@ -8,7 +8,7 @@ -->
- + {{ areaName }} 请选择