feat():增加导出功能
parent
2b1203b2b1
commit
1789f60443
|
@ -129,6 +129,7 @@ service.interceptors.response.use(res => {
|
|||
|
||||
// 通用下载方法
|
||||
export function download(url, params, filename, config) {
|
||||
debugger
|
||||
downloadLoadingInstance = Loading.service({
|
||||
text: "正在下载数据,请稍候",
|
||||
spinner: "el-icon-loading",
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
v-hasPermi="['system:config:export']"
|
||||
v-hasPermi="['pay:user:export']"
|
||||
icon="el-icon-download"
|
||||
plain
|
||||
size="mini"
|
||||
|
@ -300,11 +300,9 @@ if (row.status == 'Y'){
|
|||
this.getList();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(id) {
|
||||
|
||||
|
@ -318,9 +316,9 @@ if (row.status == 'Y'){
|
|||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('system/config/export', {
|
||||
this.download('pay/customer/export', {
|
||||
...this.queryParams
|
||||
}, `config_${new Date().getTime()}.xlsx`)
|
||||
}, `customer_${new Date().getTime()}.xlsx`)
|
||||
},
|
||||
|
||||
/** 重置按钮操作 */
|
||||
|
|
Loading…
Reference in New Issue