|
@@ -136,6 +136,7 @@ export default {
|
|
|
SeleNavId: 0,
|
|
|
navList: [],
|
|
|
teachList: [
|
|
|
+ //普通老师
|
|
|
{
|
|
|
id: 0,
|
|
|
name: "系统通知",
|
|
@@ -186,6 +187,7 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
stuList: [
|
|
|
+ //学生
|
|
|
{
|
|
|
id: 0,
|
|
|
name: "系统通知",
|
|
@@ -223,6 +225,21 @@ export default {
|
|
|
selectSrc: "nav8-1",
|
|
|
},
|
|
|
],
|
|
|
+ //没有审核通过的机构 /编辑者
|
|
|
+ menuList: [
|
|
|
+ {
|
|
|
+ id: 0,
|
|
|
+ name: "系统通知",
|
|
|
+ imgSrc: "nav1",
|
|
|
+ selectSrc: "nav1-1",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 7,
|
|
|
+ name: "账户设置",
|
|
|
+ imgSrc: "nav8",
|
|
|
+ selectSrc: "nav8-1",
|
|
|
+ },
|
|
|
+ ],
|
|
|
show: false,
|
|
|
params: {
|
|
|
token: "123456798",
|
|
@@ -349,6 +366,8 @@ export default {
|
|
|
// }, 100);
|
|
|
});
|
|
|
},
|
|
|
+ //得到我的已审核通过的机构列表-org_manager-GetMyOrgList
|
|
|
+ getMyOrgList() {},
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
|
async created() {
|
|
@@ -638,11 +657,40 @@ export default {
|
|
|
selectSrc: "nav8-1",
|
|
|
},
|
|
|
];
|
|
|
- if (user.user_type == "TEACHER") {
|
|
|
- this.navList = this.teachList;
|
|
|
- } else {
|
|
|
- this.navList = this.stuList;
|
|
|
- }
|
|
|
+ this.menuList = [
|
|
|
+ {
|
|
|
+ id: 0,
|
|
|
+ name: this.$t("Key60"),
|
|
|
+ imgSrc: "nav1",
|
|
|
+ selectSrc: "nav1-1",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 7,
|
|
|
+ name: this.$t("Key67"), //"账户设置",
|
|
|
+ imgSrc: "nav8",
|
|
|
+ selectSrc: "nav8-1",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ let MethodName = "org_manager-GetMyOrgList";
|
|
|
+ let data = {
|
|
|
+ audited_status: 1, //已审核通过的机构列表
|
|
|
+ };
|
|
|
+ getContent(MethodName, data).then((res) => {
|
|
|
+ let myOrgList = res.org_list;
|
|
|
+ if (myOrgList.length > 0) {
|
|
|
+ if (user.user_type == "TEACHER") {
|
|
|
+ if (user.popedom_code_list.indexOf(2000001) > -1) {
|
|
|
+ this.navList = this.teachList;
|
|
|
+ } else {
|
|
|
+ this.navList = this.menuList;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.navList = this.stuList;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.navList = this.menuList;
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
//生命周期 - 挂载完成(可以访问DOM元素)
|