|
|
@@ -65,12 +65,14 @@
|
|
|
<span>{{ user.info.name }}</span>
|
|
|
|
|
|
<el-tooltip class="item" effect="dark" placement="top-start">
|
|
|
- <span>{{ getRoleName( user.info.loginChangeGroupVOList,1) }}</span>
|
|
|
+ <span>{{
|
|
|
+ getRoleName(user.info.loginChangeGroupVOList, 1)
|
|
|
+ }}</span>
|
|
|
</el-tooltip>
|
|
|
|
|
|
-
|
|
|
- <span>{{ getRoleName( user.info.loginChangeGroupVOList,2)}}</span>
|
|
|
-
|
|
|
+ <span>{{
|
|
|
+ getRoleName(user.info.loginChangeGroupVOList, 2)
|
|
|
+ }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="card-cell-date">
|
|
|
@@ -393,17 +395,21 @@
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters(['user']),
|
|
|
- getRoleName(){
|
|
|
- const currentUser=JSON.parse(sessionStorage['currentUser'])
|
|
|
- return (list=[],type)=>{
|
|
|
- const dept= list.find(item=>item.groupId==currentUser.currentGroupId)
|
|
|
- if(type==1){
|
|
|
- return dept.groupName
|
|
|
- }else{
|
|
|
- return dept.loginChangeRoleVOList.find(item=>item.roleId==currentUser.currentRoleId)?.roleName
|
|
|
+ getRoleName() {
|
|
|
+ const currentUser = JSON.parse(sessionStorage['currentUser']);
|
|
|
+ return (list = [], type) => {
|
|
|
+ const dept = list.find(
|
|
|
+ (item) => item.groupId == currentUser.currentGroupId
|
|
|
+ );
|
|
|
+ if (type == 1) {
|
|
|
+ return dept.groupName;
|
|
|
+ } else {
|
|
|
+ return dept.loginChangeRoleVOList.find(
|
|
|
+ (item) => item.roleId == currentUser.currentRoleId
|
|
|
+ )?.roleName;
|
|
|
}
|
|
|
- }
|
|
|
- },
|
|
|
+ };
|
|
|
+ }
|
|
|
},
|
|
|
created() {
|
|
|
// window.isFullscreen = false
|
|
|
@@ -418,7 +424,7 @@
|
|
|
},
|
|
|
methods: {
|
|
|
openUrl(item) {
|
|
|
- window.open('https://' + item.linkUrl, '_blank');
|
|
|
+ window.open(item.linkUrl, '_blank');
|
|
|
},
|
|
|
async getPages() {
|
|
|
let { list } = await getList({ pageNum: 1, size: 9999 });
|