| | |
| | | <CurrentTaskDetails |
| | | v-if="isShowCurrentTaskDetails" |
| | | v-model:show="isShowCurrentTaskDetails" |
| | | :id="currentTaskDetailsId" |
| | | :id="rowData.id" |
| | | /> |
| | | <!-- 历史任务详情 --> |
| | | <DeviceJobDetails |
| | | v-if="deviceJobDetailsShow" |
| | | v-model:show="deviceJobDetailsShow" |
| | | :wayLineJodInfoId="wayLineJodInfoId" |
| | | v-if="isShowDeviceJobDetails" |
| | | v-model:show="isShowDeviceJobDetails" |
| | | :wayLineJodInfoId="rowData.id" |
| | | /> |
| | | </template> |
| | | <script setup> |
| | |
| | | import { getMultipleDictionary } from '@/api/system/dictbiz' |
| | | import CurrentTaskDetails from '@/components/CurrentTaskDetails/CurrentTaskDetails.vue' |
| | | import DeviceJobDetails from '@/components/DeviceJobDetails/DeviceJobDetails.vue' |
| | | import { ElMessage } from 'element-plus' |
| | | const isShowDetailsDialog = defineModel('show') |
| | | const dateRange = ref('') |
| | | const searchForm = reactive({ |
| | |
| | | } |
| | | // 查看 |
| | | const isShowCurrentTaskDetails = ref(false) |
| | | const currentTaskDetailsId = ref(null) |
| | | const deviceJobDetailsShow = ref(false) |
| | | const wayLineJodInfoId = ref(null) |
| | | const isShowDeviceJobDetails = ref(false) |
| | | let rowData = ref({}); |
| | | const viewDetail = row => { |
| | | if (row.status === 1 || row.status === 2) { |
| | | currentTaskDetailsId.value = row.id |
| | | isShowCurrentTaskDetails.value = true |
| | | } |
| | | if (row.status === 3 || row.status === 5) { |
| | | wayLineJodInfoId.value = row.id |
| | | deviceJobDetailsShow.value = true |
| | | if (!row.device_sns.length) return ElMessage.warning('没有device_sns'); |
| | | if (row.device_sns.length !== 1) return ElMessage.success('即将跳转到集群调度'); |
| | | rowData.value = row? row : {}; |
| | | if (row.status === 2 || row.status === 1){ |
| | | isShowCurrentTaskDetails.value = true; |
| | | } else{ |
| | | isShowDeviceJobDetails.value = true |
| | | } |
| | | } |
| | | onMounted(() => { |