feat: 新增数据导出中心功能

This commit is contained in:
taojinlong 2024-04-07 17:07:29 +08:00
parent 151315d683
commit a87e999e6f
3 changed files with 1 additions and 33 deletions

View File

@ -318,7 +318,6 @@ export default {
this.beforeUnload_time = new Date().getTime()
},
downloadClick() {
console.log('this.$refs.ExportExcelRef', this.$refs.ExportExcelRef)
this.$refs.ExportExcelRef.init()
},
unloadHandler(e) {
@ -327,7 +326,6 @@ export default {
// this.logout().then(res => {})
}
},
// store
initCurrentRoutes() {
const {

View File

@ -537,7 +537,7 @@ export default {
this.table.expressionTree = JSON.stringify({ items, logic })
this.exportDatasetLoading = true
exportDataset(this.table).then((res) => {
this.openMessageSuccess('后台导出中', 'info')
this.openMessageSuccess('后台导出中,查看进度可前往', 'info')
}).finally(() => {
this.exportDatasetLoading = false
this.showExport = false

View File

@ -189,36 +189,6 @@ export default {
};
this.handlerConfirm(options);
},
openMessageLoading(cb) {
const h = this.$createElement;
const iconClass = `el-icon-loading`;
const customClass = `de-message-loading de-message-export`;
this.$message({
message: h("p", null, [
"后台导出中,可前往",
h(
Button,
{
props: {
type: "text",
size: "mini",
},
class: "btn-text",
on: {
click: () => {
cb();
},
},
},
"数据导出中心",
),
"查看进度,进行下载、暂停等操作",
]),
iconClass,
showClose: true,
customClass,
});
},
delAll() {
post(
'/exportCenter/delete',