|
@@ -239,7 +239,7 @@ import { sysApi } from "@/api/system";
|
|
|
import { DictsApi } from "@/api/dict";
|
|
|
export default {
|
|
|
name: "menu3-1",
|
|
|
- metaDataType: ["schools", "grades", "classes", "roles", "subjects"],
|
|
|
+ metaDataType: ["schools", "grades", "classes", "subjects"],
|
|
|
computed: {},
|
|
|
data() {
|
|
|
return {
|
|
@@ -377,8 +377,14 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.getList();
|
|
|
+ this.getRoles();
|
|
|
},
|
|
|
methods: {
|
|
|
+ getRoles(){
|
|
|
+ DictsApi.roles({ platform: "teacher" }).then((res) => {
|
|
|
+ this.metaData["roles"] = res.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
getList(size, page) {
|
|
|
TeacherApi.getList(
|
|
|
Object.assign(this.listQuery, {
|