|
@@ -108,6 +108,7 @@
|
|
|
confirm: handleDelete.bind(null, record),
|
|
confirm: handleDelete.bind(null, record),
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
{
|
|
{
|
|
|
tooltip: t('routes.scenes.downloadScene'),
|
|
tooltip: t('routes.scenes.downloadScene'),
|
|
|
disabled: record.status != -2,
|
|
disabled: record.status != -2,
|
|
@@ -125,11 +126,25 @@
|
|
|
icon: 'carbon:migrate',
|
|
icon: 'carbon:migrate',
|
|
|
onClick: handleMigrate.bind(null, record),
|
|
onClick: handleMigrate.bind(null, record),
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ tooltip: t('routes.scenes.downloadSceneE57'),
|
|
|
|
|
+ disabled: record.status != -2,
|
|
|
|
|
+ ifShow: () => {
|
|
|
|
|
+ return tableType === 2;
|
|
|
|
|
+ },
|
|
|
|
|
+ icon: 'gis:layer-download',
|
|
|
|
|
+ popConfirm: {
|
|
|
|
|
+ placement: 'left',
|
|
|
|
|
+ title: t('routes.scenes.downloadSceneConfirmE57'),
|
|
|
|
|
+ confirm: handleDownloadSceneE57.bind(null, record),
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
]"
|
|
]"
|
|
|
/>
|
|
/>
|
|
|
</template>
|
|
</template>
|
|
|
</BasicTable>
|
|
</BasicTable>
|
|
|
<DownloadModal @register="registerDownloadModal" />
|
|
<DownloadModal @register="registerDownloadModal" />
|
|
|
|
|
+ <DownloadE57Modal @register="registerDownloadE57Modal" />
|
|
|
<AssistantModal @register="registerAssistantModal" @success="reload" />
|
|
<AssistantModal @register="registerAssistantModal" @success="reload" />
|
|
|
<MigrateModal
|
|
<MigrateModal
|
|
|
@register="registerMigrateModal"
|
|
@register="registerMigrateModal"
|
|
@@ -165,6 +180,8 @@
|
|
|
patchcoldStorageApi,
|
|
patchcoldStorageApi,
|
|
|
generateObjFileAPI,
|
|
generateObjFileAPI,
|
|
|
updateMapShowApi,
|
|
updateMapShowApi,
|
|
|
|
|
+ checkDownloadE57Api,
|
|
|
|
|
+ downloadSceneDataE57APi,
|
|
|
} from '/@/api/scene/list';
|
|
} from '/@/api/scene/list';
|
|
|
import { useI18n } from '/@/hooks/web/useI18n';
|
|
import { useI18n } from '/@/hooks/web/useI18n';
|
|
|
import {
|
|
import {
|
|
@@ -176,6 +193,7 @@
|
|
|
|
|
|
|
|
import { useUserStore } from '/@/store/modules/user';
|
|
import { useUserStore } from '/@/store/modules/user';
|
|
|
import DownloadModal from './downloadModal.vue';
|
|
import DownloadModal from './downloadModal.vue';
|
|
|
|
|
+ import DownloadE57Modal from './downloadE57Modal.vue';
|
|
|
import AssistantModal from './assistantModal.vue';
|
|
import AssistantModal from './assistantModal.vue';
|
|
|
import { useLocaleStore } from '/@/store/modules/locale';
|
|
import { useLocaleStore } from '/@/store/modules/locale';
|
|
|
import { SceneDownloadParam } from '/@/api/scene/model';
|
|
import { SceneDownloadParam } from '/@/api/scene/model';
|
|
@@ -196,6 +214,7 @@
|
|
|
PageWrapper,
|
|
PageWrapper,
|
|
|
MigrateModal,
|
|
MigrateModal,
|
|
|
Switch,
|
|
Switch,
|
|
|
|
|
+ DownloadE57Modal,
|
|
|
[Tabs.name]: Tabs,
|
|
[Tabs.name]: Tabs,
|
|
|
[Tabs.TabPane.name]: Tabs.TabPane,
|
|
[Tabs.TabPane.name]: Tabs.TabPane,
|
|
|
},
|
|
},
|
|
@@ -213,6 +232,7 @@
|
|
|
|
|
|
|
|
const { createMessage, createConfirm } = useMessage();
|
|
const { createMessage, createConfirm } = useMessage();
|
|
|
const [registerDownloadModal, { openModal: openDownloadModal }] = useModal();
|
|
const [registerDownloadModal, { openModal: openDownloadModal }] = useModal();
|
|
|
|
|
+ const [registerDownloadE57Modal, { openModal: openDownloadE57Modal }] = useModal();
|
|
|
const [registerAssistantModal, { openModal: openAssistantModal }] = useModal();
|
|
const [registerAssistantModal, { openModal: openAssistantModal }] = useModal();
|
|
|
const [registerMigrateModal, { openModal: openMigrateModal }] = useModal();
|
|
const [registerMigrateModal, { openModal: openMigrateModal }] = useModal();
|
|
|
const { t } = useI18n();
|
|
const { t } = useI18n();
|
|
@@ -305,7 +325,7 @@
|
|
|
title: t('common.operation'),
|
|
title: t('common.operation'),
|
|
|
dataIndex: '',
|
|
dataIndex: '',
|
|
|
slots: { customRender: 'action' },
|
|
slots: { customRender: 'action' },
|
|
|
- width: 260,
|
|
|
|
|
|
|
+ width: 300,
|
|
|
ellipsis: false,
|
|
ellipsis: false,
|
|
|
fixed: 'right',
|
|
fixed: 'right',
|
|
|
},
|
|
},
|
|
@@ -557,6 +577,24 @@
|
|
|
setTimeout(reload, 100);
|
|
setTimeout(reload, 100);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ async function handleDownloadSceneE57(record: Recordable) {
|
|
|
|
|
+ let param: SceneDownloadParam = {
|
|
|
|
|
+ num: record.num,
|
|
|
|
|
+ };
|
|
|
|
|
+ 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 });
|
|
|
|
|
+ } else {
|
|
|
|
|
+ downloadByUrl({
|
|
|
|
|
+ url: checker.downloadUrl,
|
|
|
|
|
+ target: '_self',
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
return {
|
|
return {
|
|
|
reload,
|
|
reload,
|
|
|
registerTable,
|
|
registerTable,
|
|
@@ -585,6 +623,8 @@
|
|
|
handleMigrateSuccess,
|
|
handleMigrateSuccess,
|
|
|
handleMigrateCancel,
|
|
handleMigrateCancel,
|
|
|
handleUpdateSwitch,
|
|
handleUpdateSwitch,
|
|
|
|
|
+ handleDownloadSceneE57,
|
|
|
|
|
+ registerDownloadE57Modal,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|