1
PC-20250623MANY\Administrator
2025-08-21 25c1d10f03df05104e323494fefd5af1e94c98f7
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<template>
  <div class="dawr">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane :label="$t('dep')" name="1">
        <el-table
          height="250"
          :data="tableData"
          style="width: 100%"
          empty-text="No Data"
        >
          <el-table-column prop="payAmt" :label="$t('je')">
            <template slot-scope="scope">
              <span class="sc_c">
                {{ scope.row.assetsType }}
                {{ scope.row.payAmt }}
              </span>
            </template>
          </el-table-column>
 
          <el-table-column prop="orderSn" :label="$t('hj234')">
          </el-table-column>
          <el-table-column prop="payTime" :label="$t('时间')">
          </el-table-column>
 
          <el-table-column prop="orderStatus" :label="$t('状态')">
            <template slot-scope="scope">
              <el-tag type="warning" v-if="scope.row.orderStatus == 0">
                {{ $t("hjshz") }}
              </el-tag>
              <el-tag type="success" v-else-if="scope.row.orderStatus == 1">
                {{ $t("hj231") }}
              </el-tag>
              <el-tag type="danger" v-else-if="scope.row.orderStatus == 2">
                {{ $t("hj232") }}
              </el-tag>
            </template>
          </el-table-column>
        </el-table>
      </el-tab-pane>
      <el-tab-pane :label="$t('subdka')" name="2">
        <el-table
          height="250"
          :data="tableData"
          style="width: 100%"
          empty-text="No Data"
        >
          <el-table-column prop="withAmt" :label="$t('je')"> </el-table-column>
          <el-table-column prop="withFee" :label="$t('hj44')">
          </el-table-column>
          <el-table-column prop="applyTime" :label="$t('时间')" width="180">
          </el-table-column>
          <el-table-column prop="bankName" :label="$t('hj247')">
          </el-table-column>
          <el-table-column prop="bankNo" :label="$t('hjkh')"> </el-table-column>
 
          <el-table-column prop="withStatus" :label="$t('状态')">
            <template slot-scope="scope">
              <el-tag type="warning" v-if="scope.row.withStatus == 0">
                {{ $t("hjshz") }}
              </el-tag>
              <el-tag type="success" v-else-if="scope.row.withStatus == 1">
                {{ $t("hj231") }}
              </el-tag>
              <el-tag type="danger" v-else-if="scope.row.withStatus == 2">
                {{ $t("hj232") }}
              </el-tag>
              <el-tag type="danger" v-else-if="scope.row.withStatus == 3">
                {{ $t("hj233") }}
              </el-tag>
            </template>
          </el-table-column>
        </el-table>
      </el-tab-pane>
    </el-tabs>
 
    <div class="pagination">
      <el-pagination
        background
        layout="prev, pager, next"
        :total="total"
        :current-page="pageNum"
        :page-size="pageSize"
        @current-change="handleCurrentChange"
      >
      </el-pagination>
    </div>
  </div>
</template>
 
<script>
import mixins from "@/mixins/myMixins"; // 混入
import * as api from "@/axios/api";
import { mapState } from "vuex";
export default {
  mixins: [mixins],
  data() {
    return {
      activeName: "1", // 默认选中, 1:充值 2:提现
      // 列表参数,必须是opt和myMixins混入配合使用
      opt: {},
    };
  },
  computed: {
    ...mapState(["userInfo"]),
  },
  watch: {},
  created() {
    this.apiInterface = api.rechargeList; // 赋值接口
    this.init(); // 获取记录列表
  },
  methods: {
    handleClick() {
      if (this.activeName == 1) {
        this.apiInterface = api.rechargeList; // 提现接口
      } else if (this.activeName == 2) {
        this.apiInterface = api.withdrawList; // 充值接口
      }
      this.handleCurrentChange(1);
    },
  },
};
</script>
 
<style lang="scss" scoped>
.dawr {
  width: 100%;
 
  .pagination {
    margin-top: 20px;
    text-align: center;
  }
}
</style>