1
0
tangning 4 päivää sitten
vanhempi
commit
e59f5c8bbb
1 muutettua tiedostoa jossa 10 lisäystä ja 10 poistoa
  1. 10 10
      src/view/material/sceneImg.vue

+ 10 - 10
src/view/material/sceneImg.vue

@@ -1172,20 +1172,15 @@ async function frameLoad(sdk, num) {
     console.log("返回数据", list);
     const iframe = document.getElementById("iframe-outside");
     iframe?.classList.remove("show");
-    let {data} = await casePhotoUpImage({
+    let { data } = await casePhotoUpImage({
       caseId: caseId.value,
       num,
       jsonContent,
     });
     console.log("返回数据1", data);
-//     ElMessageBox.confirm(
-//       `AI制卷将基于实景三维已有痕迹物证数据自动提取重点、
-// 概貌、方位照片,并制卷。需要一定时间。完成后可编辑调整。`,
-//       "提示"
-//     );
     loadingAiPhone.value.close();
-    handledrawCasePhotos(data.id)
-    // getList(true);
+    // handledrawCasePhotos(data.id);
+    getList(true);
   } catch (error) {
     console.log("捕获到错误", error);
     loadingAiPhone.value.close();
@@ -1212,11 +1207,16 @@ async function openAIdrawCase() {
     ))
   ) {
     handleAIdrawCasePhotos(num);
-  }else{
+  } else if (
+    await ElMessageBox.confirm(
+      `AI制卷将基于实景三维已有痕迹物证数据自动提取重点、 概貌、方位照片,并制卷。需要一定时间。完成后可编辑调整。`,
+      "提示"
+    )
+  ) {
     handleAIdrawCasePhotos(num);
   }
 }
-function handleAIdrawCasePhotos(num) {
+async function handleAIdrawCasePhotos(num) {
   const iframe = document.getElementById("iframe-outside");
   console.log(iframe, "iframe", iframe.classList.contains("show"));
   if (iframe) {