From cdfbc4cb9bc80827f93fc099a35f228814a4fa00 Mon Sep 17 00:00:00 2001 From: SunTao <328867980@qq.com> Date: Tue, 24 Dec 2024 11:27:06 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=8E=BB=E9=99=A4=E5=A4=A7?= =?UTF-8?q?=E5=B1=8F=E7=97=85=E5=AE=B3=E7=8A=B6=E6=80=81=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=A4=A7=E5=B1=8F=E7=BA=BF=E6=AE=B5=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/map/fssm-map.vue | 31 +++++---- .../disease-components/traffic-log.vue | 66 ++++--------------- src/views/big-screen/index.vue | 47 ++++++++++++- .../xj/inspection-warn/warning-line/index.vue | 8 +-- 4 files changed, 79 insertions(+), 73 deletions(-) diff --git a/src/components/map/fssm-map.vue b/src/components/map/fssm-map.vue index bc1fe00..fb84414 100644 --- a/src/components/map/fssm-map.vue +++ b/src/components/map/fssm-map.vue @@ -2,7 +2,7 @@ * @Author: SunTao 328867980@qq.com * @Date: 2024-10-14 10:46:23 * @LastEditors: SunTao 328867980@qq.com - * @LastEditTime: 2024-12-23 11:07:04 + * @LastEditTime: 2024-12-23 17:37:59 * @FilePath: \znxjxt-ui\src\components\map\fssm-map.vue * @Description: 公共地图 --> @@ -389,7 +389,10 @@ export default { // 获取弹窗数据 const popupData = feature.get("data"); // 获取弹窗内元素并赋值 - this.$refs.popupContent.innerHTML = `路段名称:${popupData.name}
病害数:${popupData.count}个
起始桩号:${popupData.stakeStart}
终止桩号:${popupData.stakeEnd}`; + this.$refs.popupContent.innerHTML = `路段名称:${popupData.name}
+ 病害数:${popupData.count}个
+ 起始桩号:${popupData.stakeStart}
+ 终止桩号:${popupData.stakeEnd}`; dislogLay.setPosition(coordinate); } else { dislogLay.setPosition(undefined); @@ -413,7 +416,7 @@ export default { this.$emit("map-moveend", zoom); }); // 图层选择事件 - this.selectSingClick = new Select({ style: null }); + this.selectSingClick = new Select(); map.addInteraction(this.selectSingClick); this.selectSingClick.on("select", (e) => { this.$emit("feature-select", e); @@ -825,14 +828,20 @@ export default { } // 地图弹窗样式 - .ol-popup > div { - padding: 0.5rem; - box-sizing: border-box; - background: rgba(79, 79, 79, 0.7); - border-radius: 0.2rem; - border: 1px solid #3976f1; - font-size: 0.7rem; - color: #ffffff; + .ol-popup{ + width:10rem; + position: absolute; + margin: 0.5rem; + + > div { + padding: 0.5rem; + box-sizing: border-box; + background: rgba(79, 79, 79, 0.7); + border-radius: 0.2rem; + border: 1px solid #3976f1; + font-size: 0.7rem; + color: #ffffff; + } } // 放大缩小控件 diff --git a/src/views/big-screen/disease-components/traffic-log.vue b/src/views/big-screen/disease-components/traffic-log.vue index c8cf0f8..f7eb36b 100644 --- a/src/views/big-screen/disease-components/traffic-log.vue +++ b/src/views/big-screen/disease-components/traffic-log.vue @@ -2,7 +2,7 @@ * @Author: SunTao 328867980@qq.com * @Date: 2024-11-08 11:56:02 * @LastEditors: SunTao 328867980@qq.com - * @LastEditTime: 2024-12-23 13:23:20 + * @LastEditTime: 2024-12-24 09:07:12 * @FilePath: \znxjxt-ui\src\views\big-screen\disease-components\traffic-log.vue * @Description: 病害巡检-病害日志 --> @@ -112,21 +112,6 @@ /> - - - - - @@ -146,7 +131,8 @@ style="width: 100%; background: none" height="85%" > - + + - - - - +