|
@@ -35,7 +35,7 @@
|
|
|
v-if="permission('/resetTeaming/resetPayList')"
|
|
|
name="3">
|
|
|
<resetPayList :baseInfo="baseInfo"
|
|
|
- v-if="activeIndex == 3"
|
|
|
+ v-if="activeIndex == 3&&baseInfo"
|
|
|
@changeActive="handleClick" />
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="学校缴费设置"
|
|
@@ -43,7 +43,7 @@
|
|
|
v-if="permission('/resetTeaming/resetPayList')"
|
|
|
name="6">
|
|
|
<resetPayListSchool :baseInfo="baseInfo"
|
|
|
- v-if="activeIndex == 6"
|
|
|
+ v-if="activeIndex == 6&&baseInfo"
|
|
|
@changeActive="handleClick" />
|
|
|
</el-tab-pane>
|
|
|
|
|
@@ -51,7 +51,7 @@
|
|
|
lazy
|
|
|
v-if="permission('/resetTeaming/resetClass')"
|
|
|
name="5">
|
|
|
- <resetClass v-if="activeIndex == 5" :musicGroupInfo='musicGroupInfo'/>
|
|
|
+ <resetClass v-if="activeIndex == 5&&musicGroupInfo" :musicGroupInfo='musicGroupInfo'/>
|
|
|
</el-tab-pane>
|
|
|
<!-- <el-tab-pane label="新增排课"
|
|
|
v-if="permission('/resetTeaming/coursePlan')"
|
|
@@ -79,6 +79,9 @@ 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'
|
|
|
+import {
|
|
|
+ getTeamBaseInfo,
|
|
|
+} from "@/api/buildTeam";
|
|
|
export default {
|
|
|
components: { teamBaseInfo, resetSound, resetClass, resetPayList, resetPayListSchool, studentPayBase },
|
|
|
name: 'resetTeaming',
|
|
@@ -112,16 +115,23 @@ export default {
|
|
|
this.handleClick(obj)
|
|
|
this.__init()
|
|
|
},
|
|
|
- activated () {
|
|
|
- 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;
|
|
|
+ if(this.$route.query.tabrouter !=1){
|
|
|
+ getTeamBaseInfo({ musicGroupId: this.teamid }).then(res=>{
|
|
|
+ if(res.code == 200){
|
|
|
+ this.getBaseInfo(res.data)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
onCancel () {
|
|
|
this.$router.push({ path: '/business/teamDetail' })
|