Browse Source

用户id取运维的

dev
CODE 1 year ago
parent
commit
bfaa31908a
  1. 5
      web/client/src/layout/components/header/index.jsx

5
web/client/src/layout/components/header/index.jsx

@ -109,12 +109,11 @@ const Header = (props) => {
style={{ display: "inline-block", width: 200, height: 40, marginLeft: -24, cursor: 'pointer' }}
onClick={() => {
let projectGroup = JSON.parse(localStorage.getItem('project_group'))
let url = `/projectGroup/bigscreen?pomsU=${user?.id}`
let curPG = projectGroup && projectGroup?.find(v => v.userId == user?.id)
if (curPG) {
window.open(`/projectGroup/bigscreen?pomsPG=${curPG.projectGroupId}&pomsU=${user?.id}`, '_blank')
window.open(`/projectGroup/bigscreen?pomsPG=${curPG.projectGroupId}&pomsU=${user?.pomsUserInfo?.id}`, '_blank')
} else {
window.open(`/projectGroup/statistic?pomsU=${user?.id}`, '_blank')
window.open(`/projectGroup/statistic?pomsU=${user?.pomsUserInfo?.id}`, '_blank')
}
}}
/>

Loading…
Cancel
Save