feat(money-detail): 添加导出按钮和调整充值时间列的边框颜色
在充值明细页面添加了一个导出按钮,允许用户导出数据。 此外,调整了“充值时间”列的边框颜色,以区分不同的列并提高可读性。master
parent
43209419f5
commit
b2b481f4d1
|
@ -2,6 +2,17 @@
|
||||||
<div style="padding: 20px;">
|
<div style="padding: 20px;">
|
||||||
<h1 style="text-align: center; margin-bottom: 30px;">充值明细</h1>
|
<h1 style="text-align: center; margin-bottom: 30px;">充值明细</h1>
|
||||||
<el-divider></el-divider>
|
<el-divider></el-divider>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
v-hasPermi="['system:pay:export']"
|
||||||
|
icon="el-icon-download"
|
||||||
|
plain
|
||||||
|
size="mini"
|
||||||
|
type="warning"
|
||||||
|
@click="handleExport"
|
||||||
|
>导出
|
||||||
|
</el-button>
|
||||||
|
</el-col>
|
||||||
<el-table
|
<el-table
|
||||||
:data="listDate"
|
:data="listDate"
|
||||||
style="width: 100%; border-collapse: collapse;">
|
style="width: 100%; border-collapse: collapse;">
|
||||||
|
@ -40,7 +51,7 @@
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="充值时间"
|
label="充值时间"
|
||||||
width="300"
|
width="300"
|
||||||
style="border: 1px solid #ccc; padding: 10px; text-align: center;">
|
style="border: 1px solid #ca8a8a; padding: 10px; text-align: center;">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.createTime }}
|
{{ scope.row.createTime }}
|
||||||
</template>
|
</template>
|
||||||
|
@ -76,6 +87,12 @@ export default {
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
this.download('system/user/export', {
|
||||||
|
...this.queryParams
|
||||||
|
}, `pay_${new Date().getTime()}.xlsx`)
|
||||||
|
},
|
||||||
getList() {
|
getList() {
|
||||||
userPayinfo(this.addDateRange(this.queryParams)).then(response => {
|
userPayinfo(this.addDateRange(this.queryParams)).then(response => {
|
||||||
this.listDate = response.data.rows;
|
this.listDate = response.data.rows;
|
||||||
|
|
Loading…
Reference in New Issue