update 适配 ruoyi 关于优化导出数据操作

This commit is contained in:
疯狂的狮子li
2021-11-17 19:42:14 +08:00
parent 64add90edd
commit 2781655b0a
12 changed files with 14 additions and 68 deletions

View File

@ -77,7 +77,6 @@
plain
icon="el-icon-download"
size="mini"
:loading="exportLoading"
@click="handleExport"
v-hasPermi="['demo:demo:export']"
>导出</el-button>
@ -181,8 +180,6 @@ export default {
buttonLoading: false,
// 遮罩层
loading: true,
// 导出遮罩层
exportLoading: false,
// 选中数组
ids: [],
// 非单个禁用
@ -358,7 +355,9 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
this.$download.excel('/demo/demo/export', this.queryParams);
this.download('demo/demo/export', {
...this.queryParams
}, `demo_${new Date().getTime()}.xlsx`)
}
}
};