index.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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'> <img src="@/assets/images/base/clock.png"
  10. alt=""> 报名中</p>
  11. <!-- navMenu -->
  12. <el-tabs v-model="activeName"
  13. type="card"
  14. @tab-click="handleClick">
  15. <el-tab-pane label="基本信息"
  16. name="1">
  17. </el-tab-pane>
  18. <el-tab-pane label="老师列表"
  19. name="2">
  20. <teacherList />
  21. </el-tab-pane>
  22. <el-tab-pane label="学员列表"
  23. name="3">
  24. <studentList />
  25. </el-tab-pane>
  26. <el-tab-pane label="班级详情"
  27. name="4">
  28. <classList />
  29. </el-tab-pane>
  30. <el-tab-pane label="课表详情"
  31. name="5">
  32. <courseList />
  33. </el-tab-pane>
  34. <el-tab-pane label="课程课酬"
  35. name="6">
  36. <salaryList />
  37. </el-tab-pane>
  38. <el-tab-pane label="课酬调整"
  39. name="7">
  40. </el-tab-pane>
  41. </el-tabs>
  42. </div>
  43. </div>
  44. </template>
  45. <script>
  46. import studentList from '@/views/teamDetail/components/studentList'
  47. import teacherList from '@/views/teamDetail/components/teacherList'
  48. import courseList from '@/views/teamDetail/components/courseList'
  49. import classList from '@/views/teamDetail/components/classList'
  50. import salaryList from '@/views/teamDetail/components/salaryList'
  51. export default {
  52. data () {
  53. return {
  54. activeName: '3',
  55. }
  56. },
  57. methods: {
  58. handleClick (val) {
  59. this.activeIndex = val;
  60. }
  61. },
  62. components: {
  63. studentList,
  64. teacherList,
  65. courseList,
  66. classList,
  67. salaryList
  68. }
  69. }
  70. </script>
  71. <style lang="scss" scoped>
  72. .td-container {
  73. box-sizing: border-box;
  74. background-color: #fff;
  75. padding: 18px 95px 55px 60px;
  76. h2 {
  77. height: 48px;
  78. line-height: 48px;
  79. position: relative;
  80. padding-left: 30px;
  81. margin-bottom: 30px;
  82. display: flex;
  83. flex-direction: row;
  84. justify-content: flex-start;
  85. align-items: center;
  86. }
  87. .td-core {
  88. background-color: #fff;
  89. min-height: calc(100vh - 160px);
  90. padding: 0 40px;
  91. position: relative;
  92. .msg {
  93. text-align: right;
  94. color: #f97215;
  95. font-size: 32px;
  96. font-weight: bold;
  97. position: absolute;
  98. right: 40px;
  99. top: -33px;
  100. img {
  101. width: 36px;
  102. height: 36px;
  103. position: relative;
  104. top: 5px;
  105. margin-right: 8px;
  106. }
  107. }
  108. }
  109. .term {
  110. height: 32px;
  111. line-height: 32px;
  112. border-radius: 24px;
  113. width: 100px;
  114. color: #14928a;
  115. border: 1px solid rgba(20, 146, 138, 1);
  116. font-size: 16px;
  117. text-align: center;
  118. margin-right: 12px;
  119. &:nth-child(1) {
  120. margin-left: 47px;
  121. }
  122. }
  123. .term.active {
  124. color: #fff;
  125. background-color: #14928a;
  126. }
  127. }
  128. </style>
  129. <style lang='scss'>
  130. .el-tabs__item.is-active {
  131. color: #14928a;
  132. font-size: 16px;
  133. font-weight: 600;
  134. }
  135. .el-tabs__item:hover {
  136. color: #14928a;
  137. font-size: 16px;
  138. font-weight: 600;
  139. }
  140. .headWrap {
  141. padding: 40px 0;
  142. display: flex;
  143. flex-direction: row;
  144. justify-content: space-between;
  145. align-items: center;
  146. .left {
  147. width: 1000px;
  148. display: flex;
  149. flex-direction: row;
  150. justify-content: flex-start;
  151. align-items: center;
  152. flex-wrap: wrap;
  153. .headItem {
  154. width: 364px;
  155. height: 30px;
  156. color: #444;
  157. border-right: 1px solid #979797;
  158. p {
  159. font-size: 14px;
  160. line-height: 30px;
  161. span {
  162. font-size: 16px;
  163. line-height: 30px;
  164. }
  165. }
  166. &:nth-child(1) {
  167. width: 256px;
  168. }
  169. &:nth-child(2n) {
  170. text-align: center;
  171. }
  172. &:nth-child(3n) {
  173. border-right: 1px solid #fff;
  174. text-align: center;
  175. }
  176. &:nth-child(4n) {
  177. text-align: left !important;
  178. width: 256px;
  179. }
  180. }
  181. }
  182. }
  183. </style>