Browse Source

功能修改20250403-01限高修改

zhiyuan-007 1 day ago
parent
commit
725768c5b2

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

@@ -73,6 +73,31 @@ export function AddYaoganMapLayer(visible) {
 	})
 }
 
+export function LimitHeightAnalysis() {
+	invokeParams('AddYaoGanLayer', {
+		status: 'show',
+		layerId: 'WhiteMold',
+		limitH: 30,
+		maxLimitH: 50,
+		rings: [
+			[5247.157017153374, 1270.0023461957703, 0],
+			[4336.760437624776, 1266.8009572542537, 0],
+			[3491.5636610067518, 1259.1626394806458, 0],
+			[2936.531521888444, 1110.645927011667, 0],
+			[2374.838356876977, 813.8209338083046, 0],
+			[2203.756572715624, 557.0385520252402, 0],
+			[2236.8693873322263, 298.6578417857288, 0],
+			[2623.475887507855, -94.53847230161708, -4.547473508864641e-13],
+			[3050.6804353369535, -481.69651302570674, 4.547473508864641e-13],
+			[3479.696719634885, -1045.8470428289725, 0],
+			[4229.590273863496, -700.3542445387985, 0],
+			[5037.960178306457, -386.92470877155085, 0],
+			[5931.864847386253, -46.32862144039693, 0],
+			[5505.553990112907, 838.9373631601887, 0],
+		],
+	})
+}
+
 export function showLayersWithScaleEvents(params) {
 	invokeParams('ShowLayersWithScaleEvents', {
 		status: params.status ? 'show' : 'hide',

+ 5 - 0
src/views/home/Home.vue

@@ -14,6 +14,10 @@
 		</div>
 		<!-- 工具栏 -->
 		<ToolList />
+		<!-- 空域分层 -->
+		<Transition name="emerge-left">
+			<FloatPanelFcky v-if="layoutStore.floatPanels.fcky" />
+		</Transition>
 	</div>
 </template>
 
@@ -24,6 +28,7 @@ import useLayoutStore from '@/store/layout'
 import PanelSgzy from './cpns/PanelSgzy.vue'
 import PanelKypm from './cpns/PanelKypm.vue'
 import PanelSjwg from './cpns/PanelSjwg.vue'
+import FloatPanelFcky from '@/views/home/cpns/FloatPanelFcky.vue'
 
 const layoutStore = useLayoutStore()
 

+ 6 - 6
src/views/home/cpns/FloatPanelFcky.vue

@@ -10,12 +10,12 @@
 			</h2>
 
 			<el-form v-model="form" class="form-top mt-3" label-position="left">
-				<el-form-item label="分层范围" prop="rangeType">
-					<el-radio-group v-model="form.rangeType" @change="handleRangeChange">
-						<el-radio label="行政区划" value="行政区划" />
-						<el-radio label="自定义绘制" value="自定义绘制" />
-					</el-radio-group>
-				</el-form-item>
+				<!--				<el-form-item label="分层范围" prop="rangeType">-->
+				<!--					<el-radio-group v-model="form.rangeType" @change="handleRangeChange">-->
+				<!--						<el-radio label="行政区划" value="行政区划" />-->
+				<!--						<el-radio label="自定义绘制" value="自定义绘制" />-->
+				<!--					</el-radio-group>-->
+				<!--				</el-form-item>-->
 				<el-form-item label="绘制/选择" prop="range">
 					<el-button v-if="form.rangeType === '自定义绘制'" @click="handleDraw" class="btn-secondary small"
 						>绘制</el-button

+ 1 - 0
src/views/home/cpns/ToolList.vue

@@ -56,6 +56,7 @@ const toolsData = ref([
 		showSub: false,
 		children: [{ id: 'sgzy', name: '网格查询', active: false, leftPanel: true }],
 	},
+	{ id: 'fcky', name: '分层空域', icon: 'tool-fcky', active: false },
 	{ id: 'tsjs', name: '态势监视', icon: 'tool-tsjs', active: false },
 ])