|
@ -195,7 +195,7 @@ |
|
|
<div class="main_content" v-if="accountStore.activePage == 0"> |
|
|
<div class="main_content" v-if="accountStore.activePage == 0"> |
|
|
<div class="two_content_container"> |
|
|
<div class="two_content_container"> |
|
|
<Image /> |
|
|
<Image /> |
|
|
<Excel :excelData="taskStore.excelData" /> |
|
|
|
|
|
|
|
|
<Excel /> |
|
|
</div> |
|
|
</div> |
|
|
<div |
|
|
<div |
|
|
class="bottom_operation_container" |
|
|
class="bottom_operation_container" |
|
@ -365,6 +365,7 @@ import { |
|
|
} from '@/store' |
|
|
} from '@/store' |
|
|
import socket from '@/utils/websocket' |
|
|
import socket from '@/utils/websocket' |
|
|
import Cookie from '@/utils/cookie' |
|
|
import Cookie from '@/utils/cookie' |
|
|
|
|
|
import { MessagePlugin } from 'tdesign-vue-next' |
|
|
import { ref, onMounted, computed } from 'vue' |
|
|
import { ref, onMounted, computed } from 'vue' |
|
|
import Excel from 'cpns/Excel' |
|
|
import Excel from 'cpns/Excel' |
|
|
import Nuclear from 'cpns/Nuclear' |
|
|
import Nuclear from 'cpns/Nuclear' |
|
@ -374,7 +375,7 @@ import Publish from 'cpns/Publish' |
|
|
import User from 'cpns/User' |
|
|
import User from 'cpns/User' |
|
|
import DetailTable from 'cpns/DetailTable' |
|
|
import DetailTable from 'cpns/DetailTable' |
|
|
import Debug from 'cpns/Debug' |
|
|
import Debug from 'cpns/Debug' |
|
|
import { startAutoCheckApi, breakOffAutoCheckApi } from '@/api' |
|
|
|
|
|
|
|
|
import { startAutoCheckApi, breakOffAutoCheckApi, saveCheckResult } from '@/api' |
|
|
import { getProcessTaskInfoApi, getNextCoordApi } from '@/api/task' |
|
|
import { getProcessTaskInfoApi, getNextCoordApi } from '@/api/task' |
|
|
const accountStore = useAccountStore() |
|
|
const accountStore = useAccountStore() |
|
|
const taskStore = useTaskStore() |
|
|
const taskStore = useTaskStore() |
|
@ -499,6 +500,11 @@ const preBtn = async () => { |
|
|
const currentTaskId = taskStore.currentTaskId |
|
|
const currentTaskId = taskStore.currentTaskId |
|
|
const res = await getNextCoordApi(checkNumber, currentTaskId, '0') |
|
|
const res = await getNextCoordApi(checkNumber, currentTaskId, '0') |
|
|
if (res?.code == 200) { |
|
|
if (res?.code == 200) { |
|
|
|
|
|
if (!res?.data?.result) { |
|
|
|
|
|
MessagePlugin('error', { content: '已到达检测边缘' }) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
checkStore.updateCheckNumber(res?.data?.result) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -507,14 +513,24 @@ const nextBtn = async () => { |
|
|
const currentTaskId = taskStore.currentTaskId |
|
|
const currentTaskId = taskStore.currentTaskId |
|
|
const res = await getNextCoordApi(checkNumber, currentTaskId, '1') |
|
|
const res = await getNextCoordApi(checkNumber, currentTaskId, '1') |
|
|
if (res?.code == 200) { |
|
|
if (res?.code == 200) { |
|
|
|
|
|
if (!res?.data?.result) { |
|
|
|
|
|
MessagePlugin('error', { content: '已到达检测边缘' }) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
checkStore.updateCheckNumber(res?.data?.result) |
|
|
checkStore.updateCheckNumber(res?.data?.result) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const check = () => { |
|
|
|
|
|
|
|
|
const check = async () => { |
|
|
const checkNumber = checkStore.checkNumber |
|
|
const checkNumber = checkStore.checkNumber |
|
|
const currentTaskId = taskStore.currentTaskId |
|
|
const currentTaskId = taskStore.currentTaskId |
|
|
// 检查当前坐标点的结果是否正确 |
|
|
// 检查当前坐标点的结果是否正确 |
|
|
|
|
|
// 获取到结果后,传到后端保存 |
|
|
|
|
|
const res = await saveCheckResult(checkNumber, currentTaskId) |
|
|
|
|
|
if (res?.code == 200) { |
|
|
|
|
|
// 核查成功后请求新数据 |
|
|
|
|
|
// 更新exceldata |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
onMounted(async () => { |
|
|
onMounted(async () => { |
|
@ -522,6 +538,8 @@ onMounted(async () => { |
|
|
websocket.value.WebSocketSet(getSocketdata) |
|
|
websocket.value.WebSocketSet(getSocketdata) |
|
|
getInitData() |
|
|
getInitData() |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
// websocket 客户端 直接发送核查并获取结果 |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|