From 27f63c34e229f6188400a93d246967c1b4dcb9e2 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Thu, 22 Jan 2026 10:31:24 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 applications/drone-command/src/views/detectionCountermeasure/detectionRange/DetectionRangeDialog.vue |   30 +++++++++++++++++++++++-------
 1 files changed, 23 insertions(+), 7 deletions(-)

diff --git a/applications/drone-command/src/views/detectionCountermeasure/detectionRange/DetectionRangeDialog.vue b/applications/drone-command/src/views/detectionCountermeasure/detectionRange/DetectionRangeDialog.vue
index 457bf65..31337cb 100644
--- a/applications/drone-command/src/views/detectionCountermeasure/detectionRange/DetectionRangeDialog.vue
+++ b/applications/drone-command/src/views/detectionCountermeasure/detectionRange/DetectionRangeDialog.vue
@@ -21,9 +21,13 @@
 			</div>
 
 			<div class="right-container">
-				<div class="header">{{ formTitle }}</div>
+				<div class="header">
+					<span>{{ formTitle }}</span>
+				
+					<el-icon class="close-btn" @click.stop="visible = false"><Close /></el-icon>
+				</div>
 
-				<div class="dialog-container" v-if="dialogReadonly">
+				<div class="content" v-if="dialogReadonly">
 					<el-row>
 						<el-col :span="24">
 							<div class="label">侦测设备</div>
@@ -31,7 +35,7 @@
 						</el-col>
 						<el-col :span="24">
 							<div class="label">设备类型</div>
-							<div class="val">{{ getDeviceTypeLabel(formData.deviceType) }}</div>
+							<div class="val">{{ getDictLabel(formData.deviceType, dictObj.deviceType) }}</div>
 						</el-col>
 						<el-col :span="24">
 							<div class="label">设备位置</div>
@@ -59,6 +63,7 @@
 							popper-class="command-select-popper"
 							v-model="formData.deviceId"
 							placeholder="请选择"
+							:disabled="dialogMode === 'edit'"
 							clearable
 							@change="handleDeviceChange"
 						>
@@ -70,6 +75,7 @@
 							class="command-select"
 							popper-class="command-select-popper"
 							v-model="formData.deviceType"
+							disabled
 							placeholder="请选择"
 							clearable
 						>
@@ -97,6 +103,7 @@
 						<el-input
 							class="command-input"
 							v-model="formData.deviceSn"
+							disabled
 							placeholder="请输入"
 							clearable
 						/>
@@ -105,6 +112,7 @@
 						<el-input
 							class="command-input"
 							v-model="formData.deviceModel"
+							disabled
 							placeholder="请输入"
 							clearable
 						/>
@@ -139,6 +147,10 @@
 </template>
 
 <script setup>
+import { getDictLabel } from '@ztzf/utils'
+
+import { Close } from '@element-plus/icons-vue'
+
 import { computed, inject, nextTick, ref, watch } from 'vue'
 import { ElMessage } from 'element-plus'
 import {
@@ -149,7 +161,7 @@
 import CommonCesiumMap from '@/components/map-container/common-cesium-map.vue'
 import * as Cesium from 'cesium'
 
-import commandPost from '@/assets/images/dataCockpit/legend/command-post.png'
+import equipment from '@/assets/images/dataCockpit/legend/equipment.png'
 
 const initForm = () => ({
 	deviceId: '', // 侦测设备ID
@@ -226,10 +238,14 @@
 	if (!isValid) return
 	submitting.value = true
 	try {
+		const {longitude, latitude} = parseDeployLocation(formData.value.deployLocation)
+
 		const payload = {
-			...formData.value,
 			id: formData.value.id || formData.value.deviceId || undefined,
 			effectiveRangeKmIsNotNull: formData.value.effectiveRangeKm ? 1 : 2,
+			effectiveRangeKm: formData.value.effectiveRangeKm,
+			longitude,
+			latitude
 		}
 		delete payload.deviceId
 		await detectionRangeSubmitApi(payload)
@@ -277,7 +293,7 @@
 		redPointEntity = viewer.entities.add({
 			position: Cesium.Cartesian3.fromDegrees(longitude, latitude),
 			billboard: {
-				image: commandPost, // 这里替换为你的图片路径或变量 deviceZcImg
+				image: equipment, // 这里替换为你的图片路径或变量 deviceZcImg
 				width: 40,
 				height: 56,
 				verticalOrigin: Cesium.VerticalOrigin.BOTTOM, // 设置图片底部对齐坐标点
@@ -286,7 +302,7 @@
 				text: `${longitude.toFixed(6)}, ${latitude.toFixed(6)}`,
 				font: '16px',
 				fillColor: Cesium.Color.WHITE,
-				backgroundColor: Cesium.Color.BLACK.withAlpha(0.45),
+				backgroundColor: Cesium.Color.BLACK.withAlpha(0.6),
 				backgroundPadding: new Cesium.Cartesian2(5, 5),
 				showBackground: true,
 				style: Cesium.LabelStyle.FILL_AND_OUTLINE,

--
Gitblit v1.9.3