From b51a317c7c3db9757317f34902fe869caae130b9 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Tue, 09 Dec 2025 17:54:40 +0800
Subject: [PATCH] feat:更新任务管理详情任务
---
src/views/RoutePlan/PointAirLine/pointWayLineUtils.js | 21 ++++++++++++++++++++-
1 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/src/views/RoutePlan/PointAirLine/pointWayLineUtils.js b/src/views/RoutePlan/PointAirLine/pointWayLineUtils.js
index 5aa3759..bbc8505 100644
--- a/src/views/RoutePlan/PointAirLine/pointWayLineUtils.js
+++ b/src/views/RoutePlan/PointAirLine/pointWayLineUtils.js
@@ -6,7 +6,7 @@
import _, { cloneDeep, throttle } from 'lodash'
import * as turf from '@turf/turf'
import { DRONE_LIST } from '@/const/device'
-import { cameraModeList } from '@/const/drc'
+import { cameraModeList, pointEventList } from '@/const/drc'
import { getCameraInfoApi } from '@/api/payload'
import takeoffImg from '@/assets/images/routePlan/pointAirLine/takeoff.svg'
import { cartesian3Convert } from '@/utils/cesium/mapUtil'
@@ -147,6 +147,25 @@
}
}
+// 获取寻找的事件
+export function getFindAction(action) {
+ let find = pointEventList.find(item => item.key === action?.action_actuator_func)
+ if (find?.key === 'searchlight') {
+ const { val: typeVal } = actionHasKey(action, 'searchlight_operate_type')
+ const list = ['关闭探照灯', '照明', '爆闪']
+ find = find.children.find(item => item.label === list?.[typeVal])
+ }
+ if (find?.key === 'megaphone') {
+ const { val: typeVal } = actionHasKey(action, 'megaphone_operate_type')
+ const list = ['开始喊话', '结束喊话']
+ find = _.cloneDeep(find.children.find(item => item.label === list?.[typeVal]))
+ if (list?.[typeVal] === '开始喊话' && !action?.action_actuator_func_param?.megaphone_file_md5 && find) {
+ find.label = '未选择喊话文件'
+ }
+ }
+ return find
+}
+
// 处理保存参数
export function handleSaveParams ({ pointList, startPoint, globalSettings }) {
--
Gitblit v1.9.3