|
@@ -745,35 +745,36 @@ export default {
|
|
|
created () { },
|
|
|
//生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
mounted () {
|
|
|
- this.teamid = this.$route.query.id;
|
|
|
- getTeacher().then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.teacherList = res.data;
|
|
|
- this.cooperationList = res.data;
|
|
|
- }
|
|
|
- });
|
|
|
- // 获取声部
|
|
|
- findSound({ musicGroupId: this.teamid }).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.soundList = res.data;
|
|
|
- }
|
|
|
- });
|
|
|
// 获取节假日
|
|
|
this.init();
|
|
|
- sysConfigList({ group: "holiday" }).then(res => {
|
|
|
- if (res.code == 200 && res.data.length > 0) {
|
|
|
- if (res.data[0].paranValue) {
|
|
|
- this.holidayList = JSON.parse(res.data[0].paranValue);
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
},
|
|
|
activated () {
|
|
|
this.init();
|
|
|
},
|
|
|
methods: {
|
|
|
init () {
|
|
|
+ this.teamid = this.$route.query.id;
|
|
|
+ getTeacher().then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.teacherList = res.data;
|
|
|
+ this.cooperationList = res.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ // 获取声部
|
|
|
+ findSound({ musicGroupId: this.teamid }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.soundList = res.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
this.getList();
|
|
|
+
|
|
|
+ sysConfigList({ group: "holiday" }).then(res => {
|
|
|
+ if (res.code == 200 && res.data.length > 0) {
|
|
|
+ if (res.data[0].paranValue) {
|
|
|
+ this.holidayList = JSON.parse(res.data[0].paranValue);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
getList () {
|
|
|
this.teamid = this.$route.query.id;
|