diff --git a/front/src/supermap/map-showResource.js b/front/src/supermap/map-showResource.js index 8990447e..3aab1872 100644 --- a/front/src/supermap/map-showResource.js +++ b/front/src/supermap/map-showResource.js @@ -83,11 +83,12 @@ function createMarkerClusterLayer(layerClassName, mapObj) { maxClusterRadius: 80, }) markerClusterLayer.on('clusterclick', function(a) { - //console.log('cluster ' + a.layer.getAllChildMarkers().length); + //console.log('cluster ' + a.layer.getAllChildMarkers()); if (a.layer.getAllChildMarkers().length < 50) { let clusterList = []; for (var i = 0; i < a.layer.getAllChildMarkers().length; i++) { //console.log('yyyyyyyyy', a.layer.getAllChildMarkers()[i].resourceData); + //console.log('yyyyyyyyy', a.layer.getAllChildMarkers()[i].fData); clusterList.push(a.layer.getAllChildMarkers()[i].resourceData); } //console.log('clusterList ' + a.layer.getAllChildMarkers(array, true)); diff --git a/front/src/views/home/components/H5Player.vue b/front/src/views/home/components/H5Player.vue index ccb06eb6..8542c31c 100644 --- a/front/src/views/home/components/H5Player.vue +++ b/front/src/views/home/components/H5Player.vue @@ -67,6 +67,7 @@ import { message } from 'ant-design-vue' handler(newVal, oldVal) { console.log('oldVal:', oldVal) console.log('newVal:', newVal) + //this.realplay(newVal,0); }, // 立即处理 进入页面就触发 immediate: true diff --git a/front/src/views/home/infrastructureApplication.vue b/front/src/views/home/infrastructureApplication.vue index 33842f48..7413b856 100644 --- a/front/src/views/home/infrastructureApplication.vue +++ b/front/src/views/home/infrastructureApplication.vue @@ -2,7 +2,7 @@ * @Author: Light * @Date: 2022-11-18 11:53:43 * @LastEditors: Light - * @LastEditTime: 2022-11-21 17:51:38 + * @LastEditTime: 2022-11-22 11:57:18 * @Description: 告诉大家这是什么 --> @@ -23,7 +23,7 @@ cancel-text="否" @confirm="delWillApplyCamera(item.id)" > - 移出 + 移出 @@ -45,17 +45,26 @@ {{ item.cameraInfo.channelName }} + + {{ item.approveStatus }} + - 删除 + 撤销 - - 删除 + + 撤销 @@ -68,12 +77,18 @@ - 本次申请的摄像头包含以下{{ showArr.length }}个摄像头,是否删除申请? - + 本次申请的视频监控包含以下{{ showArr.length }}个,是否撤销申请? + {{ text }} @@ -123,7 +138,7 @@ ] const router = useRouter() const delWillApplyCamera = (id) => { - console.log('删除===>', id) + console.log('撤销===>', id) if (delWacFlag.value) { delWacFlag.value = false willApplyCameraBatchDelete([id]).then((res) => { @@ -147,7 +162,7 @@ loading: false, note1: '', resourceId: '1522550195055828996', - resourceName: '摄像头列表', + resourceName: '视频监控列表', type: '基础设施', }, ], @@ -170,9 +185,9 @@ }) } } - // 删除已申请 + // 撤销已申请 const deleteApply = (item) => { - console.log('删除========>', item) + console.log('撤销========>', item) if (delApply.value) { delApply.value = false switch (item.approveStatus) { @@ -189,9 +204,9 @@ case '通过': delApplyCamera([item.id]).then((res) => { if (res.data.code == 0) { - message.success('删除成功') + message.success('撤销成功') } else { - message.warning('删除失败') + message.warning('撤销失败') } initApply() }) @@ -202,9 +217,9 @@ const handleOk = () => { endProcess({ instanceId: instanceId.value }).then((res) => { if (res.data.code == 0) { - message.success('删除成功') + message.success('撤销成功') } else { - message.warning('删除失败') + message.warning('撤销失败') } initApply() visible.value = false @@ -247,7 +262,7 @@ mybus.on('selectCamera', (obj) => { // 判断最多10条 if (dataList.toBeApplied.length + dataList.requested.length >= 10) { - message.warning('最多只能申请10个摄像头!') + message.warning('最多只能申请10个视频监控!') return } // 判断是否已操作 @@ -258,7 +273,7 @@ } }) dataList.requested.map((val) => { - if (addFlag && val.channelId == obj.channelId) { + if (addFlag && val.cameraInfo.channelId == obj.channelId) { addFlag = false } }) @@ -274,7 +289,7 @@ init() }) } else { - message.warning('已申请该摄像头!') + message.warning('已申请该视频监控!') } } }) @@ -288,34 +303,40 @@ position: fixed; top: 50%; right: 0.16rem; - margin-top: -3.5rem; + margin-top: -3.9rem; .bottom { - margin-top: 32px; + margin-top: 20px; } .title { font-size: 16px; font-weight: 600; } .name { - width: 150px; + width: 1.3rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; word-break: break-all; } + .top .name { + width: 1.8rem; + } :deep(.ant-list-footer) { display: flex; justify-content: flex-end; } :deep(.ant-list-items) { width: 2.5rem; - height: 2.45rem; + height: 3rem; overflow-y: scroll; } + :deep(.ant-list-item) { + padding: 5px 5px 5px 10px; + } :deep(.ant-spin-nested-loading) { width: 2.5rem; - height: 2.45rem; + height: 3rem; } } diff --git a/front/src/views/home/videoSurveillance/components/CameraPopupOnMap.vue b/front/src/views/home/videoSurveillance/components/CameraPopupOnMap.vue index 5f691d90..dac8d827 100644 --- a/front/src/views/home/videoSurveillance/components/CameraPopupOnMap.vue +++ b/front/src/views/home/videoSurveillance/components/CameraPopupOnMap.vue @@ -25,12 +25,12 @@ - + {{defaultIndex+1}}/{{cameraDataList.length}} -
本次申请的摄像头包含以下{{ showArr.length }}个摄像头,是否删除申请?
本次申请的视频监控包含以下{{ showArr.length }}个,是否撤销申请?