forked from drone/command-center-dashboard

罗广辉
2025-04-03 649f78a9f068e7e6ea7408f1f39a9e0a46d09048
feat: 历史任务详情关联的事件列表
3 files modified
31 ■■■■■ changed files
src/views/SignMachineNest/MachineRight/MachineTableDetails/DeviceJob/DeviceJob.vue 6 ●●●● patch | view | raw | blame | history
src/views/SignMachineNest/MachineRight/MachineTableDetails/DeviceJob/DeviceJobDetails/DeviceJobDetails.vue 3 ●●●● patch | view | raw | blame | history
src/views/SignMachineNest/MachineRight/MachineTableDetails/DeviceJob/DeviceJobDetails/JobRelatedEvents.vue 22 ●●●● patch | view | raw | blame | history
src/views/SignMachineNest/MachineRight/MachineTableDetails/DeviceJob/DeviceJob.vue
@@ -47,10 +47,10 @@
const device_sn = computed(() => store.state.home.singleUavHome.device_sn)
const total = ref(0)
const deviceJobDetailsShow = ref(false)
const jobId = ref(null)
provide('jobId', jobId)
const wayLineJodInfoId = ref(null)
provide('wayLineJodInfoId', wayLineJodInfoId)
const viewJob = (row) => {
  jobId.value = row.id
  wayLineJodInfoId.value = row.id
  deviceJobDetailsShow.value = true
}
src/views/SignMachineNest/MachineRight/MachineTableDetails/DeviceJob/DeviceJobDetails/DeviceJobDetails.vue
@@ -1,7 +1,7 @@
<!-- 任务详情 -->
<template>
    <el-dialog
        append-to-body
    append-to-body
        modal-class="detailsOfHistoricalTasks"
        v-model="isShow"
        title="历史任务详情"
@@ -56,7 +56,6 @@
    { name: '任务描述', value: 'xxx' },
])
onMounted(() => {})
</script>
<style lang="scss">
src/views/SignMachineNest/MachineRight/MachineTableDetails/DeviceJob/DeviceJobDetails/JobRelatedEvents.vue
@@ -40,22 +40,10 @@
import { getDeviceEventList } from '@/api/home/machineNest'
import { ElMessage } from 'element-plus';
const jobId = inject("jobId");
const list = ref([
  {event_num:''},
  {event_num:''},
  {event_num:''},
  {event_num:''},
  {event_num:''},
  {event_num:''},
  {event_num:''},
  {event_num:''},
  {event_num:''},
  {event_num:''},
])
const list = ref()
const params = ref({
    device_sn: null,
  wayLineJodInfoId:null
})
const sizeParams = ref({
    current: 1,
@@ -71,9 +59,10 @@
const examine = row => {
  ElMessage.warning('正在加急开发中...')
}
const wayLineJodInfoId = inject("wayLineJodInfoId");
const getList = () => {
    params.value.device_sn = child_sn.value
    params.value.wayLineJodInfoId = wayLineJodInfoId.value
    getDeviceEventList(params.value, sizeParams.value).then(res => {
        const resData = res?.data?.data || {}
        list.value = resData.records
@@ -86,7 +75,8 @@
}
onMounted(() => {
    // getList()
  console.log(66);
    getList()
})
</script>
<style scoped lang="scss"></style>