index.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <template>
  2. <div class='td-container'>
  3. <h2>
  4. 武汉小学乐团
  5. <div class="term">第一学期</div>
  6. <div class="term active">第一学期</div>
  7. </h2>
  8. <div class="td-core">
  9. <p class='msg'>乐团状态:开团中</p>
  10. <!-- navMenu -->
  11. <el-tabs v-model="activeName"
  12. type="card"
  13. @tab-click="handleClick">
  14. <el-tab-pane label="基本信息"
  15. name="1">
  16. </el-tab-pane>
  17. <el-tab-pane label="老师列表"
  18. name="2">
  19. <teacherList />
  20. </el-tab-pane>
  21. <el-tab-pane label="学员列表"
  22. name="3">
  23. <studentList />
  24. </el-tab-pane>
  25. <el-tab-pane label="班级详情"
  26. name="4">
  27. <classList />
  28. </el-tab-pane>
  29. <el-tab-pane label="课表详情"
  30. name="5">
  31. </el-tab-pane>
  32. <el-tab-pane label="基本信息"
  33. name="6">
  34. <courseList />
  35. </el-tab-pane>
  36. <el-tab-pane label="课酬调整"
  37. name="7">
  38. </el-tab-pane>
  39. </el-tabs>
  40. <!-- <div class="contentWrap">
  41. <keep-alive>
  42. <transition name="fade"
  43. mode="out-in">
  44. <studentList v-if="activeName == 3" />
  45. <teacherList v-if="activeName == 2" />
  46. <courseList v-if="activeName == 4" />
  47. <classList v-if="activeName == 5" />
  48. </transition>
  49. </keep-alive>
  50. </div> -->
  51. </div>
  52. </div>
  53. </template>
  54. <script>
  55. import studentList from '@/views/teamDetail/components/studentList'
  56. import teacherList from '@/views/teamDetail/components/teacherList'
  57. import courseList from '@/views/teamDetail/components/courseList'
  58. import classList from '@/views/teamDetail/components/classList'
  59. export default {
  60. data () {
  61. return {
  62. activeName: '2',
  63. }
  64. },
  65. methods: {
  66. handleClick (val) {
  67. this.activeIndex = val;
  68. }
  69. },
  70. components: {
  71. studentList,
  72. teacherList,
  73. courseList,
  74. classList
  75. }
  76. }
  77. </script>
  78. <style lang="scss" scoped>
  79. .td-container {
  80. box-sizing: border-box;
  81. background-color: #fff;
  82. padding: 18px 95px 55px 60px;
  83. h2 {
  84. height: 48px;
  85. line-height: 48px;
  86. position: relative;
  87. padding-left: 30px;
  88. margin-bottom: 30px;
  89. display: flex;
  90. flex-direction: row;
  91. justify-content: flex-start;
  92. align-items: center;
  93. }
  94. .td-core {
  95. background-color: #fff;
  96. min-height: calc(100vh - 160px);
  97. padding: 0 40px;
  98. .msg {
  99. text-align: right;
  100. }
  101. }
  102. .term {
  103. height: 32px;
  104. line-height: 32px;
  105. border-radius: 24px;
  106. width: 100px;
  107. color: #14928a;
  108. border: 1px solid rgba(20, 146, 138, 1);
  109. font-size: 14px;
  110. text-align: center;
  111. margin-right: 12px;
  112. &:nth-child(1) {
  113. margin-left: 47px;
  114. }
  115. }
  116. .term.active {
  117. color: #fff;
  118. background-color: #14928a;
  119. }
  120. }
  121. </style>
  122. <style >
  123. .el-tabs__item.is-active {
  124. color: #14928a;
  125. font-size: 14px;
  126. font-weight: 600;
  127. }
  128. .el-tabs__item:hover {
  129. color: #14928a;
  130. font-size: 14px;
  131. font-weight: 600;
  132. }
  133. </style>