forked from github/dataease
feat: 新增数据导出中心功能
This commit is contained in:
parent
151315d683
commit
a87e999e6f
@ -318,7 +318,6 @@ export default {
|
|||||||
this.beforeUnload_time = new Date().getTime()
|
this.beforeUnload_time = new Date().getTime()
|
||||||
},
|
},
|
||||||
downloadClick() {
|
downloadClick() {
|
||||||
console.log('this.$refs.ExportExcelRef', this.$refs.ExportExcelRef)
|
|
||||||
this.$refs.ExportExcelRef.init()
|
this.$refs.ExportExcelRef.init()
|
||||||
},
|
},
|
||||||
unloadHandler(e) {
|
unloadHandler(e) {
|
||||||
@ -327,7 +326,6 @@ export default {
|
|||||||
// this.logout().then(res => {})
|
// this.logout().then(res => {})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// 通过当前路径找到二级菜单对应项,存到store,用来渲染左侧菜单
|
// 通过当前路径找到二级菜单对应项,存到store,用来渲染左侧菜单
|
||||||
initCurrentRoutes() {
|
initCurrentRoutes() {
|
||||||
const {
|
const {
|
||||||
|
@ -537,7 +537,7 @@ export default {
|
|||||||
this.table.expressionTree = JSON.stringify({ items, logic })
|
this.table.expressionTree = JSON.stringify({ items, logic })
|
||||||
this.exportDatasetLoading = true
|
this.exportDatasetLoading = true
|
||||||
exportDataset(this.table).then((res) => {
|
exportDataset(this.table).then((res) => {
|
||||||
this.openMessageSuccess('后台导出中', 'info')
|
this.openMessageSuccess('后台导出中,查看进度可前往', 'info')
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.exportDatasetLoading = false
|
this.exportDatasetLoading = false
|
||||||
this.showExport = false
|
this.showExport = false
|
||||||
|
@ -189,36 +189,6 @@ export default {
|
|||||||
};
|
};
|
||||||
this.handlerConfirm(options);
|
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() {
|
delAll() {
|
||||||
post(
|
post(
|
||||||
'/exportCenter/delete',
|
'/exportCenter/delete',
|
||||||
|
Loading…
Reference in New Issue
Block a user