123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226 |
- <template>
- <div class='set-container'>
- <div class="topWrap">
- <h2>
- <div class="squrt"></div>
- 武汉小学乐团
- </h2>
- <div class="stepbox">
- <span class='stepspan'
- @click="activeIndex=0">
- <div class="step1 sptep"
- :class="activeIndex >= 0?'activestep':''">
- 基本信息
- </div>
- <img :src="activeIndex >= 0?stepImgs.nol:stepImgs.active"
- alt=""
- class="arrow">
- </span>
- <span class='stepspan stepspan2'
- @click="activeIndex=1">
- <div class="step2 sptep"
- :class="activeIndex >= 1?'activestep':''">
- 老师设置
- </div>
- <img :src="activeIndex >= 1?stepImgs.nol:stepImgs.active"
- alt=""
- class="
- arrow">
- </span>
- <span class='stepspan stepspan2'
- @click="activeIndex=2">
- <div class="step2 sptep"
- :class="activeIndex >= 2?'activestep':''">
- 排课
- </div>
- <img :src="activeIndex >= 2?stepImgs.nol:stepImgs.active"
- alt=""
- class="
- arrow">
- </span>
- <span class='stepspan stepspan2'
- @click="activeIndex=3">
- <div class="step2 sptep"
- :class="activeIndex >= 3?'activestep':''">
- 课酬
- </div>
- <img :src="activeIndex >= 3?stepImgs.nol:stepImgs.active"
- alt=""
- class="
- arrow">
- </span>
- </div>
- </div>
- <!-- 下面显示的内容 -->
- <div class="stepcontent">
- <div v-show='activeIndex==0'>
- <classSeting />
- </div>
- <div v-show='activeIndex==1'>
- <teacherSeting />
- </div>
- <div v-show='activeIndex==2'>
- <coursePlan />
- </div>
- <div v-show='activeIndex==3'>
- <salarySet />
- </div>
- </div>
- </div>
- </template>
- <script>
- import classSeting from '@/views/teamBuild/teamSeting/components/setClass'
- import teacherSeting from '@/views/teamBuild/teamSeting/components/setTeacher'
- import coursePlan from '@/views/teamBuild/teamSeting/components/coursePlan'
- import salarySet from '@/views/teamBuild/teamSeting/components/salarySet'
- export default {
- components: {
- classSeting,
- teacherSeting,
- coursePlan,
- salarySet
- },
- data () {
- return {
- activeIndex: '3',
- stepImgs: {
- nol: require('@/assets/images/base/step-arrow-active.png'),
- active: require('@/assets/images/base/step-arrow.png')
- }
- }
- }
- }
- </script>
- <style lang="scss" scope>
- .set-container {
- margin-left: 12px;
- .topWrap {
- padding: 18px 58px 0;
- // height: 136px;
- background-color: #fff;
- // display: flex;
- // flex-direction: row;
- // justify-content: space-between;
- .msg {
- text-align: right;
- color: #f97215;
- font-size: 32px;
- font-weight: bold;
- padding-top: 30px;
- box-sizing: border-box;
- img {
- width: 36px;
- height: 36px;
- position: relative;
- top: 5px;
- margin-right: 8px;
- }
- }
- h2 {
- height: 48px;
- line-height: 48px;
- position: relative;
- // padding-left: 30px;
- font-size: 32px;
- font-weight: 600;
- margin-bottom: 10px;
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- align-items: center;
- .term {
- height: 32px;
- line-height: 32px;
- border-radius: 24px;
- width: 100px;
- color: #14928a;
- border: 1px solid rgba(20, 146, 138, 1);
- font-size: 14px;
- text-align: center;
- margin-right: 12px;
- &:nth-child(1) {
- margin-left: 47px;
- }
- }
- .term.active {
- color: #fff;
- background-color: #14928a;
- }
- .squrt {
- position: absolute;
- left: -25px;
- top: 8px;
- height: 34px;
- width: 8px;
- background-color: #14928a;
- }
- }
- .btnList {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- align-items: center;
- div {
- margin-right: 15px;
- }
- }
- .newBand.close {
- background-color: #777;
- border: 1px solid #777;
- }
- }
- .stepbox {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- margin-top: 30px;
- .stepspan {
- cursor: pointer;
- font-size: 14px;
- display: block;
- line-height: 40px;
- // position: relative;
- // z-index: 100;
- display: flex;
- flex-direction: row;
- // justify-content: space-between;
- margin-left: -17px !important;
- .sptep {
- width: 110px;
- height: 40px;
- border: 1px solid #dcdfe6;
- border-right: none;
- border-bottom: none;
- padding-left: 25px;
- border-radius: 4px 0 0 0;
- text-align: center;
- }
- .arrow {
- height: 40px;
- width: 17px;
- position: relative;
- top: 1px;
- z-index: 20;
- }
- }
- .stepspan.stepspan2 {
- position: relative;
- .sptep {
- padding-left: 12px !important;
- border-radius: 0 !important;
- }
- }
- .sptep.activestep {
- color: #fff;
- font-weight: bold;
- background-color: #4eada7;
- }
- }
- .stepcontent {
- border-top: 1px solid #dcdfe6;
- padding-top: 12px;
- }
- }
- </style>
|