zhiyuan-007 1 hete
szülő
commit
710e265259

+ 1 - 1
.env.production

@@ -2,6 +2,6 @@ VITE_BASE_API='https://cimweb.zjw.sh.cegn.cn:2007/data-business-prod/'
 
 VITE_OPEN_API='https://cimweb.zjw.sh.cegn.cn:2008/'
 
-VITE_NET_API = 'http://172.16.8.44:8250/low-altitude/'
+VITE_NET_API = 'http://192.168.2.137:9251/low-altitude/'
 
 VITE_ZW_API = 'http://10.90.9.143:9252/'

+ 1 - 1
src/components/MapView.vue

@@ -28,7 +28,7 @@ export default {
 				// url: 'http://localhost:5173/map-tool-widget/',
 				// url: 'https://cimweb.zjw.sh.cegn.cn:2007/map-tool-widget/#/',
 				// url: 'http://172.16.8.44:9250/map-tool-widget/#/jk_map',
-				url: 'http://172.16.8.44:8250/map-tool-widget/#/jk_map',
+				url: 'http://192.168.2.137:9251/map-tool-widget/#/jk_map',
 
 				onReady: function () {
 					console.log('地图创建完成')

+ 2 - 2
src/data/resources.json

@@ -3,7 +3,7 @@
     "title": "全市白模",
     "D_CODE": "D85030103202409",
     "id": "D8503010320240901",
-    "url": "https://gisser.china-gis.com/geoserver/rest/services/Hosted/WT_BM/SceneServer",
+    "url": "https://192.168.2.140:6443/geoscene/rest/services/WT_BM/SceneServer",
     "visible": false,
     "opacity": 1,
     "type": "scene"
@@ -12,7 +12,7 @@
     "title": "影像底图",
     "D_CODE": "50115036",
     "id": "50115036",
-    "url": "https://gisser.china-gis.com/geoserver/rest/services/Hosted/WT_HP/MapServer",
+    "url": "https://192.168.2.140:6443/geoscene/rest/services/WT_HP/MapServer",
     "visible": false,
     "opacity": 1,
     "type": "tile"

+ 11 - 25
src/utils/map/addLayer.js

@@ -5,15 +5,11 @@ import useLayoutStore from '@/store/layout.js'
 
 export function invokeParams(ActionName, params) {
 	console.log('invokeParams', ActionName, params)
-	getMapToken().then((res) => {
-		let token = res.data.msg[0].Rows[0].token
-		myBridge.bridgeContent.Invoke({
-			ActionName: ActionName,
-			Parameters: {
-				token: token,
-				...params,
-			},
-		})
+	myBridge.bridgeContent.Invoke({
+		ActionName: ActionName,
+		Parameters: {
+			...params,
+		},
 	})
 }
 
@@ -52,46 +48,36 @@ export function importantAreaPosition(x, y, z, heading, tilt, isfly = true) {
 }
 
 export async function AddBaseMapLayer() {
-	let url = await returnProxyUrl('https://cimweb.zjw.sh.cegn.cn:2008/MapProxyApi/getSceneServer/ptgl/93493321')
+	//let url = await returnProxyUrl('https://192.168.2.140:6443/geoscene/rest/services/JC_dark/MapServer')
 	invokeParams('AddBaseMapLayer', {
 		id: 'BaseMap',
 		title: 'BaseMap',
 		visible: true,
 		opacity: 1,
-		url,
-	})
-	invokeParams('AddSingleLayer', {
-		id: 'BaseMapCSJYaoGan',
-		visible: false,
+		url: 'https://192.168.2.140:6443/geoscene/rest/services/JC_dark/MapServer',
 	})
-	showLayersWithScaleEvents({ status: 'hide' })
 }
 
 export async function AddZhenwuMapLayer() {
-	let url = await returnProxyUrl('https://cimweb.zjw.sh.cegn.cn:2008/MapProxyApi/getSceneServer/ptgl/37072265')
+	//let url = await returnProxyUrl('https://cimweb.zjw.sh.cegn.cn:2008/MapProxyApi/getSceneServer/ptgl/37072265')
 	invokeParams('AddBaseMapLayer', {
 		id: 'BaseMapZhenwu',
 		title: 'BaseMapZhenwu',
 		visible: true,
 		opacity: 1,
-		url,
-	})
-	invokeParams('AddSingleLayer', {
-		id: 'BaseMapCSJYaoGan',
-		visible: false,
+		url: 'https://192.168.2.140:6443/geoscene/rest/services/JC_white/MapServer',
 	})
-	showLayersWithScaleEvents({ status: 'hide' })
 }
 
 export async function AddYaoganMapLayer() {
-	let url = 'https://gisser.china-gis.com/geoserver/rest/services/Hosted/WT_HP/MapServer'
+	//let url = 'https://gisser.china-gis.com/geoserver/rest/services/Hosted/WT_HP/MapServer'
 	invokeParams('AddBaseMapLayer', {
 		id: 'BaseMapYaoGan',
 		title: 'BaseMapYaoGan',
 		visible: true,
 		opacity: 1,
 		type: 'tile',
-		url,
+		url: 'https://192.168.2.140:6443/geoscene/rest/services/WT_HP/MapServer',
 	})
 }
 

+ 5 - 9
src/utils/map/addTool.js

@@ -3,15 +3,11 @@ import { getMapToken, getServiceToken } from '@/service/map.js'
 
 export function invokeParams(ActionName, params) {
 	console.log('invokeParams', ActionName, params)
-	getMapToken().then((res) => {
-		let token = res.data.msg[0].Rows[0].token
-		myBridge.bridgeContent.Invoke({
-			ActionName: ActionName,
-			Parameters: {
-				token: token,
-				...params,
-			},
-		})
+	myBridge.bridgeContent.Invoke({
+		ActionName: ActionName,
+		Parameters: {
+			...params,
+		},
 	})
 }
 

BIN
uav_manage.zip


+ 1 - 1
vite.config.js

@@ -33,7 +33,7 @@ export default defineConfig({
 			},
 			'/netapi': {
 				// 代理请求之后的请求地址(你的真实接口地址)
-				target: 'http://172.16.8.44:8250/low-altitude/',
+				target: 'http://192.168.2.137:9251/low-altitude/',
 				//target: 'http://localhost:9250/',
 				secure: false,
 				ws: true,