From 880a41a2135d944169d94028f19344ca66b673a0 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 02 十一月 2020 18:23:45 +0800
Subject: [PATCH] 2020-11-02

---
 src/components/header/index.jsx |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/src/components/header/index.jsx b/src/components/header/index.jsx
index f4dc8cb..44e3fab 100644
--- a/src/components/header/index.jsx
+++ b/src/components/header/index.jsx
@@ -510,8 +510,11 @@
   }
 
   changeSystem = (system) => {
-    let _param = window.btoa('ud=' + sessionStorage.getItem('UserID') + '&ld=' + sessionStorage.getItem('LoginUID') + '&un=' + sessionStorage.getItem('User_Name'))
-    window.location.href = system.LinkUrl1 + '#/ssologin/' + _param
+    window.location.href = system.LinkUrl1 + '#/ssologin/' + window.btoa(window.encodeURIComponent(JSON.stringify({
+      UserID: sessionStorage.getItem('UserID'),
+      LoginUID: sessionStorage.getItem('LoginUID'),
+      User_Name: sessionStorage.getItem('User_Name')
+    })))
   }
 
   dropdownMenuChange = (visible) => {
@@ -740,11 +743,11 @@
         {this.props.editLevel === 'HS' ? <Button className="level4-close" type="primary" onClick={this.exitManage}>閫�鍑�</Button> : null}
         {/* 杩涘叆缂栬緫鎸夐挳 */}
         {this.props.editState && !this.props.editLevel ? <Icon onClick={this.enterEdit} className="edit-check" type="edit" /> : null}
-        {this.props.editState && !this.props.editLevel && options.sysType === 'local' && window.GLOB.systemType !== 'production' ?
+        {/* {this.props.editState && !this.props.editLevel && options.sysType === 'local' && window.GLOB.systemType !== 'production' ?
           <a href="#/mobmanage" target="_blank" className="mobile" type="edit"> 搴旂敤绠$悊 <Icon type="arrow-right" /></a> : null
-        }
+        } */}
         {/* window.btoa(window.encodeURIComponent(JSON.stringify({ MenuType: 'home', MenuId: 'home_page_id', MenuName: '棣栭〉' }))) */}
-        {this.props.editState && !this.props.editLevel && window.GLOB.systemType !== 'production' ?
+        {this.props.editState && !this.props.editLevel && window.GLOB.systemType !== 'production' && this.props.memberLevel >= 20 ?
           <a className="home-edit" href={`#/menudesign/JTdCJTIyTWVudVR5cGUlMjIlM0ElMjJob21lJTIyJTJDJTIyTWVudUlkJTIyJTNBJTIyaG9tZV9wYWdlX2lkJTIyJTJDJTIyTWVudU5hbWUlMjIlM0ElMjIlRTklQTYlOTYlRTklQTElQjUlMjIlN0Q=`} target="_blank" rel="noopener noreferrer">
             棣栭〉 <Icon type="arrow-right" />
           </a> : null
@@ -834,6 +837,7 @@
     editLevel: state.editLevel,
     permAction: state.permAction,
     sysRoles: state.sysRoles,
+    memberLevel: state.memberLevel,
     permFuncField: state.permFuncField
   }
 }

--
Gitblit v1.8.0