diff --git a/front/src/api/file.js b/front/src/api/file.js index d7e2349d..ccb2466b 100644 --- a/front/src/api/file.js +++ b/front/src/api/file.js @@ -105,9 +105,5 @@ export function getCameraInfoByAreaId(params) { } //能力集市基础设施-摄像头 export function getCameraByCondition(params) { - return axios.get( - 'http://10.134.135.92:9537/data_service/getCamera/getCameraByCondition?' + - params, - config2 - ) + return axios.post('http://10.134.135.92:9537/data_service/getCamera/getCameraByCondition', params, config2) } diff --git a/front/src/supermap/image/icon-poylon.png b/front/src/supermap/image/icon-poylon.png new file mode 100644 index 00000000..593e91f0 Binary files /dev/null and b/front/src/supermap/image/icon-poylon.png differ diff --git a/front/src/views/home/infrastructurePage.vue b/front/src/views/home/infrastructurePage.vue index 41c42d55..259282eb 100644 --- a/front/src/views/home/infrastructurePage.vue +++ b/front/src/views/home/infrastructurePage.vue @@ -413,7 +413,7 @@
备选 - {{ pagination.total }} + {{ pagination.total || 0 }} 个
@@ -941,9 +941,16 @@ mapSearchParam.value.gpsX = param.gpsX mapSearchParam.value.gpsY = param.gpsY mapSearchParam.value.radius = param.radius + mapSearchParam.value.type = param.type + mapSearchParam.value.borderPolygonList = param.borderPolygonList + mapSearchParam.value.pageSize = param.type!=0?20000:10 selectedRowKeys.value = [] //清空选中的点位 selectedList.value = [] - getCamera() + + + dataSource.value = param.dataSource + pagination.value.total = param.total + // getCamera() }) //点位点击 mybus.off('pointMarkerClick') @@ -1761,6 +1768,7 @@ videoList.value = [] pagination.value.current = 1 mapSearchParam.value.pageNum = 1 + mapSearchParam.value.type = 0 pagination.value.pageSize = 10 getCamera() } @@ -1871,6 +1879,8 @@ latitude: mapSearchParam.value.gpsY || '', radius: mapSearchParam.value.radius || '', name: mapSearchParam.value.cameraName, + type: mapSearchParam.value.type, + borderPolygonList: mapSearchParam.value.borderPolygonList || [], } // todo-临时放开 // if ( @@ -1880,22 +1890,22 @@ // ) { // params.status = '' // } - let paramsFather = '' - let i = 1 - for (var key in params) { - if (params[key] === '') { - delete params[key] - } else { - if (i != 1) { - paramsFather += `&${key}=` + params[key] - i += 1 - } else if (i == 1) { - paramsFather += `${key}=` + params[key] - i += 1 - } - } - } - getCameraByCondition(paramsFather).then((res) => { + // let paramsFather = '' + // let i = 1 + // for (var key in params) { + // if (params[key] === '') { + // delete params[key] + // } else { + // if (i != 1) { + // paramsFather += `&${key}=` + params[key] + // i += 1 + // } else if (i == 1) { + // paramsFather += `${key}=` + params[key] + // i += 1 + // } + // } + // } + getCameraByCondition(params).then((res) => { dataSource.value = res.data.data pagination.value.total = res.data.count console.log('根据parent查询摄像头', res.data.data) diff --git a/front/src/views/home/videoSurveillance/index.vue b/front/src/views/home/videoSurveillance/index.vue index 47002565..7660f412 100644 --- a/front/src/views/home/videoSurveillance/index.vue +++ b/front/src/views/home/videoSurveillance/index.vue @@ -65,6 +65,8 @@ data-spm-anchor-id="a313x.7781069.0.i0" > + +