Browse Source

Merge branch 'feature-demo'

master
董书康 6 months ago
parent
commit
8fae1b9020
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      digital-future-summit/src/app/implementation/layout/layout.component.ts

+ 4
- 4
digital-future-summit/src/app/implementation/layout/layout.component.ts View File

@ -24,7 +24,7 @@ export class LayoutComponent implements OnInit, AfterViewInit {
isDragging: boolean = false; isDragging: boolean = false;
layoutUsers = ['digiwin0001', 'digiwin0002', 'digiwin0003', 'digiwin0004', 'digiwin0005', 'default', 'digiwinSummit',
layoutUsers = ['digiwin0001', 'digiwin0002', 'digiwin0003', 'digiwin0004', 'digiwin0005', 'default', 'M00020',
'digiwin0006', 'digiwin0007', 'digiwin0008', 'digiwin0009', 'digiwin0010', 'dongsk@digiwin.com']; 'digiwin0006', 'digiwin0007', 'digiwin0008', 'digiwin0009', 'digiwin0010', 'dongsk@digiwin.com'];
divContent = { divContent = {
@ -63,7 +63,7 @@ export class LayoutComponent implements OnInit, AfterViewInit {
const DwUserInfo = JSON.parse(sessionStorage.getItem("DwUserInfo")); const DwUserInfo = JSON.parse(sessionStorage.getItem("DwUserInfo"));
this.USER_ID = DwUserInfo.userId; this.USER_ID = DwUserInfo.userId;
this.dragEnable = this.USER_ID === 'dongsk@digiwin.com';
this.dragEnable = this.USER_ID === 'dongsk@digiwin.com' || this.USER_ID === 'M00020';
console.log(this.dragEnable); console.log(this.dragEnable);
@ -88,7 +88,7 @@ export class LayoutComponent implements OnInit, AfterViewInit {
// 非管理员加载 // 非管理员加载
this.divContent.userId = this.USER_ID; this.divContent.userId = this.USER_ID;
if (this.USER_ID === 'dongsk@digiwin.com') {
if (this.USER_ID === 'dongsk@digiwin.com' || this.USER_ID === 'M00020') {
this.divContent.userId = "default"; this.divContent.userId = "default";
} }
@ -142,7 +142,7 @@ export class LayoutComponent implements OnInit, AfterViewInit {
const DwUserInfo = JSON.parse(sessionStorage.getItem("DwUserInfo")); const DwUserInfo = JSON.parse(sessionStorage.getItem("DwUserInfo"));
if (DwUserInfo.userId === 'dongsk@digiwin.com') {
if (DwUserInfo.userId === 'dongsk@digiwin.com' || DwUserInfo.userId === 'M00020') {
return; return;
} }


Loading…
Cancel
Save