studentCashout.vue 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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 :total="pageInfo.total"
  50. :page.sync="pageInfo.page"
  51. :limit.sync="pageInfo.limit"
  52. :page-sizes="pageInfo.page_size"
  53. @pagination="getList" />
  54. </div>
  55. </div>
  56. </template>
  57. <script>
  58. import pagination from '@/components/Pagination/index'
  59. import { studentWithdraw } from '@/api/studentManager'
  60. export default {
  61. name: 'studentCashout',
  62. components: { pagination },
  63. data () {
  64. return {
  65. searceList: {},
  66. tableList: [],
  67. pageInfo: {
  68. // 分页规则
  69. limit: 10, // 限制显示条数
  70. page: 1, // 当前页
  71. total: 0, // 总条数
  72. page_size: [10, 20, 40, 50] // 选择限制显示条数
  73. },
  74. }
  75. },
  76. mounted () {
  77. // this.getList()
  78. },
  79. activated () {
  80. this.getList()
  81. },
  82. methods: {
  83. getList () {
  84. studentWithdraw({
  85. userId: this.$route.query.userId,
  86. rows: this.pageInfo.limit,
  87. page: this.pageInfo.page
  88. }).then(res => {
  89. if (res.code == 200) {
  90. this.tableList = res.data.rows
  91. }
  92. })
  93. }
  94. }
  95. }
  96. </script>
  97. <style lang="scss">
  98. </style>