Explorar el Código

功能修改20250303

zhiyuan-007 hace 2 meses
padre
commit
60e1f212b5
Se han modificado 2 ficheros con 10 adiciones y 8 borrados
  1. 2 1
      src/service/map.js
  2. 8 7
      src/views/home/cpns/RoutePlan.vue

+ 2 - 1
src/service/map.js

@@ -71,7 +71,8 @@ export function searchAllPathByPoint(params){
                 params.end
             ],
             "level": 24,
-            "height": params.height,
+            "speed":2,
+            "heightRange": [20,40],
             "radius": 5,
             "isShowGrid": 0,
             "fields": [

+ 8 - 7
src/views/home/cpns/RoutePlan.vue

@@ -255,35 +255,36 @@ function getAutoPath() {
         if (res.data.code == "200") {
           let data = res.data.data;
           allPathArr = [];
-          if(data.pathList_cj_originalPath.length > 0){
+          debugger
+          if(data.shortestPath.path.length > 0){
             allPathArr.push({
               "name": "贴合原路径",
               "type": "polyline",
               "shape":{
                 "radius": 10,
-                "paths": data.pathList_cj_originalPath,
+                "paths": data.shortestPath.path,
                 "color": [0,255,255,0.7]
               }
             })
           }
-          if(data.pathList_cj_safePath.length > 0){
+          if(data.safePath.path.length > 0){
             allPathArr.push({
               "name": "安全路径",
               "type": "polyline",
               "shape":{
                 "radius": 10,
-                "paths": data.pathList_cj_safePath,
+                "paths": data.safePath.path,
                 "color": [255,0,255,0.7]
               }
             })
           }
-          if(data.pathList_cj_shortestPath.length > 0){
+          if(data.originalPath.path.length > 0){
             allPathArr.push({
-              "name": "最短路径",
+              "name": "贴合路径",
               "type": "polyline",
               "shape":{
                 "radius": 10,
-                "paths": data.pathList_cj_shortestPath,
+                "paths": data.originalPath.path,
                 "color": [255,255,0,0.7]
               }
             })