From 43711119313e22f1685cf4e371269ffc0d30f7da Mon Sep 17 00:00:00 2001 From: SunTao <328867980@qq.com> Date: Wed, 8 Jan 2025 09:32:30 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=A2=9E=E5=8A=A0=E7=BA=BF?= =?UTF-8?q?=E6=AE=B5=E7=82=B9=E5=87=BB=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/map/fssm-map.vue | 6 ++---- src/views/big-screen/index.vue | 6 ++++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/map/fssm-map.vue b/src/components/map/fssm-map.vue index fbf9be3..5d5857d 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: 2025-01-02 16:17:20 + * @LastEditTime: 2025-01-07 17:07:28 * @FilePath: \znxjxt-ui\src\components\map\fssm-map.vue * @Description: 公共地图 --> @@ -428,9 +428,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); diff --git a/src/views/big-screen/index.vue b/src/views/big-screen/index.vue index 81805ad..19c33a8 100644 --- a/src/views/big-screen/index.vue +++ b/src/views/big-screen/index.vue @@ -2,7 +2,7 @@ * @Author: SunTao 328867980@qq.com * @Date: 2024-10-17 11:34:00 * @LastEditors: SunTao 328867980@qq.com - * @LastEditTime: 2025-01-06 11:17:42 + * @LastEditTime: 2025-01-08 09:11:29 * @FilePath: \znxjxt-ui\src\views\big-screen\index.vue * @Description: 大屏首页 --> @@ -1197,6 +1197,7 @@ export default { segmentId: element.segmentId, stakeEnd: element.stakeEnd, stakeStart: element.stakeStart, + inspectDirection: element.inspectDirection, }, type: "line", }); @@ -1336,7 +1337,7 @@ export default { // 点击线段事件 if (feature.getProperties().type === "line") { // console.log(feature.get("data"), "线段参数"); - // this.drawDefectPoint(feature.get("data")); + this.drawDefectPoint(feature.get("data")); } else if (feature.getProperties().type === "carPoint") { console.log(feature, "小车点位"); } else { @@ -1378,6 +1379,7 @@ export default { // map.getView().setZoom(16); // }); // this.roadSelect = item.segmentId; + this.shouldLoadClusters = false; this.getCenterPiont(); },