```refactor(money-detail): 优化表格布局并添加分页功能
调整表格样式,以提升视觉效果和可读性。添加分页组件以支持大量数据的管理。 ```master
parent
6a6cd790cf
commit
c8c05ee785
|
@ -1,52 +1,67 @@
|
|||
<template>
|
||||
<div>
|
||||
<h1>充值明细</h1>
|
||||
<div style="padding: 20px;">
|
||||
<h1 style="text-align: center; margin-bottom: 30px;">充值明细</h1>
|
||||
<el-divider></el-divider>
|
||||
<el-table
|
||||
:data="listDate"
|
||||
style="width: 150%">
|
||||
style="width: 100%; border-collapse: collapse;">
|
||||
<el-table-column
|
||||
label="序号"
|
||||
width="180">
|
||||
width="300"
|
||||
style="border: 1px solid #ccc; padding: 10px; text-align: center;">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ scope.row.id }}</span>
|
||||
{{ scope.row.id }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="充值编号"
|
||||
width="180">
|
||||
width="300"
|
||||
style="border: 1px solid #ccc; padding: 10px; text-align: center;">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ scope.row.outTradeNo }}</span>
|
||||
{{ scope.row.outTradeNo }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="充值金额"
|
||||
width="180">
|
||||
width="300"
|
||||
style="border: 1px solid #ccc; padding: 10px; text-align: center;">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ scope.row.totalAmount }}</span>
|
||||
{{ scope.row.totalAmount }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="充值类型"
|
||||
width="180">
|
||||
width="300"
|
||||
style="border: 1px solid #ccc; padding: 10px; text-align: center;">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ scope.row.productCode }}</span>
|
||||
{{ scope.row.productCode }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="充值时间"
|
||||
width="180">
|
||||
width="300"
|
||||
style="border: 1px solid #ccc; padding: 10px; text-align: center;">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ scope.row.createTime }}</span>
|
||||
{{ scope.row.createTime }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:total="total"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
import { userPayinfo } from "@/api/system/user";
|
||||
import PanelGroup from "@/views/dashboard/PanelGroup.vue";
|
||||
export default {
|
||||
components: {PanelGroup},
|
||||
data() {
|
||||
return {
|
||||
listDate: [],
|
||||
|
@ -66,8 +81,7 @@ export default {
|
|||
this.listDate = response.data.rows;
|
||||
this.total = response.data.total;
|
||||
}
|
||||
);
|
||||
}
|
||||
);}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue