-
-
- {{ it.text }}
- {{ it.value }}
-
+
+
+
+
+
+ 温度:
+ {{
+ data.temperature ? data.temperature + "℃" : "-"
+ }}
-
+
+ 湿度:
+ {{
+ data.humidity ? data.humidity + "mm" : "-"
+ }}
+
+
+ 风向:
+ {{
+ data.windDirection ? data.windDirection + "°" : "-"
+ }}
+
+
+ 风速:
+ {{
+ data.windSpeed ? data.windSpeed + "级" : "-"
+ }}
+
+
+ 能见度:
+ {{
+ data.visibilityType ? data.visibilityType + "级" : "-"
+ }}
+
+
+
+
+ 降雨量:
+ {{
+ data.rainfall ? data.rainfall + "mm" : "-"
+ }}
+
+
+ 路面温度:
+ {{
+ data.remoteRoadSurfaceTemperature
+ ? data.remoteRoadSurfaceTemperature + "℃"
+ : "-"
+ }}
+
+
+ 气压:
+ {{
+ data.atmosphericPressure ? data.atmosphericPressure + "Pa" : "-"
+ }}
+
+
-
-
-
-
-
-
\ No newline at end of file
+}
+.charts {
+ height: 180px;
+ width: 100%;
+}
+
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/weatherInfoQuery/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/weatherInfoQuery/index.vue
index 469ff15c..a0c27b3c 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/weatherInfoQuery/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/weatherInfoQuery/index.vue
@@ -2,24 +2,40 @@
-
+
+
+
+ {{ data.deviceState == 1 ? "在线" : "离线" }}
+
+
-
-
-
+
+
+
@@ -48,27 +64,30 @@ export default {
keyMap: [
{
label: "设备名称",
- key: "name",
+ key: "deviceName",
},
{
label: "设备位置",
- key: "name",
+ key: "stakeMark",
},
{
label: "所属方向",
- key: "rote",
+ key: "direction",
},
{
label: "采集时间",
- key: "time",
+ key: "createTime",
},
{
- label: "气象状态",
- key: "start",
+ label: "设备状态",
+ key: "deviceState",
},
],
+ deviceName: "",
selectIndex: 0,
dataList: [],
+ dataItem: {},
+ weatherData: [],
data: Array.from({ length: 10 }).map(() => ({
name: "气象监测器1",
rote: "济南方向",
@@ -85,15 +104,27 @@ export default {
this.selectIndex = index;
},
resizeChart() {
- // console.log(this.$refs.temper);
this.$refs.temper.reiszeChart();
this.$refs.visibility.reiszeChart();
},
getList() {
getListLatest().then((res) => {
- console.log("_____________", res);
+ this.dataList = res.rows;
+ this.dataItem = res.rows[0];
+ this.deviceName = res.rows[0].deviceName;
+ this.getWeather();
});
},
+ getWeather() {
+ getDeviceNameListLatest(this.deviceName).then((res) => {
+ this.weatherData = res.rows;
+ });
+ },
+ handleClick(item) {
+ this.dataItem = item;
+ this.deviceName = item.deviceName;
+ this.getWeather();
+ },
},
mounted() {
this.getList();
@@ -104,7 +135,7 @@ export default {
From aa57f41ee1e34b38d2a946023209f1aa21b76be0 Mon Sep 17 00:00:00 2001
From: qingzhengli <1204552371@qq.com>
Date: Mon, 1 Apr 2024 17:58:25 +0800
Subject: [PATCH 08/10] =?UTF-8?q?fix=20=E5=8F=8C=E5=87=BB=E6=89=8D?=
=?UTF-8?q?=E8=83=BD=E5=87=BA=E5=8F=91=E5=BC=B9=E7=AA=97bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Home/components/RoadAndEvents/utils/map.js | 14 ++++++++++++--
.../pages/Home/components/Thumbnail/index.vue | 2 +-
2 files changed, 13 insertions(+), 3 deletions(-)
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 e5c69034..ff81bccc 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
@@ -202,7 +202,7 @@ export class MarkerCluster {
`);
window.infoWindow = this.infoWindow;
this.infoWindow.open(map, currentPageData[0].lnglat);
-
+ window.openInfoWindow = true;
this.infoWindow.dom.querySelector(".info-close").onclick = () =>
this.infoWindow.close();
@@ -237,11 +237,21 @@ export class MarkerCluster {
let hasClick = false;
const reset = () => {
- this.infoWindow?.close?.();
+ if (!window.openInfoWindow) {
+ this.infoWindow?.close?.();
+ }
};
map.on("zoomstart", reset);
map.on("mapmove", reset);
+ map.on("moveend", async () => {
+ if (window.openInfoWindow) {
+ console.log("窗口位移结束");
+ window.openInfoWindow = false;
+ await new Promise((resolve) => setTimeout(resolve, 340));
+ window.infoWindow?.open?.();
+ }
+ });
const markerCluster = new AMap.MarkerCluster(map, [], {
// gridSize: 15,
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Thumbnail/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Thumbnail/index.vue
index 978a89a2..b91a768d 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Thumbnail/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Thumbnail/index.vue
@@ -13,7 +13,7 @@ import { actualLocationList, canvasList } from "./data.js";
const mouseenterDebounceFunc = debounce(({ node }) => {
if (["custom-html"].indexOf(node.shape) >= 0) {
node.setZIndex(100);
- console.log(node);
+ // console.log(node);
}
}, 0);
const mouseleaveDebounceFunc = debounce(({ node }) => {
From 83d36e987d4bba6762605dc52a76478a0fa0f12c Mon Sep 17 00:00:00 2001
From: qingzhengli <1204552371@qq.com>
Date: Mon, 1 Apr 2024 18:06:22 +0800
Subject: [PATCH 09/10] =?UTF-8?q?feat=20=20=E5=A2=9E=E5=8A=A0=E5=BB=B6?=
=?UTF-8?q?=E8=BF=9F840?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/Home/components/RoadAndEvents/utils/map.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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 ff81bccc..a0b120d9 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
@@ -238,6 +238,7 @@ export class MarkerCluster {
const reset = () => {
if (!window.openInfoWindow) {
+ // console.log(window.openInfoWindow, "rest");
this.infoWindow?.close?.();
}
};
@@ -248,7 +249,7 @@ export class MarkerCluster {
if (window.openInfoWindow) {
console.log("窗口位移结束");
window.openInfoWindow = false;
- await new Promise((resolve) => setTimeout(resolve, 340));
+ await new Promise((resolve) => setTimeout(resolve, 840));
window.infoWindow?.open?.();
}
});
From 739ac56a49abf6ee47ee66bebab0b9fd4527ec5d Mon Sep 17 00:00:00 2001
From: lau572 <1010031226@qq.com>
Date: Tue, 2 Apr 2024 11:37:45 +0800
Subject: [PATCH 10/10] =?UTF-8?q?=20x=E8=BD=B4=E9=97=B4=E9=9A=94?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/postTrendsMonth/assets/charts.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/assets/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/assets/charts.js
index 28f57d2a..4ea30c4e 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/assets/charts.js
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/assets/charts.js
@@ -49,7 +49,7 @@ let options = {
},
},
axisLabel: {
- interval: 0,
+ interval: 1,
align: "center",
rotate: "1",
margin: "20",