|
|
@@ -203,45 +203,42 @@ function takePictures() {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- clientStore.ipc.on(icpList.socket.message+'_run_mcu_single', async (event, result) => {
|
|
|
- console.log('_run_mcu_single_check')
|
|
|
- console.log(result)
|
|
|
- if(result.code === 0 && result.data?.file_path){
|
|
|
|
|
|
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
- clientStore.ipc.removeAllListeners(icpList.takePhoto.createMainImage);
|
|
|
- clientStore.ipc.send(icpList.takePhoto.createMainImage,{
|
|
|
- file_path:result.data.file_path
|
|
|
- });
|
|
|
- clientStore.ipc.on(icpList.takePhoto.createMainImage, async (event, result) => {
|
|
|
- console.log('icpList.utils.createMainImage');
|
|
|
-
|
|
|
- if(result.code === 0 && result.data?.main_out_path){
|
|
|
- imageTplPath.value = result.data?.main_out_path
|
|
|
- hideVideo()
|
|
|
- step.value = 2
|
|
|
- loading.value = false;
|
|
|
- }else if(result.msg){
|
|
|
- if(result.code !== 0) ElMessage.error(result.msg)
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- });
|
|
|
-
|
|
|
-
|
|
|
+clientStore.ipc.on(icpList.socket.message+'_run_mcu_single', async (event, result) => {
|
|
|
+ console.log('_run_mcu_single_check')
|
|
|
+ console.log(result)
|
|
|
+ if(result.code === 0 && result.data?.file_path){
|
|
|
+ clientStore.ipc.removeAllListeners(icpList.takePhoto.createMainImage);
|
|
|
+ clientStore.ipc.send(icpList.takePhoto.createMainImage,{
|
|
|
+ file_path:result.data.file_path
|
|
|
+ });
|
|
|
+ clientStore.ipc.on(icpList.takePhoto.createMainImage, async (event, result) => {
|
|
|
+ console.log('icpList.utils.createMainImage');
|
|
|
+ console.log(result);
|
|
|
+ if(result.code === 0 && result.data?.main_out_path){
|
|
|
+ imageTplPath.value = result.data?.main_out_path
|
|
|
+ hideVideo()
|
|
|
+ step.value = 2
|
|
|
+ loading.value = false;
|
|
|
}else if(result.msg){
|
|
|
-
|
|
|
if(result.code !== 0) ElMessage.error(result.msg)
|
|
|
}
|
|
|
+ clientStore.ipc.removeAllListeners(icpList.takePhoto.createMainImage);
|
|
|
+
|
|
|
+
|
|
|
+ });
|
|
|
|
|
|
- })
|
|
|
|
|
|
+ }else if(result.msg){
|
|
|
|
|
|
+ if(result.code !== 0) ElMessage.error(result.msg)
|
|
|
}
|
|
|
-}
|
|
|
|
|
|
+})
|
|
|
onMounted(()=>{
|
|
|
showVideo()
|
|
|
})
|