From 405664b871724f17eb5c449dd3dff7b45ceb7391 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 22 Jan 2026 09:43:00 +0800
Subject: [PATCH] feat:侦测范围管理,新增、查看、编辑完善
---
applications/drone-command/src/views/detectionCountermeasure/detectionRange/DetectionRangeDialog.vue | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/applications/drone-command/src/views/detectionCountermeasure/detectionRange/DetectionRangeDialog.vue b/applications/drone-command/src/views/detectionCountermeasure/detectionRange/DetectionRangeDialog.vue
index 6a2eb39..a7d9456 100644
--- a/applications/drone-command/src/views/detectionCountermeasure/detectionRange/DetectionRangeDialog.vue
+++ b/applications/drone-command/src/views/detectionCountermeasure/detectionRange/DetectionRangeDialog.vue
@@ -35,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>
@@ -63,6 +63,7 @@
popper-class="command-select-popper"
v-model="formData.deviceId"
placeholder="请选择"
+ :disabled="dialogMode === 'edit'"
clearable
@change="handleDeviceChange"
>
@@ -146,6 +147,8 @@
</template>
<script setup>
+import { getDictLabel } from '@ztzf/utils'
+
import { Close } from '@element-plus/icons-vue'
import { computed, inject, nextTick, ref, watch } from 'vue'
@@ -158,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
@@ -235,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)
@@ -286,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, // 设置图片底部对齐坐标点
--
Gitblit v1.9.3