Browse Source

巡检调整

liangluogis 1 year ago
parent
commit
1556d5094c

+ 1 - 1
src/utils/request.js

@@ -22,7 +22,7 @@ export const IP = tempIP;
 // export const IP=tempIP
 // export const NewIp = 'http://58.17.241.6:1212'
 const service = axios.create({
-  baseURL: tempIP,
+  // baseURL: tempIP,
   // baseURL:"",
   withCredentials: true, // 跨域请求时发送cookiesokies
   timeout: 60000 // 请求超时

+ 2 - 2
src/views/zhpt/xjDayilyManagement/xjPlanForMission/model.js

@@ -2646,8 +2646,8 @@ export default {
           data.pointTempList.push({
             'inspectTypeId': currentData.typeId,
             'layerName': currentData.layerName,
-            'lat': item.geometry.paths[0][1][0],
-            'lng': item.geometry.paths[0][1][1],
+            'lat': item.geometry.paths[0][1][1],
+            'lng': item.geometry.paths[0][1][0],
             'pipeLength': listitem.pipelength,
             'geometry': JSON.stringify({
               paths: item.geometry.paths,