1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
| <template>
| <div class="apply-info">
| <CommTable
| :pageInfo="pageInfo"
| :isAutoIndex="true"
| :list="formList"
| @handleCurrentChange="handleCurrentChange"
| @handleSizeChange="handleSizeChange"
| :header="tableHeader"
| :total="total"
| v-bind="$attrs"
| title="银行流水信息"
| ></CommTable>
| </div>
| </template>
| <script>
| // 转账认领撤销银行流水详情
| import CommTable from "@/components/CommTable";
| import transferAcctBankRecordsList from "@/controller/transferAcctBankRecordsList";
|
| export default {
| components: {
| CommTable
| },
| data() {
| return {
| loading: false,
| tableHeader: [],
| info: {},
| query: {},
| formList: [],
| model: null,
| total: 0,
| pageInfo: {
| currentPage: 1,
| pageSize: 10
| },
| };
| },
| created() {
| this.init();
| },
| methods: {
| init() {
| const { query } = this.$route;
| this.query = query;
| const model = transferAcctBankRecordsList();
| this.tableHeader = model.getTableList();
| this.model = model;
| this.getList();
| },
| async getList() {
| this.loading = true
| const { query, model, pageInfo, formValues } = this;
| const { transSerialNo } = query;
| const res = await model.request({
| ...pageInfo,
| ...formValues,
| transSerialNo
| });
| this.loading = false
| const { list, total } = res;
| this.formList = list;
| this.total = parseInt(total);
| },
| // 修改翻页数
| handleSizeChange(val) {
| this.pageInfo.pageSize = val
| this.getList()
| },
| // 修改翻页数
| handleCurrentChange(val) {
| this.pageInfo.currentPage = val
| this.getList()
| },
| },
| watch: {
| $route() {
| const { transSerialNo } = this.$route.query
| if (transSerialNo) {
| this.init()
| }
| }
| }
| };
| </script>
| <style lang="postcss" scoped>
| .apply-info {
| }
| </style>
|
|