From 93fd50d4705b441125a05439b20a8531a2e453f7 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Wed, 10 Dec 2025 09:05:15 +0800
Subject: [PATCH] Merge branch 'refs/heads/feature/v9.0/9.0.1' into feature/v9.0/9.0.2

---
 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