|
|
@@ -263,7 +263,14 @@ clientStore.ipc.on(icpList.socket.message+'_smart_shooter_photo_take', async (ev
|
|
|
console.log('_smart_shooter_photo_take');
|
|
|
console.log(result);
|
|
|
if(result.code === 0 && result.data?.photo_file_name){
|
|
|
- createMainImage(result.data?.photo_file_name)
|
|
|
+ imageTplPath.value = result.data?.photo_file_name
|
|
|
+ hideVideo()
|
|
|
+ step.value = 2
|
|
|
+ loading.value = false;
|
|
|
+ }else {
|
|
|
+ loading.value = false;
|
|
|
+ showVideo()
|
|
|
+ if(result.code !== 0 && result.msg) ElMessage.error(result.msg)
|
|
|
}
|
|
|
|
|
|
})
|
|
|
@@ -275,6 +282,18 @@ clientStore.ipc.on(icpList.socket.message+'_run_mcu_single', async (event, resul
|
|
|
console.log(result)
|
|
|
|
|
|
if(result.code === 0 && result.data?.file_path){
|
|
|
+ imageTplPath.value = result.data?.file_path
|
|
|
+ hideVideo()
|
|
|
+ step.value = 2
|
|
|
+ loading.value = false;
|
|
|
+ }else {
|
|
|
+ loading.value = false;
|
|
|
+ showVideo()
|
|
|
+ if(result.code !== 0 && result.msg) ElMessage.error(result.msg)
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+/* if(result.code === 0 && result.data?.file_path){
|
|
|
|
|
|
createMainImage(result.data?.file_path)
|
|
|
|
|
|
@@ -285,7 +304,7 @@ clientStore.ipc.on(icpList.socket.message+'_run_mcu_single', async (event, resul
|
|
|
loading.value = false;
|
|
|
showVideo()
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
})
|
|
|
|