|
@ -337,6 +337,7 @@ |
|
|
|
|
|
|
|
|
<script setup> |
|
|
<script setup> |
|
|
import { useAccountStore, useTaskStore, useImageStore } from '@/store' |
|
|
import { useAccountStore, useTaskStore, useImageStore } from '@/store' |
|
|
|
|
|
import socket from '@/utils/websocket' |
|
|
import Cookie from '@/utils/cookie' |
|
|
import Cookie from '@/utils/cookie' |
|
|
import { ref, onMounted, computed } from 'vue' |
|
|
import { ref, onMounted, computed } from 'vue' |
|
|
import Excel from 'cpns/Excel' |
|
|
import Excel from 'cpns/Excel' |
|
@ -355,6 +356,9 @@ const imageStore = useImageStore() |
|
|
const hasTestedLength = ref(0) |
|
|
const hasTestedLength = ref(0) |
|
|
const testArrLength = ref(121) |
|
|
const testArrLength = ref(121) |
|
|
|
|
|
|
|
|
|
|
|
// websocket |
|
|
|
|
|
const websocket = ref(null) |
|
|
|
|
|
|
|
|
const detailProcess = computed(() => { |
|
|
const detailProcess = computed(() => { |
|
|
const testArr = taskStore.excelData.filter( |
|
|
const testArr = taskStore.excelData.filter( |
|
|
item => item.firstSign && item.secondSign, |
|
|
item => item.firstSign && item.secondSign, |
|
@ -413,8 +417,17 @@ const logout = () => { |
|
|
window.location.href = '/login' |
|
|
window.location.href = '/login' |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const getSocketdata = res => { |
|
|
|
|
|
console.log(res) |
|
|
|
|
|
if (res == 'update') { |
|
|
|
|
|
// 更新一系列数据 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
onMounted(async () => { |
|
|
onMounted(async () => { |
|
|
// taskStore.getExcelList(1) |
|
|
// taskStore.getExcelList(1) |
|
|
|
|
|
websocket.value = new socket() |
|
|
|
|
|
websocket.value.WebSocketSet(getSocketdata) |
|
|
}) |
|
|
}) |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|