|
@@ -111,6 +111,7 @@ import myUpload from "@/components/vue-image-crop-upload/upload-2.vue";
|
|
|
import { getContent, getLearnWebContent } from "@/api/ajax";
|
|
|
|
|
|
import { updateWordPack } from "@/utils/i18n";
|
|
|
+import Cookies from "js-cookie";
|
|
|
|
|
|
export default {
|
|
|
name: "Personalcenter",
|
|
@@ -133,7 +134,7 @@ export default {
|
|
|
isData: false,
|
|
|
userInfor: null,
|
|
|
userMessage: null, //登录信息
|
|
|
- SeleNavId: 0,
|
|
|
+ SeleNavId: Cookies.get("GCLSCode") ? 7 : 0,
|
|
|
navList: [],
|
|
|
teachList: [
|
|
|
//普通老师
|
|
@@ -579,7 +580,7 @@ export default {
|
|
|
"Key751",
|
|
|
"Key752",
|
|
|
"Key784",
|
|
|
- "Key802"
|
|
|
+ "Key802",
|
|
|
],
|
|
|
});
|
|
|
this.isData = true;
|
|
@@ -685,26 +686,37 @@ export default {
|
|
|
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;
|
|
|
+ if (Cookies.get("GCLSCode")) {
|
|
|
+ this.navList = [
|
|
|
+ {
|
|
|
+ id: 7,
|
|
|
+ name: this.$t("Key67"), //"账户设置",
|
|
|
+ imgSrc: "nav8",
|
|
|
+ selectSrc: "nav8-1",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ } else {
|
|
|
+ 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.menuList;
|
|
|
+ this.navList = this.stuList;
|
|
|
}
|
|
|
} else {
|
|
|
- this.navList = this.stuList;
|
|
|
+ this.navList = this.menuList;
|
|
|
}
|
|
|
- } else {
|
|
|
- this.navList = this.menuList;
|
|
|
- }
|
|
|
- });
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
//生命周期 - 挂载完成(可以访问DOM元素)
|
|
@@ -753,7 +765,11 @@ export default {
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
- background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
|
|
|
+ background: linear-gradient(
|
|
|
+ 180deg,
|
|
|
+ rgba(0, 0, 0, 0.1) 0%,
|
|
|
+ rgba(0, 0, 0, 0.4) 100%
|
|
|
+ );
|
|
|
padding-top: 46px;
|
|
|
}
|
|
|
.photo {
|
|
@@ -830,4 +846,4 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|