| | |
| | | import { useI18n } from 'vue-i18n' |
| | | import { useRouter, useRoute } from "vue-router" |
| | | import request from "@/utils/request" |
| | | import { host, WebSocketHost } from '@/utils/constants' |
| | | import { onBeforeUnmount, onMounted, onUnmounted, reactive, ref } from "vue"; |
| | | import { closeWebSocket, initializeWebSocket } from '@/utils/WebSocketService'; |
| | | import { ElMessage, ElMessageBox } from 'element-plus' |
| | |
| | | state: 2 |
| | | }); |
| | | } |
| | | if(index == tableDatax.value.length - 1){ |
| | | tableData.push({ |
| | | firstTimestamp: item.secondTimestamp, |
| | | secondTimestamp: item.endTimestamp, |
| | | diffMinutes: item.diffMinutes, |
| | | startTimestamp: item.startTimestamp, |
| | | endTimestamp: item.endTimestamp, |
| | | state: 1 |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | console.log(tableData); |
| | | |
| | | return tableData; |
| | | }; |
| | | |