123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- <template>
- <div class="m-container">
- <h2>
- <el-page-header @back="onCancel"
- :content="teamName"></el-page-header>
- </h2>
- <div class="m-core">
-
- <el-tabs v-model.trim="activeIndex"
- type="card"
- @tab-click="handleClick">
- <el-tab-pane label="基本信息"
- v-if="permission('/resetTeaming/teamBaseInfo')"
- name="1">
- <teamBaseInfo v-if="activeIndex == 1"
- @getBaseInfo="getBaseInfo"
- :baseInfo="baseInfo"
- @getName='getName' />
- </el-tab-pane>
- <el-tab-pane label="声部设置"
- v-if="permission('/resetTeaming/resetSound')"
- name="2">
- <resetSound v-if="activeIndex == 2" />
- </el-tab-pane>
-
- <el-tab-pane label="学员缴费设置"
- v-if="permission('/resetTeaming/resetPayList')"
- name="3">
- <resetPayList :baseInfo="baseInfo"
- v-if="activeIndex == 3"
- @changeActive="handleClick" />
- </el-tab-pane>
- <el-tab-pane label="学校缴费设置"
- v-if="permission('/resetTeaming/resetPayList')"
- name="6">
- <resetPayListSchool :baseInfo="baseInfo"
- v-if="activeIndex == 6"
- @changeActive="handleClick" />
- </el-tab-pane>
- <el-tab-pane label="班级调整"
- v-if="permission('/resetTeaming/resetClass')"
- name="5">
- <resetClass v-if="activeIndex == 5" :musicGroupInfo='musicGroupInfo'/>
- </el-tab-pane>
-
-
-
- </el-tabs>
- </div>
- </div>
- </template>
- <script>
- import teamBaseInfo from '@/views/teamBuild/components/teamBaseInfo'
- import resetSound from '@/views/resetTeaming/components/resetSoundv2'
- import resetClass from '@/views/teamDetail/components/resetClass'
- import resetPayList from '@/views/resetTeaming/components/resetPayList'
- import resetPayListSchool from '@/views/resetTeaming/components/resetPayListSchool'
- import studentPayBase from '@/views/resetTeaming/components/studentPayBase'
- import { permission } from '@/utils/directivePage'
- export default {
- components: { teamBaseInfo, resetSound, resetClass, resetPayList, resetPayListSchool, studentPayBase },
- name: 'resetTeaming',
- data () {
- return {
- activeIndex: '1',
- teamid: '',
- baseInfo: null,
-
-
-
-
-
-
-
- name: null,
- teamName: '乐团修改',
- musicGroupInfo:null
- }
- },
- created () {
-
- },
- beforeDestroy () {
- sessionStorage.setItem('setStep', 0)
- sessionStorage.setItem('resetCode', 1)
- },
- mounted () {
- let obj = {}
- obj.name = this.activeIndex
- this.handleClick(obj)
- this.__init()
- },
- activated () {
- let obj = {}
- obj.name = this.activeIndex
- this.handleClick(obj)
- this.__init()
- },
- methods: {
- __init () {
- this.activeIndex = sessionStorage.getItem('resetCode') || '1';
- this.teamid = this.$route.query.id;
- },
- onCancel () {
- this.$router.push({ path: '/business/teamDetail' })
- },
- getBaseInfo (baseInfo) {
- this.baseInfo = baseInfo
- this.teamName = baseInfo.musicGroup.name
- this.musicGroupInfo = baseInfo.musicGroup
- },
- handleClick (val) {
- this.activeIndex = val.name
- },
- permission (str) {
- return permission(str)
- },
- getName (val) {
-
- }
- },
- }
- </script>
- <style lang="scss" scoped>
- </style>
|