人生啊人生 3 月之前
父节点
当前提交
814ad235c6
共有 1 个文件被更改,包括 24 次插入12 次删除
  1. 24 12
      user_web/src/view/student/trainChapter/trainChapter.vue

+ 24 - 12
user_web/src/view/student/trainChapter/trainChapter.vue

@@ -695,11 +695,15 @@ const carCameraScreenshotEvent = (img: any) => {// CCTV实训检测三维场景
                     //     type: 'success',
                     // });
 
-                    courseChapter3dShow().show.showToastViewBool = false;
+                    if (threeWorldLoadType.value == "cctv") {
+                        
+                        courseChapter3dShow().show.showToastViewBool = false;
 
-                    courseChapter3dShow().show.showPromptEvent('截图上传完成', null, function (res: any) {
-                        // console.log("yes", res);
-                    });
+                        courseChapter3dShow().show.showPromptEvent('截图上传完成', null, function (res: any) {
+                            // console.log("yes", res);
+                        });
+
+                    }
 
                 })
                 .catch(function (studentTaskPhotoResError: any) {
@@ -708,10 +712,14 @@ const carCameraScreenshotEvent = (img: any) => {// CCTV实训检测三维场景
                     //     type: 'warning',
                     // });
 
-                    courseChapter3dShow().show.showToastViewBool = false;
-                    courseChapter3dShow().show.showPromptEvent('上传失败', null, function (res: any) {
-                        // console.log("yes", res);
-                    });
+                    if (threeWorldLoadType.value == "cctv") {
+
+                        courseChapter3dShow().show.showToastViewBool = false;
+                        courseChapter3dShow().show.showPromptEvent('上传失败', null, function (res: any) {
+                            // console.log("yes", res);
+                        });
+
+                    }
 
                 });
         })
@@ -721,10 +729,14 @@ const carCameraScreenshotEvent = (img: any) => {// CCTV实训检测三维场景
             //     type: 'warning',
             // });
 
-            courseChapter3dShow().show.showToastViewBool = false;
-            courseChapter3dShow().show.showPromptEvent('上传失败', null, function (res: any) {
-                // console.log("yes", res);
-            });
+            if (threeWorldLoadType.value == "cctv") {
+
+                courseChapter3dShow().show.showToastViewBool = false;
+                courseChapter3dShow().show.showPromptEvent('上传失败', null, function (res: any) {
+                    // console.log("yes", res);
+                });
+
+            }
 
         });
 };