|
@@ -467,41 +467,48 @@ export default {
|
|
|
},
|
|
|
created () {
|
|
|
// 通过乐团状态判断显示隐藏的东西
|
|
|
- this.status = this.$route.query.status;
|
|
|
- // 通过乐团id 获取乐团招生状态
|
|
|
- this.id = this.$route.query.id;
|
|
|
- this.teamName = this.$route.query.name
|
|
|
- // 判断是否带缓存参数
|
|
|
- if (this.$route.query.search) {
|
|
|
- this.Fsearch = this.$route.query.search;
|
|
|
- }
|
|
|
- if (this.$route.query.rules) {
|
|
|
- this.Frules = this.$route.query.rules
|
|
|
- }
|
|
|
-
|
|
|
+ this.init()
|
|
|
+ },
|
|
|
+ activated () {
|
|
|
+ this.init()
|
|
|
},
|
|
|
mounted () {
|
|
|
- getTeamBaseInfo({ musicGroupId: this.id }).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.applyExpireDate = res.data.musicGroup.applyExpireDate;
|
|
|
- }
|
|
|
- })
|
|
|
- // 根据乐团id获取学团情况
|
|
|
- getintoClass({ musicGroupId: this.id }).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.leftList = res.data;
|
|
|
- }
|
|
|
- })
|
|
|
- // 根据乐团id获乐团声部
|
|
|
- findSound({ musicGroupId: this.id }).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.soundList = res.data;
|
|
|
- }
|
|
|
- })
|
|
|
- // 通过乐团id获取乐团学生列表
|
|
|
- this.getList()
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
+ init () {
|
|
|
+ this.status = this.$route.query.status;
|
|
|
+ // 通过乐团id 获取乐团招生状态
|
|
|
+ this.id = this.$route.query.id;
|
|
|
+ this.teamName = this.$route.query.name
|
|
|
+ // 判断是否带缓存参数
|
|
|
+ if (this.$route.query.search) {
|
|
|
+ this.Fsearch = this.$route.query.search;
|
|
|
+ }
|
|
|
+ if (this.$route.query.rules) {
|
|
|
+ this.Frules = this.$route.query.rules
|
|
|
+ }
|
|
|
+
|
|
|
+ getTeamBaseInfo({ musicGroupId: this.id }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.applyExpireDate = res.data.musicGroup.applyExpireDate;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // 根据乐团id获取学团情况
|
|
|
+ getintoClass({ musicGroupId: this.id }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.leftList = res.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // 根据乐团id获乐团声部
|
|
|
+ findSound({ musicGroupId: this.id }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.soundList = res.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // 通过乐团id获取乐团学生列表
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
search () {
|
|
|
this.rules.page = 1;
|
|
|
this.getList();
|