diff --git a/src/app/pages/home/home.component.html b/src/app/pages/home/home.component.html index cc28d1e..0ab9bf3 100644 --- a/src/app/pages/home/home.component.html +++ b/src/app/pages/home/home.component.html @@ -19,7 +19,7 @@ -
  • {{item.name}}
  • diff --git a/src/app/pages/login/login.component.ts b/src/app/pages/login/login.component.ts index 74e9357..a8f8ca0 100644 --- a/src/app/pages/login/login.component.ts +++ b/src/app/pages/login/login.component.ts @@ -124,7 +124,7 @@ export class LoginComponent implements OnInit { sessionStorage.setItem("encryptedAccessToken", data.result.encryptedAccessToken); this.http.get('/api/services/app/Session/GetCurrentLoginInformations').subscribe((data: any) => { console.log('GetCurrentLoginInformations', data.result) - if (data.result.user.menus.length == 0 && data.result.name!="admin") { + if (data.result.user.menus.length == 0 && data.result.user.userName!="admin") { this.message.create('error', `当前用户未分配菜单`); this.isLoading = false return diff --git a/src/app/system-management/user/user.component.html b/src/app/system-management/user/user.component.html index 15d33b8..196c26c 100644 --- a/src/app/system-management/user/user.component.html +++ b/src/app/system-management/user/user.component.html @@ -1,63 +1,100 @@
    -
    -
    - 用户列表 - {{usersNum}}名用户 +
    +
    +
    + 组织机构列表 +
    +
    + + + +
    -
    -
    - - - - - - - - -
    - +
    + 组织机构
    +
    + + + +
    + {{ node.title }} +
    +
    + + + + + + + + +
    +
    -
    - - - - - 账号 - 姓名 - 角色 - 所属机构 - 操作 - - - - - - {{ data.userName }} - {{ data.name }} - - {{item}} - - - - {{data.organizationName}} - - - 编辑 - 重置密码 - 删除 - - - - -
    - +
    \ No newline at end of file diff --git a/src/app/system-management/user/user.component.scss b/src/app/system-management/user/user.component.scss index 73aefe3..5184a8d 100644 --- a/src/app/system-management/user/user.component.scss +++ b/src/app/system-management/user/user.component.scss @@ -6,10 +6,68 @@ padding: 20px; overflow: hidden; display: flex; - flex-direction: column; - - thead {} + // flex-direction: column; + .treebox { + display: flex; + flex-direction: column; + } + .topbox2 { + width: 100%; + height: 36px; + display: flex; + align-items: center; + justify-content: space-between; + margin-top: 20px; + .lefttop { + span { + color: #000D21; + margin-right: 16px; + } + + .yellowspan { + color: rgb(240, 176, 37); + } + } + + .righttop { + height: 36px; + display: flex; + + button { + margin-left: 16px; + } + + nz-input-group { + height: 32px; + } + } + } + .orbox { + width: 375px; + // height: 100%; + overflow-y: auto; + margin-right: 10px; + display: flex; + flex-direction: column; + } + .treeTitle { + width: 100%; + height: 55px; + line-height: 55px; + margin-top: 12px; + display: flex; + justify-content: space-between; + color: #000D21; + box-sizing: border-box; + padding-left: 30px; + padding-right: 180px; + background: rgba(145, 204, 255, 0.2); + border: 1px solid rgba(145, 204, 255, 0.2); + } + .nodebox { + font-size: 15px; + } tbody { tr { td:nth-child(1) { @@ -29,7 +87,14 @@ } } } - +.box{ + flex: 1; + overflow: auto; + padding-top: 20px; + ::-webkit-scrollbar { + display: none; + } +} .topbox { width: 100%; height: 36px; @@ -37,7 +102,7 @@ align-items: center; justify-content: space-between; margin-bottom: 12px; - + .lefttop { span:nth-child(1) { color: #000D21;