|
@@ -515,22 +515,13 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
const types = {
|
|
const types = {
|
|
- TEACH_CLAZZ_STUDENT: this.checkPrivilege(
|
|
|
|
- "button",
|
|
|
|
- "ExamTaskStudentObjectImport"
|
|
|
|
- ),
|
|
|
|
- BASIC_CLAZZ_STUDENT: this.checkPrivilege(
|
|
|
|
- "button",
|
|
|
|
- "ExamTaskStudentObjectImport"
|
|
|
|
- ),
|
|
|
|
|
|
+ TEACH_CLAZZ_STUDENT: this.checkPrivilege("button", "MyTeachCourse"),
|
|
|
|
+ BASIC_CLAZZ_STUDENT: this.checkPrivilege("button", "StudentLibrary"),
|
|
};
|
|
};
|
|
|
|
|
|
this.disabledStudentIds = this.getTabelStudentIds();
|
|
this.disabledStudentIds = this.getTabelStudentIds();
|
|
this.objectTypes = Object.keys(types).filter((k) => types[k]);
|
|
this.objectTypes = Object.keys(types).filter((k) => types[k]);
|
|
- this.showStudent = this.checkPrivilege(
|
|
|
|
- "button",
|
|
|
|
- "ExamTaskStudentObjectImport"
|
|
|
|
- );
|
|
|
|
|
|
+ this.showStudent = this.checkPrivilege("button", "SelectStudent");
|
|
this.$refs.ModifyExamStudent.open();
|
|
this.$refs.ModifyExamStudent.open();
|
|
},
|
|
},
|
|
getTabelStudentIds() {
|
|
getTabelStudentIds() {
|