diff --git a/anrui-system-ui/src/store/modules/user.js b/anrui-system-ui/src/store/modules/user.js index a5c891d503..01ddfc7c87 100644 --- a/anrui-system-ui/src/store/modules/user.js +++ b/anrui-system-ui/src/store/modules/user.js @@ -43,7 +43,8 @@ const actions = { pNameAndDepartmentNameAndPostName: data.pNameAndDepartmentNameAndPostName, roleName: data.roleName, defaultOrgPathName: data.defaultOrgPathName, - defaultOrgPath: data.defaultOrgPath + defaultOrgPath: data.defaultOrgPath, + postName: data.postName } commit('SET_UESRINFO', user) window.sessionStorage.setItem('userSid', user.userSid) @@ -54,6 +55,7 @@ const actions = { window.sessionStorage.setItem('roleName', user.roleName) window.sessionStorage.setItem('defaultOrgPathName', user.defaultOrgPathName) window.sessionStorage.setItem('defaultOrgPath', user.defaultOrgPath) + window.sessionStorage.setItem('postName', user.postName) resolve(data) }).catch(error => { reject(error) diff --git a/anrui-system-ui/src/views/Home/Home.vue b/anrui-system-ui/src/views/Home/Home.vue index 8a8c6b8c54..bcc7f736e6 100644 --- a/anrui-system-ui/src/views/Home/Home.vue +++ b/anrui-system-ui/src/views/Home/Home.vue @@ -2,15 +2,21 @@

安瑞集团信息化平台

-
-

欢迎您

-

+

+
欢迎您
+
-

-

{{ roleName }} {{ name }}

-

+
+
+ +
{{ roleName }}
+ {{ postName }} +
+
+
{{ name }}
+
@@ -260,6 +266,7 @@ export default { defaultOrgPathName: '', defaultOrgPath: '', roleName: '', + postName: '', year: '' } }, @@ -276,6 +283,7 @@ export default { this.defaultOrgPathName = window.sessionStorage.getItem('defaultOrgPathName') this.defaultOrgPath = window.sessionStorage.getItem('defaultOrgPath') this.roleName = window.sessionStorage.getItem('roleName') + this.postName = window.sessionStorage.getItem('postName') this.name = window.sessionStorage.getItem('name') var nowDate = new Date() this.year = nowDate.getFullYear() @@ -295,7 +303,7 @@ export default { }) User.getOrgListByUserSid({ userSid: window.sessionStorage.getItem('userSid') }).then((res) => { if (res.success) { - this.orgDept_list= res.data + this.orgDept_list = res.data } }) }, @@ -464,18 +472,18 @@ p { } } -.head_info img { - width: 25px; - margin-top: 20px; - margin-left: 30px; - margin-right: 10px; - float: left; -} - -.head_info .dy { - margin-left: 10px; - margin-right: 20px; -} +//.head_info img { +// width: 25px; +// margin-top: 20px; +// margin-left: 30px; +// margin-right: 10px; +// float: left; +//} +// +//.head_info .dy { +// margin-left: 10px; +// margin-right: 20px; +//} .container1 { background: #E9F1F7;