Browse Source

功能修改20250322-01

zhiyuan-007 1 week ago
parent
commit
925b64b338
5 changed files with 13 additions and 10 deletions
  1. 1 1
      .env.production
  2. 2 2
      src/components/MapView.vue
  3. 1 1
      src/store/layout.js
  4. 8 5
      src/views/home/cpns/PanelHxhs.vue
  5. 1 1
      vite.config.js

+ 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.41:9250/low-altitude/'
+VITE_NET_API = 'http://172.16.8.44:9250/low-altitude/'
 
 VITE_ZW_API = 'http://10.90.9.143:9252/'

+ 2 - 2
src/components/MapView.vue

@@ -25,9 +25,9 @@ export default {
 			}, 2500)
 			myBridge.bridgeContent = bridge = new CityGis.Bridge({
 				id: 'i_map',
-				// url: 'http://localhost:5173/map-tool-widget/',
+				url: 'http://localhost:5173/map-tool-widget/',
 				// url: 'https://cimweb.zjw.sh.cegn.cn:2007/map-tool-widget/#/',
-				url: 'http://172.16.8.41:9250/map-tool-widget/#/jk_map',
+				// url: 'http://172.16.8.44:9250/map-tool-widget/#/jk_map',
 				onReady: function () {
 					console.log('地图创建完成')
 				},

+ 1 - 1
src/store/layout.js

@@ -18,7 +18,7 @@ const useLayoutStore = defineStore('layout', {
 		leftCollapse: false, // 左侧面板收缩状态
 		rightCollapse: false, // 左侧面板收缩状态
 		footerCollapse: false, // 底部收缩状态
-		sceneType: 'ue', // 场景类型 'ue' | 'gis'
+		sceneType: 'gis', // 场景类型 'ue' | 'gis'
 		mapScene: 'rs', // 底图类型 'light' | 'dark' | 'rs'
 		leftPanelType: 'default', // 左侧面板显示的内容
 		floatPanels: {

+ 8 - 5
src/views/home/cpns/PanelHxhs.vue

@@ -782,8 +782,9 @@ function showAllPathByType() {
 }
 
 function getDrawGeometry() {
+	debugger
 	if (mapStore.draw_geometry) {
-		if (autoHeight) {
+		if (currentStep.value == 0) {
 			let path = mapStore.draw_geometry.paths[0]
 			let flyPathArr = [path[0]]
 			path.forEach((item) => {
@@ -791,10 +792,12 @@ function getDrawGeometry() {
 			})
 			flyPathArr.push([path[path.length - 1][0], path[path.length - 1][1], 0])
 			hasDraw.value = true
-			showAndRedrawPath({
-				status: 'show',
-				path: flyPathArr,
-			})
+			if (autoHeight) {
+				showAndRedrawPath({
+					status: 'show',
+					path: flyPathArr,
+				})
+			}
 			autoHeight = false
 			currentPath = flyPathArr
 		} else {

+ 1 - 1
vite.config.js

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