|
@@ -163,6 +163,7 @@ import { courseChapter3dShow } from '@/stores/courseChapter3dShow.ts';
|
|
import { threeWorld } from '@/stores/threeWorld.ts';
|
|
import { threeWorld } from '@/stores/threeWorld.ts';
|
|
import { uploadFileOss, getLiteMeta } from '../../../util/fileUtils';
|
|
import { uploadFileOss, getLiteMeta } from '../../../util/fileUtils';
|
|
import { ElMessage, ElMessageBox, ElNotification } from 'element-plus';
|
|
import { ElMessage, ElMessageBox, ElNotification } from 'element-plus';
|
|
|
|
+import { ElLoading } from 'element-plus';
|
|
import { studentTaskPhoto } from '@/api/techer/taskStudentScore';
|
|
import { studentTaskPhoto } from '@/api/techer/taskStudentScore';
|
|
|
|
|
|
import QvSimulationMain from "../../../components/QvSimulation/QvSimulationMain.vue";
|
|
import QvSimulationMain from "../../../components/QvSimulation/QvSimulationMain.vue";
|
|
@@ -667,11 +668,16 @@ const carCameraScreenshotEvent = (img: any) => {// CCTV实训检测三维场景
|
|
// "车的相机截图", img
|
|
// "车的相机截图", img
|
|
// );
|
|
// );
|
|
|
|
|
|
|
|
+ let loading = ElLoading.service({
|
|
|
|
+ lock: true,
|
|
|
|
+ text: '上传中,请稍后……',
|
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)',
|
|
|
|
+ });
|
|
|
|
+
|
|
// 将 base64为转换成,Blob格式
|
|
// 将 base64为转换成,Blob格式
|
|
let objBlob = dataURLtoBlob(img);
|
|
let objBlob = dataURLtoBlob(img);
|
|
// blob 转换成 file对象
|
|
// blob 转换成 file对象
|
|
const file = new File([objBlob], 'example.png', { type: 'text/plain' });
|
|
const file = new File([objBlob], 'example.png', { type: 'text/plain' });
|
|
-
|
|
|
|
|
|
|
|
// 优先上传文件
|
|
// 优先上传文件
|
|
// @ts-ignore
|
|
// @ts-ignore
|
|
@@ -691,6 +697,8 @@ const carCameraScreenshotEvent = (img: any) => {// CCTV实训检测三维场景
|
|
// "上传文件成功", studentTaskPhotoRes
|
|
// "上传文件成功", studentTaskPhotoRes
|
|
// );
|
|
// );
|
|
|
|
|
|
|
|
+ loading.close();
|
|
|
|
+
|
|
// ElMessage({
|
|
// ElMessage({
|
|
// message: '截图上传完成',
|
|
// message: '截图上传完成',
|
|
// type: 'success',
|
|
// type: 'success',
|
|
@@ -718,6 +726,8 @@ const carCameraScreenshotEvent = (img: any) => {// CCTV实训检测三维场景
|
|
// type: 'warning',
|
|
// type: 'warning',
|
|
// });
|
|
// });
|
|
|
|
|
|
|
|
+ loading.close();
|
|
|
|
+
|
|
if (threeWorldLoadType.value == "cctv") {
|
|
if (threeWorldLoadType.value == "cctv") {
|
|
|
|
|
|
courseChapter3dShow().show.showToastViewBool = false;
|
|
courseChapter3dShow().show.showToastViewBool = false;
|
|
@@ -740,6 +750,8 @@ const carCameraScreenshotEvent = (img: any) => {// CCTV实训检测三维场景
|
|
// type: 'warning',
|
|
// type: 'warning',
|
|
// });
|
|
// });
|
|
|
|
|
|
|
|
+ loading.close();
|
|
|
|
+
|
|
if (threeWorldLoadType.value == "cctv") {
|
|
if (threeWorldLoadType.value == "cctv") {
|
|
|
|
|
|
courseChapter3dShow().show.showToastViewBool = false;
|
|
courseChapter3dShow().show.showToastViewBool = false;
|