From fff75000a34b23041a19cacbdb62265f36e0e2c3 Mon Sep 17 00:00:00 2001
From: ‘liusuyi’ <1951119284@qq.com>
Date: 星期五, 15 三月 2024 11:12:20 +0800
Subject: [PATCH] 测试

---
 ard-work/src/main/resources/templates/test.html |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/ard-work/src/main/resources/templates/test.html b/ard-work/src/main/resources/templates/test.html
index 38e86f4..53fbf60 100644
--- a/ard-work/src/main/resources/templates/test.html
+++ b/ard-work/src/main/resources/templates/test.html
@@ -406,12 +406,13 @@
         var camera = cameraMap.get(cameraId);
         var camP = camera.longitude + ',' + camera.latitude + ',' + camera.altitude;
         var targetP = $('#targetPostion').val();
+        var arr = targetP.split(",");
+        arr = arr.map(item => parseFloat(item));
         //瀹氫箟涓�涓甫鏈塎ap瀛楁鐨勫疄浣撳璞�
         var myEntity = {
             chanNo: 1,
             cameraId: cameraId,
-            targetPosition: targetP,
-            camPosition: camP,
+            targetPosition: arr
         };
         console.log(myEntity)
         $.ajax({
@@ -1057,4 +1058,4 @@
     }
 </script>
 </body>
-</html>
\ No newline at end of file
+</html>

--
Gitblit v1.9.3