From c6798ff28ec57138ea5ce3c177851c1870fdd1a3 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 20 Nov 2022 14:08:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A5=BF=E6=B5=B7=E5=B2=B8=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E8=AE=BE=E6=96=BD=E8=A7=86=E9=A2=91=E7=9B=91=E6=8E=A7=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=9C=B0=E5=9B=BE=E4=BF=AE=E6=94=B91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/home/infrastructurePageXha.vue | 163 +----------------- .../views/home/videoSurveillance/index.vue | 44 +++-- 2 files changed, 31 insertions(+), 176 deletions(-) diff --git a/front/src/views/home/infrastructurePageXha.vue b/front/src/views/home/infrastructurePageXha.vue index 316597ea..359e3f72 100644 --- a/front/src/views/home/infrastructurePageXha.vue +++ b/front/src/views/home/infrastructurePageXha.vue @@ -406,166 +406,7 @@
- -
- -
-

- 备选 - {{ pagination.total || 0 }} - 个 -

-

- 已选 - {{ selectedRowKeys.length }} - 个 -

-
- -
-
- - - 重置 - -
- - - - 批量预览 - - - - 添加至申购车 - - - 客户端下载 - - - - 一键申请 - - - - - -
-
-
- - - -
-
- -
-
- -
{ this.mapSearchParam.parentId = parentId + this.mapSearchParam.type = "1" + this.mapSearchParam.pageSize = 10000 this.getCameraByParentId() }) //表格勾选 @@ -179,6 +181,12 @@ } //this.addResourceTomap('videoMap', this.pointAllData); }) + + //摄像头数据上图 + mybus.off('cameraDataOnMap') + mybus.on('cameraDataOnMap', (data) => { + this.addResourceTomap('videoMap', data) + }) }, methods: { selectedAddress(item, index) { @@ -271,14 +279,14 @@ }) }, getCameraByParentId(type) { + debugger if (!this.whoShow1.itShowXiHaiAn) { - debugger getCameraByParentId(this.mapSearchParam).then((res) => { - debugger console.log('根据parent查询摄像头', res.data.data) this.addResourceTomap('videoMap', res.data.data) }) } else { + console.log('根据parent查询摄像头111111',this.mapSearchParam) let params = { regionId: this.mapSearchParam.parentId || @@ -307,8 +315,9 @@ } } } + params.type='0'; getCameraByCondition(params).then((res) => { - console.log('根据parent查询摄像头', res.data.data) + //console.log('根据parent查询摄像头44444', res.data.data) if(type=='map'){ let params = this.mapSearchParam; params.dataSource = res.data.data||0; @@ -316,10 +325,12 @@ mybus.emit('getListByMap', params); } this.pointAllData = res.data.data; - if(this.mapSearchParam.type!=0) + if(this.mapSearchParam.type!=0){ this.addResourceTomap('videoMap', res.data.data) + } else - this.addResourceTomap('videoMap', []) //查询全部时不打点 + {this.addResourceTomap('videoMap', []) } //查询全部时不打点} + }) } }, @@ -418,14 +429,16 @@ }, getCameraAllPage(page) { let params = { - name: '', - page: page, - pageSize: 20000, - } - getCameraAll(params).then((res) => { + regionId: "70be8c5b664f4bcf869d82f2e8335051", + pageNum: "1", + pageSize: 30000, + type: 0, + borderPolygonList: [] +} + getCameraByCondition(params).then((res) => { // let t1 = new Date().getTime(); // this.cameraAllData = res.data.data - this.addResourceTomap('videoMap', res.data) + this.addResourceTomap('videoMap', res.data.data) // let t2 = new Date().getTime(); // console.log("时间#############" + (t2 - t1)); }) @@ -463,6 +476,7 @@ }, addResourceTomap(type, data) { + console.log('datadatadata',data); const dataEvent = [] if(data&&data.length>0){ data.forEach((item) => { @@ -481,7 +495,7 @@ this.getMapPoint(dataEvent, 'icon_camare.png', type) }, getMapPoint(data, img, type) { - // this.hiMapFun.clearAllLayers(); + this.hiMapFun.clearAllLayers(); const features = data // debugger this.hiMapFun.addResourceOnMapWithoutSuperMapCluster(