From c5669191283faceeab7cbaef240d726036af06a3 Mon Sep 17 00:00:00 2001
From: sgj <1442489573@qq.com>
Date: 星期一, 02 三月 2026 14:28:50 +0800
Subject: [PATCH] 巡检地图改为使用高德地图
---
fzzy-igdss-web/src/main/resources/templates/security/patrol-record.html | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/fzzy-igdss-web/src/main/resources/templates/security/patrol-record.html b/fzzy-igdss-web/src/main/resources/templates/security/patrol-record.html
index 5c14626..5af3551 100644
--- a/fzzy-igdss-web/src/main/resources/templates/security/patrol-record.html
+++ b/fzzy-igdss-web/src/main/resources/templates/security/patrol-record.html
@@ -7,12 +7,18 @@
<th:block th:include="include :: header('宸℃洿璁板綍')"/>
<link rel="stylesheet" type="text/css" th:href="@{/ajax/libs/layui-ruoyi/css/layui.css}"/>
<link rel="stylesheet" th:href="@{/security/patrol-record-style.css}">
- <script type="text/javascript" src="https://api.map.baidu.com/api?v=1.0&type=webgl&ak=R3FfyIEbBAWNckTqRSopHQktdkgp924F"></script>
+ <script type="text/javascript">
+ window._AMapSecurityConfig = {
+ securityJsCode: "1f590b908daf435350b6b4b238fa62eb",
+ };
+ </script>
+ <script type="text/javascript"
+ src="https://webapi.amap.com/maps?v=2.0&key=51d35f2501da9369a8132895cca0fc94"></script>
</head>
<body>
<div class="container-div">
<div class="row">
- <!-- 鐧惧害鍦板浘瀹瑰櫒 -->
+ <!-- 楂樺痉鍦板浘瀹瑰櫒 -->
<div id="map"></div>
<!-- 鍙充晶杞ㄨ抗鍗$墖鎮诞灞� -->
<div class="track-card-panel">
@@ -23,7 +29,8 @@
<!-- 杞ㄨ抗鍗$墖鍒楄〃锛圱hymeleaf寰幆娓叉煋锛� -->
<div th:each="record,stat : ${patrolRecordList}" class="track-card" data-index="${stat.index}">
<div style="margin-bottom: 10px">
- <img style="width: 100%;max-height: 200px;" th:src="${record.imgName ?: '/logo-sm.png'}" th:data-id="${record.id}">
+ <img style="width: 100%;max-height: 200px;" th:src="${record.imgName ?: '/logo-sm.png'}"
+ th:data-id="${record.id}">
</div>
<div class="card-row">
<span class="label">宸� 妫� 浜猴細</span>
@@ -39,13 +46,12 @@
</div>
-
<!-- 寮曞叆Layui JS -->
<th:block th:include="include :: footer"/>
<script th:src="@{/ajax/libs/layui-ruoyi/layui.js}"></script>
<script th:src="@{/security/patrol-record.js}"></script>
-<script th:inline="javascript">
+<script th:inline="javascript">
var patrolRecordList = [[${patrolRecordList}]];
</script>
</body>
-</html>
\ No newline at end of file
+</html>
--
Gitblit v1.9.3