From 5dd8ad6edf0e8f6f66d5d9c3a59884cf3539a4b4 Mon Sep 17 00:00:00 2001
From: Joe <1712833832@qq.com>
Date: Thu, 18 Jan 2024 11:28:49 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E5=9C=B0=E5=9B=BE=20=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Home/components/FocusedMonitoring/index.vue | 7 +++++--
.../components/RoadAndEvents/utils/buttonEvent.js | 13 ++++++++++---
.../Home/components/RoadAndEvents/utils/map.js | 2 +-
3 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/FocusedMonitoring/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/FocusedMonitoring/index.vue
index 780dde0f..c314b90f 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/FocusedMonitoring/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/FocusedMonitoring/index.vue
@@ -13,8 +13,11 @@
当前在途车辆
-
4618
-
当前在途车辆
+
+ 0
+ /0
+
+
交通事件
0
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js
index 40f6b3fc..522d3a85 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js
@@ -41,7 +41,14 @@ export const eventMap = {
.get("/system/camera/camList")
// .get("/system/dept/camTreeselect")
.catch(() => ({}));
- // const { code, data } = { code: 200, data: [] };
+ // const { code, data } = {
+ // code: 200,
+ // data: [
+ // {
+ // pileNum: "K55+565",
+ // },
+ // ],
+ // };
if (code != 200) return Message.error("摄像机加载失败!");
@@ -87,7 +94,7 @@ export const eventMap = {
// code: 200,
// data: [
// {
- // pileNum: "K55+0",
+ // stakeMarkId: "K176+167",
// },
// ],
// };
@@ -119,7 +126,7 @@ export const eventMap = {
}
);
- if (noneLocation) Message.warning("匹配到诱导设备位置!");
+ if (noneLocation) Message.warning("未能匹配到诱导设备位置!");
// cacheRemoveFunc.DriveTestEquipment_Camera_Remove?.();
},
};
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 7f14a0fc..f0eb8de0 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
@@ -25,7 +25,7 @@ export async function setMarkerCluster(map, points, markerFun) {
let hasClick = false;
- if (!points.length) Message.warning("匹配到对应坐标点");
+ if (!points.length) Message.warning("未能匹配到对应坐标点");
const markerCluster = new AMap.MarkerCluster(map, points, {
// gridSize: 15,
From b33b98aad13559f96fca8e7993dbb92b945b196b Mon Sep 17 00:00:00 2001
From: Joe <1712833832@qq.com>
Date: Thu, 18 Jan 2024 11:32:51 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9C=B0=E5=9B=BE?=
=?UTF-8?q?=E9=BB=98=E8=AE=A4=E7=BC=A9=E6=94=BE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Home/components/AMapContainer/index.vue | 88 +++++++++----------
1 file changed, 44 insertions(+), 44 deletions(-)
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/AMapContainer/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/AMapContainer/index.vue
index c537e0b4..65ed57fd 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/AMapContainer/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/AMapContainer/index.vue
@@ -46,7 +46,7 @@ export default {
this.aMapIns = new this.AMap.Map(this.$refs.mapContainerRef, {
resizeEnable: true, //是否监控地图容器尺寸变化
mapStyle: "amap://styles/blue",
- zoom: 9,
+ zoom: 7,
center: [116.629514, 35.794168],
});
@@ -105,7 +105,7 @@ export default {
});
//画线
- function drawingLine(AMap, datas, borderWeight = 1,strokeWeight = 0, olColor = "#00B3CC") {
+ function drawingLine(AMap, datas, borderWeight = 1, strokeWeight = 0, olColor = "#00B3CC") {
return new AMap.Polyline({
path: datas,
isOutline: true,
@@ -126,7 +126,7 @@ export default {
//画车道
// let jhPolyline;
- function drawJHPath(AMap, lczPointList,borderWeight = 1,strokeWeight = 60) {
+ function drawJHPath(AMap, lczPointList, borderWeight = 1, strokeWeight = 60) {
return new AMap.Polyline({
path: lczPointList, // 设置线覆盖物路径
showDir: true,
@@ -146,47 +146,47 @@ export default {
//画车道线
function createCanvas() {
- let canvasDir = document.createElement('canvas')
- let width = 150;
- let height = 150;
-
- canvasDir.width = width;
- canvasDir.height = height;
- var context = canvasDir.getContext('2d');
- context.strokeStyle = '#C4C6C7';
- context.lineJoin = 'round';
- context.lineWidth = 5;
-
- //左边实线
- // context.moveTo(5, 0);
- // context.lineTo(5, height);
- //左边虚线
- context.moveTo(35, 0);
- context.lineTo(35, 50);
- context.moveTo(35, 100);
- context.lineTo(35, 150);
- //中间虚线
- context.moveTo(75, 20);
- context.lineTo(75, 70);
- context.moveTo(75, 120);
- context.lineTo(75, 170);
- //右边虚线
- context.moveTo(115, 0);
- context.lineTo(115, 50);
- context.moveTo(115, 100);
- context.lineTo(115, 150);
- //最右侧实线
- // context.moveTo(width - 5, 0);
- // context.lineTo(width - 5, height);
-
- context.stroke();
-
- // 绘制一个填充矩形
- // context.fillStyle = "red";
- // context.fillRect(0, 0, width, height);
-
- return canvasDir;
- }
+ let canvasDir = document.createElement('canvas')
+ let width = 150;
+ let height = 150;
+
+ canvasDir.width = width;
+ canvasDir.height = height;
+ var context = canvasDir.getContext('2d');
+ context.strokeStyle = '#C4C6C7';
+ context.lineJoin = 'round';
+ context.lineWidth = 5;
+
+ //左边实线
+ // context.moveTo(5, 0);
+ // context.lineTo(5, height);
+ //左边虚线
+ context.moveTo(35, 0);
+ context.lineTo(35, 50);
+ context.moveTo(35, 100);
+ context.lineTo(35, 150);
+ //中间虚线
+ context.moveTo(75, 20);
+ context.lineTo(75, 70);
+ context.moveTo(75, 120);
+ context.lineTo(75, 170);
+ //右边虚线
+ context.moveTo(115, 0);
+ context.lineTo(115, 50);
+ context.moveTo(115, 100);
+ context.lineTo(115, 150);
+ //最右侧实线
+ // context.moveTo(width - 5, 0);
+ // context.lineTo(width - 5, height);
+
+ context.stroke();
+
+ // 绘制一个填充矩形
+ // context.fillStyle = "red";
+ // context.fillRect(0, 0, width, height);
+
+ return canvasDir;
+ }
// this.aMapIns.enableAutoResize();
},