|
@@ -1251,14 +1251,17 @@ export default {
|
|
|
let isSuperAdmin = this.$store.getters.isSuperAdmin;
|
|
|
let roles = this.$store.getters.roles;
|
|
|
if (isSuperAdmin) {
|
|
|
- this.isManage = 'super';
|
|
|
+ this.isManage = "super";
|
|
|
} else {
|
|
|
if (roles.indexOf(3) != -1) {
|
|
|
- this.isManage = 'manage';
|
|
|
+ this.isManage = "manage";
|
|
|
} else {
|
|
|
this.isManage = false;
|
|
|
}
|
|
|
}
|
|
|
+ if (roles.indexOf(3) != -1 && roles.indexOf(4) != -1) {
|
|
|
+ this.isManage = "super";
|
|
|
+ }
|
|
|
this.init();
|
|
|
},
|
|
|
activated() {
|
|
@@ -1749,10 +1752,10 @@ export default {
|
|
|
courseViewType: this.courseViewType,
|
|
|
studentName: row.studentName,
|
|
|
musicGroupName: this.teamName,
|
|
|
- hasMaintenance:row.hasMaintenance
|
|
|
+ hasMaintenance: row.hasMaintenance,
|
|
|
};
|
|
|
|
|
|
- this.activeRow = {...row,...res.data};
|
|
|
+ this.activeRow = { ...row, ...res.data };
|
|
|
|
|
|
this.activeRow.courseViewType = this.courseViewType;
|
|
|
this.quitVisible = true;
|
|
@@ -1837,9 +1840,9 @@ export default {
|
|
|
musicalFee: params.musicalFee,
|
|
|
};
|
|
|
if (this.isManage) {
|
|
|
- params.status = 'APPROVED'
|
|
|
+ params.status = "APPROVED";
|
|
|
} else {
|
|
|
- params.status = 'PROCESSING'
|
|
|
+ params.status = "PROCESSING";
|
|
|
}
|
|
|
// 发请求 退团
|
|
|
applyMusicGroupQuit(params).then((res) => {
|