|
@@ -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,
|
|
|
});
|