index.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. <template>
  2. <div class='set-container'>
  3. <div class="topWrap">
  4. <h2>
  5. <div class="squrt"></div>
  6. 武汉小学乐团
  7. </h2>
  8. <div class="stepbox">
  9. <span class='stepspan'
  10. @click="activeIndex=0">
  11. <div class="step1 sptep"
  12. :class="activeIndex >= 0?'activestep':''">
  13. 基本信息
  14. </div>
  15. <img :src="activeIndex >= 0?stepImgs.nol:stepImgs.active"
  16. alt=""
  17. class="arrow">
  18. </span>
  19. <span class='stepspan stepspan2'
  20. @click="activeIndex=1">
  21. <div class="step2 sptep"
  22. :class="activeIndex >= 1?'activestep':''">
  23. 老师设置
  24. </div>
  25. <img :src="activeIndex >= 1?stepImgs.nol:stepImgs.active"
  26. alt=""
  27. class="
  28. arrow">
  29. </span>
  30. <span class='stepspan stepspan2'
  31. @click="activeIndex=2">
  32. <div class="step2 sptep"
  33. :class="activeIndex >= 2?'activestep':''">
  34. 排课
  35. </div>
  36. <img :src="activeIndex >= 2?stepImgs.nol:stepImgs.active"
  37. alt=""
  38. class="
  39. arrow">
  40. </span>
  41. <span class='stepspan stepspan2'
  42. @click="activeIndex=3">
  43. <div class="step2 sptep"
  44. :class="activeIndex >= 3?'activestep':''">
  45. 课酬
  46. </div>
  47. <img :src="activeIndex >= 3?stepImgs.nol:stepImgs.active"
  48. alt=""
  49. class="
  50. arrow">
  51. </span>
  52. </div>
  53. </div>
  54. <!-- 下面显示的内容 -->
  55. <div class="stepcontent">
  56. <div v-show='activeIndex==0'>
  57. <classSeting />
  58. </div>
  59. <div v-show='activeIndex==1'>
  60. <teacherSeting />
  61. </div>
  62. <div v-show='activeIndex==2'>
  63. <coursePlan />
  64. </div>
  65. <div v-show='activeIndex==3'>
  66. <salarySet />
  67. </div>
  68. </div>
  69. </div>
  70. </template>
  71. <script>
  72. import classSeting from '@/views/teamBuild/teamSeting/components/setClass'
  73. import teacherSeting from '@/views/teamBuild/teamSeting/components/setTeacher'
  74. import coursePlan from '@/views/teamBuild/teamSeting/components/coursePlan'
  75. import salarySet from '@/views/teamBuild/teamSeting/components/salarySet'
  76. export default {
  77. components: {
  78. classSeting,
  79. teacherSeting,
  80. coursePlan,
  81. salarySet
  82. },
  83. data () {
  84. return {
  85. activeIndex: '3',
  86. stepImgs: {
  87. nol: require('@/assets/images/base/step-arrow-active.png'),
  88. active: require('@/assets/images/base/step-arrow.png')
  89. }
  90. }
  91. }
  92. }
  93. </script>
  94. <style lang="scss" scope>
  95. .set-container {
  96. margin-left: 12px;
  97. .topWrap {
  98. padding: 18px 58px 0;
  99. // height: 136px;
  100. background-color: #fff;
  101. // display: flex;
  102. // flex-direction: row;
  103. // justify-content: space-between;
  104. .msg {
  105. text-align: right;
  106. color: #f97215;
  107. font-size: 32px;
  108. font-weight: bold;
  109. padding-top: 30px;
  110. box-sizing: border-box;
  111. img {
  112. width: 36px;
  113. height: 36px;
  114. position: relative;
  115. top: 5px;
  116. margin-right: 8px;
  117. }
  118. }
  119. h2 {
  120. height: 48px;
  121. line-height: 48px;
  122. position: relative;
  123. // padding-left: 30px;
  124. font-size: 32px;
  125. font-weight: 600;
  126. margin-bottom: 10px;
  127. display: flex;
  128. flex-direction: row;
  129. justify-content: flex-start;
  130. align-items: center;
  131. .term {
  132. height: 32px;
  133. line-height: 32px;
  134. border-radius: 24px;
  135. width: 100px;
  136. color: #14928a;
  137. border: 1px solid rgba(20, 146, 138, 1);
  138. font-size: 14px;
  139. text-align: center;
  140. margin-right: 12px;
  141. &:nth-child(1) {
  142. margin-left: 47px;
  143. }
  144. }
  145. .term.active {
  146. color: #fff;
  147. background-color: #14928a;
  148. }
  149. .squrt {
  150. position: absolute;
  151. left: -25px;
  152. top: 8px;
  153. height: 34px;
  154. width: 8px;
  155. background-color: #14928a;
  156. }
  157. }
  158. .btnList {
  159. display: flex;
  160. flex-direction: row;
  161. justify-content: flex-start;
  162. align-items: center;
  163. div {
  164. margin-right: 15px;
  165. }
  166. }
  167. .newBand.close {
  168. background-color: #777;
  169. border: 1px solid #777;
  170. }
  171. }
  172. .stepbox {
  173. display: flex;
  174. flex-direction: row;
  175. justify-content: flex-start;
  176. margin-top: 30px;
  177. .stepspan {
  178. cursor: pointer;
  179. font-size: 14px;
  180. display: block;
  181. line-height: 40px;
  182. // position: relative;
  183. // z-index: 100;
  184. display: flex;
  185. flex-direction: row;
  186. // justify-content: space-between;
  187. margin-left: -17px !important;
  188. .sptep {
  189. width: 110px;
  190. height: 40px;
  191. border: 1px solid #dcdfe6;
  192. border-right: none;
  193. border-bottom: none;
  194. padding-left: 25px;
  195. border-radius: 4px 0 0 0;
  196. text-align: center;
  197. }
  198. .arrow {
  199. height: 40px;
  200. width: 17px;
  201. position: relative;
  202. top: 1px;
  203. z-index: 20;
  204. }
  205. }
  206. .stepspan.stepspan2 {
  207. position: relative;
  208. .sptep {
  209. padding-left: 12px !important;
  210. border-radius: 0 !important;
  211. }
  212. }
  213. .sptep.activestep {
  214. color: #fff;
  215. font-weight: bold;
  216. background-color: #4eada7;
  217. }
  218. }
  219. .stepcontent {
  220. border-top: 1px solid #dcdfe6;
  221. padding-top: 12px;
  222. }
  223. }
  224. </style>