ソースを参照

功能修改2025032-01

zhiyuan-007 1 ヶ月 前
コミット
c778e2075d
2 ファイル変更11 行追加6 行削除
  1. 1 3
      src/components/MapView.vue
  2. 10 3
      src/views/home/cpns/PanelHxhs.vue

+ 1 - 3
src/components/MapView.vue

@@ -26,10 +26,8 @@ export default {
 			myBridge.bridgeContent = bridge = new CityGis.Bridge({
 				id: 'i_map',
 				url: 'http://localhost:5173/map-tool-widget/',
-				// url: 'http://10.1.163.210:5173/map-tool-widget/#/jk_map',
-				// url: 'http://58.34.215.19:8100/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.41:9250/map-tool-widget/#/jk_map',
 				onReady: function () {
 					console.log('地图创建完成')
 				},

+ 10 - 3
src/views/home/cpns/PanelHxhs.vue

@@ -593,9 +593,17 @@ function showOriginPath() {
 }
 
 function handleInspect(level) {
+	let tempPath = []
+	currentPath.forEach((item) => {
+		tempPath.push({
+			x: item[0],
+			y: item[1],
+			z: item[2],
+		})
+	})
 	const params = {
-		paths: [currentPath],
-		radius: '10',
+		paths: tempPath,
+		radius: 5,
 		level,
 	}
 	getInspectionData(params, 'polyline')
@@ -617,7 +625,6 @@ function queryCube() {
 		status: 'show',
 		paths: [currentPath],
 	})
-	handleInspect('23')
 }
 
 //查询网格