Browse Source

地图 提交

wangqin
Joe 10 months ago
parent
commit
5dd8ad6edf
  1. 7
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/FocusedMonitoring/index.vue
  2. 13
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js
  3. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js

7
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/FocusedMonitoring/index.vue

@ -13,8 +13,11 @@
<div>当前在途车辆</div> <div>当前在途车辆</div>
</div> </div>
<div class="monitor-item"> <div class="monitor-item">
<span>4618</span> <div>
<div>当前在途车辆</div> <span class="abnormal">0</span>
<span>/0</span>
</div>
<div>交通事件</div>
</div> </div>
<div class="monitor-item"> <div class="monitor-item">
<span>0</span> <span>0</span>

13
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/camera/camList")
// .get("/system/dept/camTreeselect") // .get("/system/dept/camTreeselect")
.catch(() => ({})); .catch(() => ({}));
// const { code, data } = { code: 200, data: [] }; // const { code, data } = {
// code: 200,
// data: [
// {
// pileNum: "K55+565",
// },
// ],
// };
if (code != 200) return Message.error("摄像机加载失败!"); if (code != 200) return Message.error("摄像机加载失败!");
@ -87,7 +94,7 @@ export const eventMap = {
// code: 200, // code: 200,
// data: [ // 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?.(); // cacheRemoveFunc.DriveTestEquipment_Camera_Remove?.();
}, },
}; };

2
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; let hasClick = false;
if (!points.length) Message.warning("匹配到对应坐标点"); if (!points.length) Message.warning("未能匹配到对应坐标点");
const markerCluster = new AMap.MarkerCluster(map, points, { const markerCluster = new AMap.MarkerCluster(map, points, {
// gridSize: 15, // gridSize: 15,

Loading…
Cancel
Save