|
|
|
@ -17,6 +17,8 @@ export class NavComponent implements OnInit {
|
|
|
|
|
constructor(private modal: NzModalService, private http: HttpClient, private message: NzMessageService, private viewContainerRef: ViewContainerRef, private router: Router, public token: CacheTokenService) { } |
|
|
|
|
user = null |
|
|
|
|
isSuperAdmin |
|
|
|
|
|
|
|
|
|
isZhidui = false |
|
|
|
|
ngOnInit(): void { |
|
|
|
|
//调用服务中的function刷新token
|
|
|
|
|
this.token.startUp() |
|
|
|
@ -27,6 +29,8 @@ export class NavComponent implements OnInit {
|
|
|
|
|
}) |
|
|
|
|
isTrue ? this.isSuperAdmin = true : this.isSuperAdmin = false |
|
|
|
|
|
|
|
|
|
let organizationLevel = JSON.parse(sessionStorage.getItem('userData')).organizationLevel |
|
|
|
|
organizationLevel == 'brigade' ? this.isZhidui = true : this.isZhidui = false |
|
|
|
|
|
|
|
|
|
signalR.initSR(); |
|
|
|
|
// 接收来自中心的消息
|
|
|
|
|