diff --git a/src/router/routes_my_work.js b/src/router/routes_my_work.js index f67f4c78..cca1a33c 100644 --- a/src/router/routes_my_work.js +++ b/src/router/routes_my_work.js @@ -16,6 +16,7 @@ export default { title: '我的工作台', icon: 'task' }, + hidden: true, iconCls: 'fa el-icon-menu', // leaf: true, children: [ @@ -26,7 +27,8 @@ export default { meta: { title: '我的', icon: 'component' - } + }, + hidden: true, }, { path: 'updateUserInfo', @@ -35,7 +37,8 @@ export default { meta: { title: '设置', icon: 'component' - } + }, + hidden: true, }, { path: 'message', @@ -44,7 +47,8 @@ export default { meta: { title: '消息中心', icon: 'component' - } + }, + hidden: true, }, { path: 'userLoginRecord', @@ -53,7 +57,8 @@ export default { meta: { title: '登录日志', icon: 'component' - } + }, + hidden: true, }, ] } diff --git a/src/views/layout/components/UserInfo.vue b/src/views/layout/components/UserInfo.vue index f29aca15..03f11301 100644 --- a/src/views/layout/components/UserInfo.vue +++ b/src/views/layout/components/UserInfo.vue @@ -76,6 +76,7 @@

切换账户

账户明细

团队管理

+

登录日志

退出登录

@@ -211,6 +212,9 @@ export default { if(command=='branchSet'){ this.$router.push({path:'/mdp/sys/branch/branchSet'}) } + if(command=='userLoginRecord'){ + this.$router.push({path:'/my/work/userLoginRecord'}) + } }else{ var prefixUrl=config.getBaseDomainUrl()+'/sys/'+process.env.VERSION+'/#/' if(command=='updateUserInfo'){ @@ -224,6 +228,11 @@ export default { window.open(prefixUrl+'mdp/sys/branch/branchSet') NProgress.done() } + + if(command=='userLoginRecord'){ + window.open(prefixUrl+'/my/work/userLoginRecord') + NProgress.done() + } } }, @@ -388,7 +397,7 @@ export default { } .bottomBox2 { - height: 120px; + height: 150px; display: flex; flex-direction: column; justify-content: center; @@ -396,10 +405,11 @@ export default { p { display: flex; cursor: pointer; - width: 100%; - height: 40px; + width: 100%; text-align: left; align-items: center; + margin-top: 5px; + margin-bottom: 5px; } p:hover { background: rgb(243, 243, 243);