|
@ -338,7 +338,11 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="task_container" v-if="accountStore.activePage == 1"> |
|
|
<div class="task_container" v-if="accountStore.activePage == 1"> |
|
|
<Task :startCaptureFunc="startCaptureFunc" /> |
|
|
|
|
|
|
|
|
<Task |
|
|
|
|
|
:startCaptureFunc="startCaptureFunc" |
|
|
|
|
|
:handleSimulationBrightness="handleSimulationBrightness" |
|
|
|
|
|
:handleExposureTime="handleExposureTime" |
|
|
|
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
<div |
|
|
<div |
|
|
class="publish_container" |
|
|
class="publish_container" |
|
@ -391,6 +395,8 @@ import { |
|
|
getCharacterRecognitionResult, |
|
|
getCharacterRecognitionResult, |
|
|
getCameraState, |
|
|
getCameraState, |
|
|
startCapture, |
|
|
startCapture, |
|
|
|
|
|
setFlashBrightnessAnalog, |
|
|
|
|
|
setExposureTimeRaw, |
|
|
} from '@/command' |
|
|
} from '@/command' |
|
|
const accountStore = useAccountStore() |
|
|
const accountStore = useAccountStore() |
|
|
const taskStore = useTaskStore() |
|
|
const taskStore = useTaskStore() |
|
@ -405,6 +411,10 @@ const testArrLength = ref(121) |
|
|
// websocket |
|
|
// websocket |
|
|
const websocket = ref(null) |
|
|
const websocket = ref(null) |
|
|
|
|
|
|
|
|
|
|
|
const handleExposureTime = value => { |
|
|
|
|
|
websocketsend(setExposureTimeRaw(value)) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
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, |
|
@ -415,6 +425,10 @@ const detailProcess = computed(() => { |
|
|
return parseInt((hasTested.length / testArr.length) * 100) |
|
|
return parseInt((hasTested.length / testArr.length) * 100) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const handleSimulationBrightness = value => { |
|
|
|
|
|
websocketsend(setFlashBrightnessAnalog(value)) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
const checked = ref(false) |
|
|
const checked = ref(false) |
|
|
|
|
|
|
|
|
const onChange = async val => { |
|
|
const onChange = async val => { |
|
|