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(