index.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <template>
  2. <div class="m-container">
  3. <h2>
  4. <el-page-header @back="onCancel"
  5. content="乐团修改"></el-page-header>
  6. </h2>
  7. <div class="m-core">
  8. <!-- navMenu -->
  9. <el-tabs v-model.trim="activeIndex"
  10. type="card"
  11. @tab-click="handleClick">
  12. <el-tab-pane label="基本信息"
  13. v-if="permission('/resetTeaming/teamBaseInfo')"
  14. name="1">
  15. <teamBaseInfo v-if="activeIndex == 1"
  16. @getName='getName' />
  17. </el-tab-pane>
  18. <el-tab-pane label="声部设置"
  19. v-if="permission('/resetTeaming/resetSound')"
  20. name="2">
  21. <resetSound v-if="activeIndex == 2" />
  22. </el-tab-pane>
  23. <!-- <el-tab-pane label="学员缴费设置"
  24. v-if="permission('/resetTeaming/studentPayBase')"
  25. name="4">
  26. <studentPayBase v-if="activeIndex == 4" />
  27. </el-tab-pane> -->
  28. <el-tab-pane label="缴费设置"
  29. v-if="permission('/resetTeaming/resetPayList')"
  30. name="3">
  31. <resetPayList v-if="activeIndex == 3" />
  32. </el-tab-pane>
  33. <el-tab-pane label="班级调整"
  34. v-if="permission('/resetTeaming/resetClass')"
  35. name="5">
  36. <resetClass v-if="activeIndex == 5" />
  37. </el-tab-pane>
  38. <!-- <el-tab-pane label="新增排课"
  39. v-if="permission('/resetTeaming/coursePlan')"
  40. name="4">
  41. <coursePlan :teamid='teamid'
  42. v-if="activeIndex == 4" />
  43. </el-tab-pane> -->
  44. <!-- <el-tab-pane label="新增小班课"
  45. name="5">
  46. <improvement :teamid='teamid' />
  47. </el-tab-pane> 1-->
  48. <!-- 啦啦啦 -->
  49. </el-tabs>
  50. </div>
  51. </div>
  52. </template>
  53. <script>
  54. import teamBaseInfo from '@/views/teamBuild/components/teamBaseInfo'
  55. import resetSound from '@/views/resetTeaming/components/resetSound'
  56. import resetClass from '@/views/teamDetail/components/resetClass'
  57. // import coursePlan from '@/views/teamBuild/teamSeting/components/coursePlan'
  58. // import lookCourse from '@/views/teamBuild/teamSeting/components/lookCourse'
  59. // import improvement from '@/views/teamBuild/teamSeting/components/improvementClass'
  60. import resetPayList from '@/views/resetTeaming/components/resetPayList'
  61. import studentPayBase from '@/views/resetTeaming/components/studentPayBase'
  62. import { permission } from '@/utils/directivePage'
  63. export default {
  64. components: { teamBaseInfo, resetSound, resetClass, resetPayList, studentPayBase },
  65. name: 'resetTeaming',
  66. data () {
  67. return {
  68. activeIndex: '1',
  69. teamid: '',
  70. // permissionStatus: {
  71. // teamBaseInfo: true,
  72. // resetSound: true,
  73. // resetClass: true,
  74. // resetSound: true,
  75. // coursePlan: true,
  76. // }
  77. Fsearch: null,
  78. Frules: null,
  79. name: null
  80. }
  81. },
  82. created () {
  83. this.__init()
  84. },
  85. beforeDestroy () {
  86. sessionStorage.setItem('setStep', 0)
  87. sessionStorage.setItem('resetCode', 1)
  88. },
  89. mounted () {
  90. let obj = {}
  91. obj.name = this.activeIndex
  92. this.handleClick(obj)
  93. },
  94. activated () {
  95. this.__init()
  96. },
  97. methods: {
  98. __init () {
  99. this.activeIndex = sessionStorage.getItem('resetCode') || '1';
  100. this.teamid = this.$route.query.id;
  101. if (this.$route.query.search) {
  102. this.Fsearch = this.$route.query.search;
  103. }
  104. if (this.$route.query.rules) {
  105. this.Frules = this.$route.query.rules
  106. }
  107. },
  108. onCancel () {
  109. this.$router.push({ path: '/business/teamDetail', query: { search: this.Fsearch, rules: this.Frules } })
  110. },
  111. handleClick (val) {
  112. this.activeIndex = val.name
  113. },
  114. permission (str) {
  115. return permission(str)
  116. },
  117. getName (val) {
  118. // this.name = val
  119. }
  120. },
  121. }
  122. </script>
  123. <style lang="scss" scoped>
  124. </style>