From 50025690f0d537e5de8987e07653fdc91aad3280 Mon Sep 17 00:00:00 2001 From: water_xu Date: Wed, 26 Jun 2024 10:51:47 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E5=8F=A3=E9=97=A8=E7=A6=81-=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE-=E5=8F=A3=E9=97=A8=E7=BB=9F=E8=AE=A1=E5=B0=8F?= =?UTF-8?q?=E7=AA=97=E5=8F=A31?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/map/components/menjin.vue | 34 +++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/src/views/map/components/menjin.vue b/src/views/map/components/menjin.vue index 604b295..80ff49e 100644 --- a/src/views/map/components/menjin.vue +++ b/src/views/map/components/menjin.vue @@ -102,18 +102,18 @@ export default { img: require('../../../assets/map/menjin/img3.png'), label1: '口门数', count1: 0, - label2: '车门数', + label2: '车闸机数', count2: 0, - label3: '人门数', + label3: '人闸机数', count3: 0 }, { img: require('../../../assets/map/menjin/img4.png'), label1: '口门数', count1: 0, - label2: '车门数', + label2: '车闸机数', count2: 0, - label3: '人门数', + label3: '人闸机数', count3: 0 } ], @@ -295,6 +295,32 @@ export default { } }) }, + + getOnlineGateMachine() { + requestFN( + '/map/getOnlineGateMachine', { + AREA: this.area, + CORPINFO_ID: this.corpInfoId, + GANGKOU: this.gangkou, + } + ).then((data) => { + data.varList.forEach(e => { + if (e.AREA_PARENT_ID == '393705'){ + // 东港区 + this.block1OptionsList[0].count1 = e.AREA_COUNT + this.block1OptionsList[0].count2 = e.CAR + this.block1OptionsList[0].count3 = e.PEOPLE + }else if (e.AREA_PARENT_ID == '371709'){ + // 西港区 + this.block1OptionsList[1].count1 = e.AREA_COUNT + this.block1OptionsList[1].count2 = e.CAR + this.block1OptionsList[1].count3 = e.PEOPLE + } + + }); + + }) + }, getDoorManagement() { requestFN( '/map/getDoorManagement', {