diff --git a/ruoyi-ui/src/api/MonthlyEquipment/index.js b/ruoyi-ui/src/api/MonthlyEquipment/index.js index 9921dfbb..f1a14095 100644 --- a/ruoyi-ui/src/api/MonthlyEquipment/index.js +++ b/ruoyi-ui/src/api/MonthlyEquipment/index.js @@ -53,3 +53,12 @@ export function getSystemStatusExport(query) { } ); } + +// 拖拽排序 + +export function getStatusRule(rule) { + return request({ + url: "/system/status/rule?rule=" + rule, + method: "get", + }); +} diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue index cff1caf4..74a6d568 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue @@ -51,7 +51,7 @@ import Intermodulation from "./../Dialogs/Intermodulation/index.vue"; import GuardrailCollision from "./../Dialogs/GuardrailCollision/index.vue"; import FatigueWakesUp from "./../Dialogs/FatigueWakesUp/index.vue"; -import { addInGraphHandle } from "./utils/map" +import { addInGraphHandle, markerClusterIns } from "./utils/map" import { lngLatMap } from "./utils/buttonEvent"; export default { @@ -182,6 +182,9 @@ export default { }, beforeDestroy() { this.emitter.off("selectedCompleted", this.selectedCompletedHandle); + Object.keys(lngLatMap).forEach(key => delete lngLatMap[key]); + markerClusterIns.clear(); + window.renderData = undefined; }, methods: { selectedCompletedHandle(item) { diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js index ab20e917..8775cb68 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js @@ -39,7 +39,7 @@ export class MarkerCluster { markerCluster; infoWindow; - data = []; + data = []; //标注集合 constructor() {} @@ -115,7 +115,7 @@ export class MarkerCluster { window.totalPages = totalPages; let num = (page - 1) * pageSize; function renderData(page) { - if (page < 1 || page > totalPages) return; + if (!data || page < 1 || page > totalPages) return; window.page = page; const pageSize = window.pageSize; const dataContainer = document.getElementById("dataContainer"); @@ -250,7 +250,7 @@ export class MarkerCluster { if (window.openInfoWindow) { // console.log("窗口位移结束", new Date()); window.openInfoWindow = false; - // window.infoWindow?.open?.(); + // !window.infoWindow.getIsOpen() && window.infoWindow?.open?.(); } }); @@ -391,6 +391,9 @@ export class MarkerCluster { setData() { this.markerCluster.setData(this.data); } + clear() { + this.data = []; + } } export function getContent(data) { diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/components/deviceSummary/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/components/deviceSummary/index.vue index 64f65685..b33ed278 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/components/deviceSummary/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/components/deviceSummary/index.vue @@ -113,6 +113,7 @@