|
@ -335,7 +335,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="task_container" v-if="accountStore.activePage == 1"> |
|
|
<div class="task_container" v-if="accountStore.activePage == 1"> |
|
|
<Task /> |
|
|
|
|
|
|
|
|
<Task :startCaptureFunc="startCaptureFunc" /> |
|
|
</div> |
|
|
</div> |
|
|
<div |
|
|
<div |
|
|
class="publish_container" |
|
|
class="publish_container" |
|
@ -367,6 +367,7 @@ import { |
|
|
useTaskStore, |
|
|
useTaskStore, |
|
|
useImageStore, |
|
|
useImageStore, |
|
|
useCheckStore, |
|
|
useCheckStore, |
|
|
|
|
|
useCameraStore, |
|
|
} from '@/store' |
|
|
} from '@/store' |
|
|
import socket from '@/utils/websocket' |
|
|
import socket from '@/utils/websocket' |
|
|
import Cookie from '@/utils/cookie' |
|
|
import Cookie from '@/utils/cookie' |
|
@ -382,11 +383,16 @@ import DetailTable from 'cpns/DetailTable' |
|
|
import Debug from 'cpns/Debug' |
|
|
import Debug from 'cpns/Debug' |
|
|
import { startAutoCheckApi, breakOffAutoCheckApi, saveCheckResult } from '@/api' |
|
|
import { startAutoCheckApi, breakOffAutoCheckApi, saveCheckResult } from '@/api' |
|
|
import { getProcessTaskInfoApi, getNextCoordApi } from '@/api/task' |
|
|
import { getProcessTaskInfoApi, getNextCoordApi } from '@/api/task' |
|
|
import { getCharacterRecognitionResult, getCameraState } from '@/command' |
|
|
|
|
|
|
|
|
import { |
|
|
|
|
|
getCharacterRecognitionResult, |
|
|
|
|
|
getCameraState, |
|
|
|
|
|
startCapture, |
|
|
|
|
|
} from '@/command' |
|
|
const accountStore = useAccountStore() |
|
|
const accountStore = useAccountStore() |
|
|
const taskStore = useTaskStore() |
|
|
const taskStore = useTaskStore() |
|
|
const imageStore = useImageStore() |
|
|
const imageStore = useImageStore() |
|
|
const checkStore = useCheckStore() |
|
|
const checkStore = useCheckStore() |
|
|
|
|
|
const cameraStore = useCameraStore() |
|
|
|
|
|
|
|
|
const hasTestedLength = ref(0) |
|
|
const hasTestedLength = ref(0) |
|
|
const testArrLength = ref(121) |
|
|
const testArrLength = ref(121) |
|
@ -542,6 +548,10 @@ const nextBtn = async () => { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const startCaptureFunc = () => { |
|
|
|
|
|
websocketsend(startCapture) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
const isCameraOpen = ref(false) |
|
|
const isCameraOpen = ref(false) |
|
|
const check = async () => { |
|
|
const check = async () => { |
|
|
if (!checked.value) { |
|
|
if (!checked.value) { |
|
@ -639,7 +649,7 @@ const websocketonmessage = async e => { |
|
|
taskStore.getExcelList(taskStore.currentTaskId) |
|
|
taskStore.getExcelList(taskStore.currentTaskId) |
|
|
MessagePlugin('success', { content: '核查完毕' }) |
|
|
MessagePlugin('success', { content: '核查完毕' }) |
|
|
// 自动跳转下一个 |
|
|
// 自动跳转下一个 |
|
|
nextBtn() |
|
|
|
|
|
|
|
|
// nextBtn() |
|
|
} |
|
|
} |
|
|
break |
|
|
break |
|
|
case 'getCameraState': |
|
|
case 'getCameraState': |
|
@ -647,6 +657,10 @@ const websocketonmessage = async e => { |
|
|
const { isOpen } = cameraState |
|
|
const { isOpen } = cameraState |
|
|
isCameraOpen.value = isOpen |
|
|
isCameraOpen.value = isOpen |
|
|
break |
|
|
break |
|
|
|
|
|
case 'startCapture': |
|
|
|
|
|
// 改变相机状态 |
|
|
|
|
|
cameraStore.updateCameraState(true) |
|
|
|
|
|
break |
|
|
default: |
|
|
default: |
|
|
break |
|
|
break |
|
|
} |
|
|
} |
|
|