From 55d4264d3ba9f7fce9e170b0dad1748e8a6385d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Wed, 1 Jun 2022 23:26:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=B7=A5=E4=BD=9C=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/routes_my_work.js | 13 +++++++++---- src/views/layout/components/UserInfo.vue | 16 +++++++++++++--- 2 files changed, 22 insertions(+), 7 deletions(-) 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);