tangning 2 月之前
父节点
当前提交
00a2ca6dbf
共有 2 个文件被更改,包括 4 次插入17 次删除
  1. 1 1
      src/views/productOperation/modal/qjDownLoadModal.vue
  2. 3 16
      src/views/productOperation/viewKankan.vue

+ 1 - 1
src/views/productOperation/modal/qjDownLoadModal.vue

@@ -2,7 +2,7 @@
   <BasicModal
     v-bind="$attrs"
     @register="register"
-    title="场景下载"
+    title="全景作品下载"
     :footer="null"
     :minHeight="0"
     @cancel="hundleCancel"

+ 3 - 16
src/views/productOperation/viewKankan.vue

@@ -42,11 +42,7 @@
       </BasicTable>
       <BasicTable v-else @register="registerTableScene" ref="tableRef">
         <template #toolbar>
-          <a-button
-            type="primary"
-            v-if="getTypeCheckPerm('projects-move-batch')"
-            @click="handleMoveAll"
-          >
+          <a-button type="primary" v-if="getTypeCheckPerm('projects-move')" @click="handleMoveAll">
             批量迁移</a-button
           >
         </template>
@@ -93,7 +89,7 @@
                 label: '迁移',
                 disabled:
                   record.calcStatus != 1 || record.panoStatus == 2 || record.panoStatus == 1, //计算中计算失败不予迁移
-                ifShow: getTypeCheckPerm('projects-move') && tableType != 3,
+                ifShow: getTypeCheckPerm('projects-move'),
                 onClick: handleMove.bind(null, record),
               },
               {
@@ -105,7 +101,7 @@
               {
                 label: '下载',
                 ifShow: getTypeCheckPerm('projects-download'),
-                disabled: record.calcStatus != 1 && record.panoStatus != 3,
+                disabled: record.panoStatus != 3,
 
                 //icon: 'carbon:download',
                 onClick: handleDownload.bind(null, record),
@@ -370,19 +366,10 @@
       const canDownload = ref<boolean>(true);
       function handleDownload(record: Recordable) {
         console.log('handleDownload', record);
-        // let isObj = tableType.value == 5 || tableType.value == 7 ? 1 : 0;
-        // let params = { num: record.num, isObj: 0 };
-        // if (tableType.value == 4 || tableType.value == 5 || tableType.value == 7) {
-        //   params.isObj = isObj;
-        // }
         canDownload.value = true;
         downOfflinePage(record.id).then(async (res) => {
           let sceneDownloadRes = res;
           if (!res.url) {
-            // 未下载过,需要打包
-            // if (res.downloadStatus != 1) {
-            //   sceneDownloadRes = await sceneDownload(params);
-            // }
             openDownModal(true, {
               ...record,
             });