| | |
| | | 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' |
| | |
| | | } |
| | | } |
| | | |
| | | // 获取寻找的事件 |
| | | 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 }) { |