studentCashout.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <div>
  3. <div class="tableWrap">
  4. <el-table :data="tableList"
  5. :header-cell-style="{background:'#EDEEF0',color:'#444'}">
  6. <el-table-column label=提现交易流水号
  7. prop="id">
  8. </el-table-column>
  9. <el-table-column label=申请时间
  10. prop="createTime">
  11. <template slot-scope="scope">
  12. {{ scope.row.createTime | dateForMinFormat }}
  13. </template>
  14. </el-table-column>
  15. <el-table-column label=提现金额
  16. prop="amount">
  17. <template slot-scope="scope">
  18. <div>
  19. {{ scope.row.amount | moneyFormat }}
  20. </div>
  21. </template>
  22. </el-table-column>
  23. <el-table-column label=账户余额
  24. prop="balance">
  25. <template slot-scope="scope">
  26. <div>
  27. {{ scope.row.balance | moneyFormat }}
  28. </div>
  29. </template>
  30. </el-table-column>
  31. <el-table-column label=账户号
  32. prop="bankCardNo">
  33. </el-table-column>
  34. <el-table-column label=提现状态>
  35. <template slot-scope="scope">
  36. {{ scope.row.status | dealStatus }}
  37. </template>
  38. </el-table-column>
  39. <el-table-column label=支付账号
  40. prop="platformAccountNo">
  41. </el-table-column>
  42. <el-table-column label=支付渠道
  43. prop="channel">
  44. </el-table-column>
  45. <el-table-column label=交易流水号
  46. prop="withdrawNo">
  47. </el-table-column>
  48. </el-table>
  49. <pagination
  50. save-key='studentDetail-studentCashout'
  51. sync
  52. :total.sync="pageInfo.total"
  53. :page.sync="pageInfo.page"
  54. :limit.sync="pageInfo.limit"
  55. :page-sizes="pageInfo.page_size"
  56. @pagination="getList" />
  57. </div>
  58. </div>
  59. </template>
  60. <script>
  61. import pagination from '@/components/Pagination/index'
  62. import { studentWithdraw } from '@/api/studentManager'
  63. export default {
  64. name: 'studentCashout',
  65. components: { pagination },
  66. data () {
  67. return {
  68. searceList: {},
  69. tableList: [],
  70. pageInfo: {
  71. // 分页规则
  72. limit: 10, // 限制显示条数
  73. page: 1, // 当前页
  74. total: 0, // 总条数
  75. page_size: [10, 20, 40, 50] // 选择限制显示条数
  76. },
  77. }
  78. },
  79. mounted () {
  80. this.getList()
  81. },
  82. activated () {
  83. this.getList()
  84. },
  85. methods: {
  86. getList () {
  87. studentWithdraw({
  88. userId: this.$route.query.userId,
  89. rows: this.pageInfo.limit,
  90. page: this.pageInfo.page
  91. }).then(res => {
  92. if (res.code == 200) {
  93. this.tableList = res.data.rows
  94. }
  95. })
  96. }
  97. }
  98. }
  99. </script>
  100. <style lang="scss">
  101. </style>