|
|
@ -248,6 +248,7 @@ |
|
|
|
? 'check_btn check_active_btn' |
|
|
|
: 'check_btn' |
|
|
|
" |
|
|
|
@click="check" |
|
|
|
> |
|
|
|
核查 |
|
|
|
</div> |
|
|
@ -255,6 +256,7 @@ |
|
|
|
:class=" |
|
|
|
checkStore.manualCheck ? 'next_btn pre_active_btn' : 'next_btn' |
|
|
|
" |
|
|
|
@click="preBtn" |
|
|
|
> |
|
|
|
<svg |
|
|
|
xmlns="http://www.w3.org/2000/svg" |
|
|
@ -281,6 +283,7 @@ |
|
|
|
:class=" |
|
|
|
checkStore.manualCheck ? 'next_btn next_active_btn' : 'next_btn' |
|
|
|
" |
|
|
|
@click="nextBtn" |
|
|
|
> |
|
|
|
<p>下一个</p> |
|
|
|
<svg |
|
|
@ -372,7 +375,7 @@ import User from 'cpns/User' |
|
|
|
import DetailTable from 'cpns/DetailTable' |
|
|
|
import Debug from 'cpns/Debug' |
|
|
|
import { startAutoCheckApi, breakOffAutoCheckApi } from '@/api' |
|
|
|
import { getProcessTaskInfoApi } from '@/api/task' |
|
|
|
import { getProcessTaskInfoApi, getNextCoordApi } from '@/api/task' |
|
|
|
const accountStore = useAccountStore() |
|
|
|
const taskStore = useTaskStore() |
|
|
|
const imageStore = useImageStore() |
|
|
@ -491,6 +494,29 @@ const getSocketdata = res => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const preBtn = async () => { |
|
|
|
const checkNumber = checkStore.checkNumber |
|
|
|
const currentTaskId = taskStore.currentTaskId |
|
|
|
const res = await getNextCoordApi(checkNumber, currentTaskId, '0') |
|
|
|
if (res?.code == 200) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const nextBtn = async () => { |
|
|
|
const checkNumber = checkStore.checkNumber |
|
|
|
const currentTaskId = taskStore.currentTaskId |
|
|
|
const res = await getNextCoordApi(checkNumber, currentTaskId, '1') |
|
|
|
if (res?.code == 200) { |
|
|
|
checkStore.updateCheckNumber(res?.data?.result) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const check = () => { |
|
|
|
const checkNumber = checkStore.checkNumber |
|
|
|
const currentTaskId = taskStore.currentTaskId |
|
|
|
// 检查当前坐标点的结果是否正确 |
|
|
|
} |
|
|
|
|
|
|
|
onMounted(async () => { |
|
|
|
websocket.value = new socket() |
|
|
|
websocket.value.WebSocketSet(getSocketdata) |
|
|
|