index.vue 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <div class="m-container">
  3. <h2>
  4. <el-page-header @back="onCancel"
  5. content="学员详情"></el-page-header>
  6. </h2>
  7. <div class="m-core">
  8. <!-- navMenu -->
  9. <el-tabs v-model="activeIndex"
  10. type="card"
  11. @tab-click="handleClick">
  12. <el-tab-pane label="基本信息"
  13. name="1">
  14. <studentInfo v-if="activeIndex == 1" />
  15. </el-tab-pane>
  16. <el-tab-pane label="乐团&课程"
  17. name="2">
  18. <teamAndcourse v-if="activeIndex == 2" />
  19. </el-tab-pane>
  20. <el-tab-pane label="VIP课"
  21. name="3">
  22. <studentVip v-if="activeIndex == 3" />
  23. </el-tab-pane>
  24. <el-tab-pane label="上课记录"
  25. name="4">
  26. <studentRecord v-if="activeIndex == 4" />
  27. </el-tab-pane>
  28. <el-tab-pane label="扣费记录"
  29. name="5">
  30. <studentPayList v-if="activeIndex == 5" />
  31. </el-tab-pane>
  32. <el-tab-pane label="学员订单"
  33. name="6">
  34. <studentOrder v-if="activeIndex == 6" />
  35. </el-tab-pane>
  36. <el-tab-pane label="学员提现"
  37. name="7">
  38. <studentCashout v-if="activeIndex == 7" />
  39. </el-tab-pane>
  40. </el-tabs>
  41. </div>
  42. </div>
  43. </template>
  44. <script>
  45. import studentInfo from './components/studentInfo.vue';
  46. import teamAndcourse from './components/teamAndcourse.vue';
  47. import studentRecord from './components/studentRecord.vue';
  48. import studentPayList from './components/studentPayList.vue';
  49. import studentVip from './components/studentVip.vue';
  50. import studentOrder from './components/studentOrder.vue';
  51. import studentCashout from './components/studentCashout.vue';
  52. export default {
  53. components: {
  54. teamAndcourse,
  55. studentRecord,
  56. studentPayList,
  57. studentInfo,
  58. studentVip,
  59. studentOrder,
  60. studentCashout
  61. },
  62. name: 'studentDetail',
  63. data () {
  64. return {
  65. activeIndex: '1',
  66. // acitveStatus: [true, false, false, false, false, false, false]
  67. }
  68. },
  69. mounted () {
  70. if (this.$route.query.search) {
  71. this.Fsearch = this.$route.query.search;
  72. }
  73. if (this.$route.query.rules) {
  74. this.Frules = this.$route.query.rules
  75. }
  76. },
  77. methods: {
  78. onCancel () {
  79. this.$router.push({ path: '/business/studentList', query: { rules: this.Frules, search: this.Fsearch } })
  80. },
  81. handleClick (val) {
  82. this.activeIndex = val.name
  83. // this.acitveStatus[val.name - 1] = true
  84. }
  85. }
  86. }
  87. </script>
  88. <style lang="scss">
  89. </style>