|
@@ -743,77 +743,84 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
|
- this.teamid = this.$route.query.id;
|
|
|
- // 根据乐团id获取乐团所属分部
|
|
|
- getTeamBaseInfo({ musicGroupId: this.teamid }).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.organId = res.data.musicGroup.organId
|
|
|
- getTeacher({ organId: this.organId }).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.cooperationList = res.data;
|
|
|
- this.teacherList = res.data;
|
|
|
- }
|
|
|
- })
|
|
|
|
|
|
- // queryEmployByOrganId({ organId: this.organId, rows: 10000 }).then(res => {
|
|
|
- // if (res.code == 200) {
|
|
|
+ this.init()
|
|
|
+ },
|
|
|
+ activated () {
|
|
|
+ this.init()
|
|
|
+ },
|
|
|
+ mounted () {
|
|
|
|
|
|
- // }
|
|
|
- // })
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ init () {
|
|
|
+ this.teamid = this.$route.query.id;
|
|
|
+ // 根据乐团id获取乐团所属分部
|
|
|
+ getTeamBaseInfo({ musicGroupId: this.teamid }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.organId = res.data.musicGroup.organId
|
|
|
+ getTeacher({ organId: this.organId }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.cooperationList = res.data;
|
|
|
+ this.teacherList = res.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
|
|
|
- }
|
|
|
- })
|
|
|
+ // queryEmployByOrganId({ organId: this.organId, rows: 10000 }).then(res => {
|
|
|
+ // if (res.code == 200) {
|
|
|
|
|
|
- },
|
|
|
- mounted () {
|
|
|
- sessionStorage.setItem('resetCode', 3)
|
|
|
- // // 获取乐团下未分班的单技班
|
|
|
- // findNoClassSingle({ musicGroupId: this.teamid }).then(res => {
|
|
|
- // if (res.code == 200) {
|
|
|
- // this.singleList = res.data;
|
|
|
- // }
|
|
|
- // })
|
|
|
- // getMusicGroupStuNoClassType
|
|
|
- // 获取合奏班下
|
|
|
- // 1.获取乐团下所有的合奏班
|
|
|
- // 2.根据合奏班获取所有的单技班
|
|
|
- // 3.根据乐团id 查询 此乐团所有的合奏班
|
|
|
- // 4.获取当年的所有节假日
|
|
|
- getAllClass({ musicGroupId: this.teamid }).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.maxClassList = res.data;
|
|
|
- }
|
|
|
- })
|
|
|
- // let year = new Date().getFullYear();
|
|
|
- // axios.post('/jiari/', qs.stringify({ d: year })).then(res => {
|
|
|
- // this.holidayList = Object.keys(res.data[year])
|
|
|
- // })
|
|
|
- // getNoClassStudentAll({ musicGroupId: this.teamid }).then(res => {
|
|
|
- // })
|
|
|
+ // }
|
|
|
+ // })
|
|
|
|
|
|
+ }
|
|
|
+ })
|
|
|
+ sessionStorage.setItem('resetCode', 3)
|
|
|
+ // // 获取乐团下未分班的单技班
|
|
|
+ // findNoClassSingle({ musicGroupId: this.teamid }).then(res => {
|
|
|
+ // if (res.code == 200) {
|
|
|
+ // this.singleList = res.data;
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // getMusicGroupStuNoClassType
|
|
|
+ // 获取合奏班下
|
|
|
+ // 1.获取乐团下所有的合奏班
|
|
|
+ // 2.根据合奏班获取所有的单技班
|
|
|
+ // 3.根据乐团id 查询 此乐团所有的合奏班
|
|
|
+ // 4.获取当年的所有节假日
|
|
|
+ getAllClass({ musicGroupId: this.teamid }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.maxClassList = res.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // let year = new Date().getFullYear();
|
|
|
+ // axios.post('/jiari/', qs.stringify({ d: year })).then(res => {
|
|
|
+ // this.holidayList = Object.keys(res.data[year])
|
|
|
+ // })
|
|
|
+ // getNoClassStudentAll({ musicGroupId: this.teamid }).then(res => {
|
|
|
+ // })
|
|
|
|
|
|
- // 获取默认乐团内的所有班
|
|
|
- this.changeMixClass()
|
|
|
- // 根据乐团id获取乐团的所有声部
|
|
|
- findSound({ musicGroupId: this.teamid }).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.soundList = res.data
|
|
|
- }
|
|
|
- })
|
|
|
|
|
|
- // 获取分部所有老师
|
|
|
- // findMusicGroupClassTeacher({
|
|
|
- // musicGroupId: this.teamid
|
|
|
- // }).then(res => {
|
|
|
- // if (res.code == 200) {
|
|
|
- // this.teacherList = res.data
|
|
|
- // }
|
|
|
- // })
|
|
|
- // 获取分部所有老师
|
|
|
- // 助教是从员工表里选
|
|
|
+ // 获取默认乐团内的所有班
|
|
|
+ this.changeMixClass()
|
|
|
+ // 根据乐团id获取乐团的所有声部
|
|
|
+ findSound({ musicGroupId: this.teamid }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.soundList = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
|
|
|
- },
|
|
|
- methods: {
|
|
|
+ // 获取分部所有老师
|
|
|
+ // findMusicGroupClassTeacher({
|
|
|
+ // musicGroupId: this.teamid
|
|
|
+ // }).then(res => {
|
|
|
+ // if (res.code == 200) {
|
|
|
+ // this.teacherList = res.data
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // 获取分部所有老师
|
|
|
+ // 助教是从员工表里选
|
|
|
+
|
|
|
+ },
|
|
|
recourse (row) {
|
|
|
this.weekList = [{
|
|
|
week: '',
|