瀏覽代碼

feat: 修改bug

tangning 2 年之前
父節點
當前提交
7005d119db

+ 1 - 1
src/views/account/product/index.vue

@@ -5,7 +5,7 @@
         <a-tab-pane :key="0" tab="四维看看" :disabled="loading"/>
         <a-tab-pane :key="1" tab="四维看见" :disabled="loading"/>
         <a-tab-pane :key="2" tab="四维深时点云" :disabled="loading"/>
-        <a-tab-pane :key="4" tab="四维深时Obj" :disabled="loading"/>
+        <a-tab-pane :key="5" tab="四维深时Obj" :disabled="loading"/>
         <a-tab-pane :key="3" tab="四维双目Lite" :disabled="loading"/> 
         <a-tab-pane :key="4" tab="四维全景" :disabled="loading"/> 
       </a-tabs

+ 10 - 6
src/views/customer/scene.vue

@@ -4,7 +4,8 @@
       <a-tabs v-model:activeKey="tableType" @change="changeTable">
         <a-tab-pane :key="0" tab="四维看看" :disabled="loading"/>
         <a-tab-pane :key="1" tab="四维看见" :disabled="loading"/>
-        <a-tab-pane :key="2" tab="四维深时" :disabled="loading"/>
+        <a-tab-pane :key="2" tab="四维深时点云" :disabled="loading"/>
+        <a-tab-pane :key="5" tab="四维深时Obj" :disabled="loading"/>
         <a-tab-pane :key="3" tab="四维双目Lite" :disabled="loading"/> </a-tabs
     ></template>
     <div class="desc-wrap-BasicTable">
@@ -387,13 +388,16 @@
       const downloadOption = ref<Object>({});
       const canDownload = ref<boolean>(true);
       function handleDownload(record: Recordable) {
-        console.log('handleDownload', record);
-
-        checkDownLoad({ num: record.num }).then((res) => {
+        let isObj = tableType.value == 4?1:0
+        let params = {num: record.num}
+        if(tableType.value == 4 || tableType.value == 2){
+          params.isObj = isObj
+        }
+        checkDownLoad(params).then((res) => {
           console.log(res);
           if (res.downloadStatus != 3) {
             // 未下载过,需要打包
-            sceneDownload({ num: record.num }).then((res) => {
+            sceneDownload(params).then((res) => {
               console.log(res);
               openDownModal(true, {
                 ...record,
@@ -403,7 +407,7 @@
                   afterClose();
                 }
                 timer.value = setInterval(() => {
-                  downloadProcess({ num: record.num }).then((res) => {
+                  downloadProcess(params).then((res) => {
                     if(res.status == '1003'){
                       createMessage.error('下载失败');
                       afterClose();

+ 1 - 0
src/views/productOperation/cameraScene.vue

@@ -499,6 +499,7 @@ import { truncate } from 'fs/promises';
               console.log(res);
               openDownModal(true, {
                 ...record,
+                isObj:params.isObj,
               });
               if (res.downloadStatus == 1) {
                 if (timer.value) {

+ 1 - 1
src/views/productOperation/livestream.vue

@@ -85,7 +85,7 @@
           width: 100,
           customRender: ({ record }) => {
             let status = {
-              0:'进行中',
+              0:'未开启',
               1:'进行中',
               2:'已关闭',
             }