|
|
@@ -17,15 +17,15 @@
|
|
|
:rowSelection="{ type: 'checkbox', getCheckboxProps: getCheckboxProps }"
|
|
|
@fetch-success="handleFetchSuccess"
|
|
|
>
|
|
|
- <template #tableTitle>
|
|
|
+ <!-- <template #tableTitle>
|
|
|
<div class="fileName">root</div>
|
|
|
- </template>
|
|
|
+ </template> -->
|
|
|
<template #toolbar>
|
|
|
<a-button v-if="isPatchAuth" type="primary" @click="handlePatchSelect">
|
|
|
{{ t('routes.archive.patchArchive') }}</a-button
|
|
|
>
|
|
|
<!-- <a-button type="primary" color="warning" @click="() => {}"> 编辑</a-button>-->
|
|
|
- <a-button type="primary" color="error" @click="() => {}"> 新建文件夹</a-button>
|
|
|
+ <!-- <a-button type="primary" color="error" @click="() => {}"> 新建文件夹</a-button> -->
|
|
|
</template>
|
|
|
<template #mapShow="{ record }">
|
|
|
<Switch
|
|
|
@@ -38,8 +38,8 @@
|
|
|
</template>
|
|
|
<template #cover="{ record }">
|
|
|
<div class="cover">
|
|
|
- <img src="/resource/img/file.png" style="margin: 0 auto;" alt="" v-if="record.companyName == '哈哈哈哈'" />
|
|
|
- <TableImg v-else
|
|
|
+ <!-- <img src="/resource/img/file.png" style="margin: 0 auto;" alt="" v-if="record.companyName == '哈哈哈哈'" /> v-else-->
|
|
|
+ <TableImg
|
|
|
:size="120"
|
|
|
:simpleShow="true"
|
|
|
:imgList="[record.thumb || '/resource/img/header.jpg']"
|
|
|
@@ -147,6 +147,20 @@
|
|
|
confirm: handleDownloadSceneE57.bind(null, record),
|
|
|
},
|
|
|
},
|
|
|
+ {
|
|
|
+ tooltip: t('routes.scenes.downloadSceneGmdE57'),
|
|
|
+ disabled: record.status != -2,
|
|
|
+ ifShow:
|
|
|
+ (tableType === 2 || tableType === 5) &&
|
|
|
+ record.location === 4 &&
|
|
|
+ !record.isCopy && !dayjs(record.createTime).isBefore(dayjs('2025-01-01')),
|
|
|
+ icon: 'streamline-ultimate:laptop-download',
|
|
|
+ popConfirm: {
|
|
|
+ placement: 'left',
|
|
|
+ title: t('routes.scenes.downloadSceneGmdConfirmE57'),
|
|
|
+ confirm: handleDownloadSceneGmdE57.bind(null, record),
|
|
|
+ },
|
|
|
+ },
|
|
|
]"
|
|
|
/>
|
|
|
</template>
|
|
|
@@ -347,7 +361,7 @@
|
|
|
title: t('common.operation'),
|
|
|
dataIndex: '',
|
|
|
slots: { customRender: 'action' },
|
|
|
- width: 300,
|
|
|
+ width: 320,
|
|
|
ellipsis: false,
|
|
|
fixed: 'right',
|
|
|
},
|
|
|
@@ -637,7 +651,24 @@
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ async function handleDownloadSceneGmdE57(record: Recordable) {
|
|
|
+ let param = {
|
|
|
+ num: record.num,
|
|
|
+ splitType: 'SPLIT_V32'
|
|
|
+ };
|
|
|
+ const checker = await checkDownloadE57Api(param);
|
|
|
+ console.log('checker', checker);
|
|
|
+ if (checker.downloadStatus < 3) {
|
|
|
+ const res = await downloadSceneDataE57APi(param);
|
|
|
+ console.log('res', res);
|
|
|
+ openDownloadE57Modal(true, { ...record, splitType: 'SPLIT_V32' });
|
|
|
+ } else {
|
|
|
+ downloadByUrl({
|
|
|
+ url: checker.downloadUrl,
|
|
|
+ target: '_self',
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
return {
|
|
|
reload,
|
|
|
registerTable,
|
|
|
@@ -646,6 +677,7 @@
|
|
|
handleGenerate,
|
|
|
openSceneEditor,
|
|
|
handleDownloadScene,
|
|
|
+ handleDownloadSceneGmdE57,
|
|
|
handleDelete,
|
|
|
handleLivestream,
|
|
|
handleUpgrade,
|