|
|
|
@ -56,19 +56,15 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
|
|
<router-link v-show="userInfo.userName == 'admin'" to="/system/user">
|
|
|
|
|
<el-dropdown-item>进入后台管理</el-dropdown-item>
|
|
|
|
|
</router-link>
|
|
|
|
|
<router-link to="/user/profile">
|
|
|
|
|
<el-dropdown-item>修改密码</el-dropdown-item>
|
|
|
|
|
</router-link>
|
|
|
|
|
<el-dropdown-item @click.native="logout">退出登录</el-dropdown-item>
|
|
|
|
|
</el-dropdown-menu>
|
|
|
|
|
</el-dropdown>
|
|
|
|
|
<!-- <div
|
|
|
|
|
class="showGLstyle"
|
|
|
|
|
v-if="roles && roles[0] == 'admin'"
|
|
|
|
|
@click="toNewPage"
|
|
|
|
|
>
|
|
|
|
|
进入管理平台
|
|
|
|
|
</div> -->
|
|
|
|
|
</header>
|
|
|
|
|
<div class="bottom-view">
|
|
|
|
|
<router-view></router-view>
|
|
|
|
@ -86,6 +82,7 @@ export default {
|
|
|
|
|
routerIndex: 0,
|
|
|
|
|
avatarFlag: false,
|
|
|
|
|
userName: null,
|
|
|
|
|
userInfo: JSON.parse(sessionStorage.getItem("USER_INFO")),
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
@ -102,11 +99,12 @@ export default {
|
|
|
|
|
"isGovernmentAffairsNetwork"
|
|
|
|
|
);
|
|
|
|
|
// const G_USER_INFO = JSON.parse(localStorage.getItem("G_USER_INFO"));
|
|
|
|
|
let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO"));
|
|
|
|
|
if (isGovernmentAffairsNetwork == "1") {
|
|
|
|
|
this.userName = userInfo.lawLevel + " " + userInfo.nickName;
|
|
|
|
|
// let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO"));
|
|
|
|
|
// if (isGovernmentAffairsNetwork == "1") {
|
|
|
|
|
if (this.userInfo.userName == "admin") {
|
|
|
|
|
this.userName = this.userInfo.userName;
|
|
|
|
|
} else {
|
|
|
|
|
this.userName = userInfo.lawLevel + " " + userInfo.nickName;
|
|
|
|
|
this.userName = this.userInfo.lawLevel + " " + this.userInfo.nickName;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
@ -139,6 +137,8 @@ export default {
|
|
|
|
|
let isGovernmentAffairsNetwork = localStorage.getItem(
|
|
|
|
|
"isGovernmentAffairsNetwork"
|
|
|
|
|
);
|
|
|
|
|
sessionStorage.removeItem("SET_IS_ORG_PWD");
|
|
|
|
|
|
|
|
|
|
// console.log("进入跳转政务网的登录页");
|
|
|
|
|
if (isGovernmentAffairsNetwork == "1") {
|
|
|
|
|
localStorage.removeItem("isGovernmentAffairsNetwork");
|
|
|
|
|