浏览代码

feat: add 1.7.1 calcStatus equal 0

gemercheung 1 年之前
父节点
当前提交
a04bd546f2
共有 2 个文件被更改,包括 18 次插入8 次删除
  1. 9 4
      packages/qjkankan-view/src/pages/show.vue
  2. 9 4
      packages/qjkankan-view/src/pages/showMobile.vue

+ 9 - 4
packages/qjkankan-view/src/pages/show.vue

@@ -28,6 +28,7 @@ import UiGather from "@/components/UIGather/";
 import LoadingLogo from "@/components/assembly/Loading";
 import Opening from "@/components/assembly/Opening";
 import { createApp } from "@/app";
+import { Dialog } from "@/global_components";
 
 import { ref, onMounted, computed, watch, nextTick, unref } from "vue";
 import { getPanoInfo, checkWork, exchangeId } from "@/apis";
@@ -66,15 +67,19 @@ onMounted(async () => {
     return;
   }
 
-  if (!config.projectNum) {
-    return;
-  }
   const idRes = await exchangeId({
     id: config.projectNum
   })
-  const { id, num } = idRes.data
+  const { id, num, calcStatus } = idRes.data
   config.projectNum = id
 
+  if (calcStatus === 0) {
+    Dialog.alert(
+      '场景计算中,请稍后访问'
+    );
+    return
+  }
+
   let res = await checkWork();
 
   if (!res.data) {

+ 9 - 4
packages/qjkankan-view/src/pages/showMobile.vue

@@ -85,14 +85,19 @@ onMounted(async () => {
     );
     return;
   }
-  if (!config.projectNum) {
-    return;
-  }
   const idRes = await exchangeId({
     id: config.projectNum
   })
-  const { id, num } = idRes.data
+  const { id, num, calcStatus } = idRes.data
   config.projectNum = id
+
+  if (calcStatus === 0) {
+    Dialog.alert(
+      '场景计算中,请稍后访问'
+    );
+    return
+  }
+
   let res = await checkWork();
   if (!res.data) {
     workEnable.value = res.data;