|  | @@ -47,7 +47,7 @@
 | 
	
		
			
				|  |  |                  >
 | 
	
		
			
				|  |  |                    <img
 | 
	
		
			
				|  |  |                      style="position: relative; width: 24px"
 | 
	
		
			
				|  |  | -                    :src="require('../assets/login/' + item.img + '.png')"
 | 
	
		
			
				|  |  | +                    :src="item.icon_url_memu_default"
 | 
	
		
			
				|  |  |                      alt=""
 | 
	
		
			
				|  |  |                    />
 | 
	
		
			
				|  |  |                    <span style="margin-left: 16px">
 | 
	
	
		
			
				|  | @@ -133,6 +133,7 @@ import Cookies from "js-cookie";
 | 
	
		
			
				|  |  |  import { getContent, getStaticContent, getLearnWebContent } from "@/api/api";
 | 
	
		
			
				|  |  |  import { setI18nLang } from "@/utils/i18n";
 | 
	
		
			
				|  |  |  import { getConfig } from "@/utils/auth";
 | 
	
		
			
				|  |  | +import { saveSession, getSession, removeSession } from "@/utils/role";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    name: "LayoutHeader",
 | 
	
	
		
			
				|  | @@ -238,35 +239,9 @@ export default {
 | 
	
		
			
				|  |  |          window.location.href = "/";
 | 
	
		
			
				|  |  |          return;
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      let MethodName = "login_control-CreateAccessCode";
 | 
	
		
			
				|  |  | -      let acsCode = null;
 | 
	
		
			
				|  |  | -      // getContent(MethodName, UserCode, UserType, SessionID).then((res) => {
 | 
	
		
			
				|  |  | -      //   acsCode = res.access_code;
 | 
	
		
			
				|  |  | -      _this.projectName = this.projectList[command].name;
 | 
	
		
			
				|  |  | -      let id = this.projectList[command].id;
 | 
	
		
			
				|  |  | -      if (id == 0) {
 | 
	
		
			
				|  |  | -        // 教学管理系统
 | 
	
		
			
				|  |  | -        location.href = `/GCLS-Learn/#/EnterSys`;
 | 
	
		
			
				|  |  | -      } else if (id == 1) {
 | 
	
		
			
				|  |  | -        // 教材管理系统
 | 
	
		
			
				|  |  | -        location.href = `/GCLS-Book/#/EnterSys`;
 | 
	
		
			
				|  |  | -      } else if (id == 2) {
 | 
	
		
			
				|  |  | -        // 教培中心
 | 
	
		
			
				|  |  | -        location.href = `/GCLS-TRC/#/EnterSys`;
 | 
	
		
			
				|  |  | -      } else if (id == 3) {
 | 
	
		
			
				|  |  | -        // 教研中心
 | 
	
		
			
				|  |  | -        location.href = `/GCLS-TC/#/EnterSys`;
 | 
	
		
			
				|  |  | -      } else if (id == 4) {
 | 
	
		
			
				|  |  | -        // 考试中心
 | 
	
		
			
				|  |  | -        location.href = `/GCLS-Test/#/EnterSys`;
 | 
	
		
			
				|  |  | -      } else if (id == 5) {
 | 
	
		
			
				|  |  | -        // 学习中心
 | 
	
		
			
				|  |  | -        location.href = `/GCLS-LC/#/EnterSys`;
 | 
	
		
			
				|  |  | -      } else {
 | 
	
		
			
				|  |  | -        // 个人中心
 | 
	
		
			
				|  |  | -        location.href = `/GCLS-Personal/#/EnterSys`;
 | 
	
		
			
				|  |  | -      }
 | 
	
		
			
				|  |  | -      // });
 | 
	
		
			
				|  |  | +      _this.projectName = _this.projectList[command].name;
 | 
	
		
			
				|  |  | +      let relative_path = _this.projectList[command].relative_path;
 | 
	
		
			
				|  |  | +      location.href = relative_path;
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      // 切换登录的注册
 | 
	
		
			
				|  |  |      cutLoginReg() {
 | 
	
	
		
			
				|  | @@ -275,6 +250,7 @@ export default {
 | 
	
		
			
				|  |  |      QuitLogin() {
 | 
	
		
			
				|  |  |        window.location.href = "/";
 | 
	
		
			
				|  |  |        removeToken();
 | 
	
		
			
				|  |  | +      removeSession("SysList");
 | 
	
		
			
				|  |  |        Cookies.remove("JSESSIONID");
 | 
	
		
			
				|  |  |        this.userShow = false;
 | 
	
		
			
				|  |  |        this.userMessage = null;
 | 
	
	
		
			
				|  | @@ -407,8 +383,40 @@ export default {
 | 
	
		
			
				|  |  |      // async _getConfig() {
 | 
	
		
			
				|  |  |      //   this.configInfor = await getConfigInfor();
 | 
	
		
			
				|  |  |      // },
 | 
	
		
			
				|  |  | +    getChildSysList() {
 | 
	
		
			
				|  |  | +      let _this = this;
 | 
	
		
			
				|  |  | +      let MethodName = "login_control-GetChildSysList_CanEnter_PC";
 | 
	
		
			
				|  |  | +      getContent(MethodName, {})
 | 
	
		
			
				|  |  | +        .then((res) => {
 | 
	
		
			
				|  |  | +          if (res.child_sys_list && res.child_sys_list.length > 0) {
 | 
	
		
			
				|  |  | +            _this.projectList = res.child_sys_list;
 | 
	
		
			
				|  |  | +            _this.projectList.forEach((item, index) => {
 | 
	
		
			
				|  |  | +              if (item.key == "GCLS-LC") {
 | 
	
		
			
				|  |  | +                _this.LoginNavIndex = index;
 | 
	
		
			
				|  |  | +              }
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +            saveSession("SysList", this.projectList);
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  | +        .catch((err) => {
 | 
	
		
			
				|  |  | +          console.log(err);
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +  },
 | 
	
		
			
				|  |  | +  created() {
 | 
	
		
			
				|  |  | +    let _this = this;
 | 
	
		
			
				|  |  | +    let SysList = getSession("SysList");
 | 
	
		
			
				|  |  | +    if (!SysList) {
 | 
	
		
			
				|  |  | +      _this.getChildSysList();
 | 
	
		
			
				|  |  | +    } else {
 | 
	
		
			
				|  |  | +      _this.projectList = SysList;
 | 
	
		
			
				|  |  | +      _this.projectList.forEach((item, index) => {
 | 
	
		
			
				|  |  | +        if (item.key == "GCLS-LC") {
 | 
	
		
			
				|  |  | +          _this.LoginNavIndex = index;
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      });
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  | -  created() {},
 | 
	
		
			
				|  |  |    mounted() {
 | 
	
		
			
				|  |  |      let _this = this;
 | 
	
		
			
				|  |  |      let user = getToken();
 | 
	
	
		
			
				|  | @@ -416,15 +424,10 @@ export default {
 | 
	
		
			
				|  |  |        _this.userMessage = JSON.parse(user);
 | 
	
		
			
				|  |  |        let popedom_code_list = _this.userMessage.popedom_code_list;
 | 
	
		
			
				|  |  |        if (_this.userMessage.user_type == "TEACHER") {
 | 
	
		
			
				|  |  | -        _this.projectList = _this.handleProList(popedom_code_list);
 | 
	
		
			
				|  |  | +        // _this.projectList = _this.handleProList(popedom_code_list);
 | 
	
		
			
				|  |  |        } else if (_this.userMessage.user_type == "STUDENT") {
 | 
	
		
			
				|  |  |          _this.projectList = _this.stuProList;
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      _this.projectList.forEach((item, index) => {
 | 
	
		
			
				|  |  | -        if (item.id == 5) {
 | 
	
		
			
				|  |  | -          _this.LoginNavIndex = index;
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -      });
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |      // _this._getConfig();
 | 
	
		
			
				|  |  |      _this.configInfor = JSON.parse(getConfig());
 |