vip_info.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <div class="mainContainer">
  3. <div class="mainTableTools">
  4. <el-row :gutter="20">
  5. <el-col :span="5">
  6. <div class="mainTableTagbox">
  7. <el-tag>开发者会员总数:<b>{{total}}</b></el-tag>
  8. </div>
  9. </el-col>
  10. </el-row>
  11. </div>
  12. <el-table :data="tableData" border>
  13. <el-table-column prop="uid" label="用户">
  14. <template slot-scope="scope">
  15. <span class="lblue point">
  16. <a target="_blank" :href="scope.row.host+'/rooter/user/'+scope.row.uid">{{scope.row.nickname}}</a>
  17. </span>
  18. </template>
  19. </el-table-column>
  20. <el-table-column prop="occupation_name" label="职业方向"></el-table-column>n>
  21. <el-table-column prop="end_time" label="到期时间"></el-table-column>
  22. <el-table-column prop="count_total" label="累计派单数"></el-table-column>
  23. <el-table-column prop="count_month" label="本月派单数"></el-table-column>
  24. </el-table>
  25. <div class="mainPageBox">
  26. <el-pagination
  27. @current-change="changePagination"
  28. :page-size="20"
  29. :total="Number(total)"
  30. layout="total, prev, pager, next"
  31. background
  32. ></el-pagination>
  33. </div>
  34. </div>
  35. </template>
  36. <script>
  37. export default {
  38. data() {
  39. return {
  40. page: 1,
  41. page_size: 20,
  42. total: 0,
  43. tableData: []
  44. }
  45. },
  46. computed: {
  47. },
  48. mounted() {
  49. this.getList();
  50. },
  51. methods: {
  52. async getList() {
  53. const data = {
  54. page: this.page,
  55. page_size: this.page_size,
  56. type: this.selectedType
  57. };
  58. let res = await this.$post("/api/admin/vip/getVipsInfo", data);
  59. if (res && res.status === 1) {
  60. this.tableData = res.data.list;
  61. this.total = res.data.total;
  62. }
  63. },
  64. changePagination(val) {
  65. this.page = val;
  66. this.getList();
  67. },
  68. }
  69. };
  70. </script>