| | |
| | | // 任务成果 |
| | | const total = ref(0) |
| | | const achievementList = ref([]) |
| | | const props = defineProps(['wayLineJodInfoId', 'waylineJobId', 'batchNo','jobId']) |
| | | const wayLineJodInfoId = computed(() => props.wayLineJodInfoId) |
| | | provide('wayLineJodInfoId', wayLineJodInfoId) |
| | | const props = defineProps(['wayLineJobInfoId', 'waylineJobId', 'batchNo','jobId']) |
| | | const wayLineJobInfoId = computed(() => props.wayLineJobInfoId) |
| | | provide('wayLineJobInfoId', wayLineJobInfoId) |
| | | // 可见数量 |
| | | const visibleCount = computed(() => |
| | | showAll.value ? achievementList.value.length : Math.min(5, achievementList.value.length) |
| | |
| | | const flightEvents = ref([]) |
| | | const jobTimes = ref([]) |
| | | const getDetails = () => { |
| | | const params = { |
| | | wayLineJobInfoId: props.wayLineJodInfoId, |
| | | waylineJobId: props.waylineJobId, |
| | | batchNo: props.batchNo |
| | | } |
| | | getJobDetails(params).then(res => { |
| | | detailsData.value = res.data.data |
| | | jobTimes.value = res.data.data.job_times |
| | | infoList.value.forEach(item => { |
| | | if (item.name === '任务频次') { |
| | | const { rep_rule_type = '', rep_rule_val = '' } = detailsData?.value || {} |
| | | item.value = rep_rule_type + ' -- ' + rep_rule_val |
| | | } else { |
| | | item.value = detailsData.value?.[item.field] || '--' |
| | | } |
| | | if (item.name === '飞行事件') { |
| | | const { action_modes = [] } = detailsData?.value || {} |
| | | flightEvents.value = action_modes.flatMap(({ actionActuatorFunc }) => |
| | | droneEventList.filter(({ value }) => actionActuatorFunc === value) |
| | | ) |
| | | } |
| | | const params = { |
| | | wayLineJobInfoId: props.wayLineJobInfoId, |
| | | waylineJobId: props.waylineJobId, |
| | | batchNo: props.batchNo |
| | | } |
| | | getJobDetails(params).then(res => { |
| | | detailsData.value = res.data.data |
| | | jobTimes.value = res.data.data.job_times |
| | | infoList.value.forEach(item => { |
| | | if (item.name === '任务频次') { |
| | | const { rep_rule_type = '',final_cycle_frequency = '' } = detailsData?.value || {} |
| | | item.value = rep_rule_type ? final_cycle_frequency : '1次' |
| | | } else { |
| | | item.value = detailsData.value?.[item.field] || '--' |
| | | } |
| | | if (item.name === '飞行事件') { |
| | | const { action_modes = [] } = detailsData?.value || {} |
| | | flightEvents.value = action_modes.flatMap(({ actionActuatorFunc }) => |
| | | droneEventList.filter(({ value }) => actionActuatorFunc === value) |
| | | ) |
| | | } |
| | | if (item.name === '自定义识别区') { |
| | | item.value = res.data.data.enable_custom_area ? '是': '否' |
| | | } |