修改
This commit is contained in:
1 parent
378bc6a659
commit
d847967ef8
1 file changed
+14
-1
@@ -3,7 +3,14 @@
|
||||
<div class="layout-padding-auto layout-padding-view">
|
||||
<el-row>
|
||||
<div class="mb8" style="width: 100%">
|
||||
<right-toolbar class="ml10 mr20" style="float: right" :search="false" @queryTable="getList" />
|
||||
<right-toolbar
|
||||
class="ml10 mr20"
|
||||
style="float: right"
|
||||
:search="false"
|
||||
@queryTable="getList"
|
||||
:export="true"
|
||||
@exportExcel="exportExcel"
|
||||
/>
|
||||
</div>
|
||||
</el-row>
|
||||
<el-table
|
||||
@@ -71,6 +78,7 @@ import * as walletRechargeApplyApi from "/@/api/wallet/wallet-recharge-apply"
|
||||
import type { VNode } from "vue"
|
||||
import type { TableColumnCtx } from "element-plus"
|
||||
import { h } from "vue"
|
||||
import { downBlobFile } from "/@/utils/other"
|
||||
|
||||
interface SummaryMethodProps<T = any> {
|
||||
columns: TableColumnCtx<T>[]
|
||||
@@ -139,6 +147,11 @@ const getList = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
// 导出excel
|
||||
const exportExcel = () => {
|
||||
downBlobFile("/wallet/wallet-recharge-apply/export-excel", Object.assign(state.queryForm), "walletManage.xlsx")
|
||||
}
|
||||
|
||||
// 表格行尾合计
|
||||
const getSummaries = (param: SummaryMethodProps) => {
|
||||
const { columns, data: data1 } = param
|
||||
|
||||
Reference in new issue
Block a user