limeng пре 4 година
родитељ
комит
0f87487714

+ 7 - 14
mybusiness/src/main/resources/templates/business/manager/stationfiremanager/detail.html

@@ -7,13 +7,6 @@
     <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
 </head>
 <body style=" margin: 0;overflow: hidden;background: #000033;width: 100%;height:100%;position: absolute;top: 0;">
-<input type="text" th:value="${id}"/>
-<input type="text" th:value="${name}"/>
-<input type="text" th:value="${latitude}"/>
-<input type="text" th:value="${longitude}"/>
-<input type="text" th:value="${contactUser}"/>
-<input type="text" th:value="${contactPhone}"/>
-<input type="text" th:value="${address}"/>
 <div id="map" style="margin:0 auto;width: 100%;height: 100%;background: none;"></div>
 <script th:src="@{/js/jquery.min.js}"></script>
 <script th:src="@{/js/bootstrap.min.js}"></script>
@@ -50,13 +43,13 @@
 <script>
     $(function(){
         let json = {
-            id:"[[${id}]]",
-            name:"[[${name}]]",
-            latitude:"[[${latitude}]]",
-            longitude:"[[${longitude}]]",
-            contact_USER:"[[${contactUser}]]",
-            contact_PHONE:"[[${contactPhone}]]",
-            address:"[[${address}]]"
+            id:"[[${tResStationfire.id}]]",
+            name:"[[${tResStationfire.name}]]",
+            latitude:"[[${tResStationfire.latitude}]]",
+            longitude:"[[${tResStationfire.longitude}]]",
+            contact_USER:"[[${tResStationfire.contactUser}]]",
+            contact_PHONE:"[[${tResStationfire.contactPhone}]]",
+            address:"[[${tResStationfire.address}]]"
         };
         console.log(json);
         jczMarker(json);