Browse Source

分组管理,选择用户的BUG修复

seimin 3 years ago
parent
commit
151d6d1c5b

+ 1 - 1
src/app/views/group-management/group-management.component.html

@@ -39,7 +39,7 @@
39
       <nz-table class="groupManagementTable" #rowSelectionTable [nzPageSize]="9999" [nzData]="allUserList"
39
       <nz-table class="groupManagementTable" #rowSelectionTable [nzPageSize]="9999" [nzData]="allUserList"
40
         [nzShowPagination]="false" #fixedTable [nzScroll]="{ y: tableHeight+'px' }" [nzLoading]="loading2">
40
         [nzShowPagination]="false" #fixedTable [nzScroll]="{ y: tableHeight+'px' }" [nzLoading]="loading2">
41
         <tbody>
41
         <tbody>
42
-          <tr *ngFor="let data of rowSelectionTable.data" (click)="mapOfCheckedId[data.id]=!mapOfCheckedId[data.id]">
42
+          <tr *ngFor="let data of rowSelectionTable.data" (click)="selectedUser(data)">
43
             <td style="text-align: left;cursor: pointer;" nzShowCheckbox [(nzDisabled)]="!coopBtns.edit"
43
             <td style="text-align: left;cursor: pointer;" nzShowCheckbox [(nzDisabled)]="!coopBtns.edit"
44
               [(nzChecked)]="mapOfCheckedId[data.id]" (nzCheckedChange)="refreshStatus()"></td>
44
               [(nzChecked)]="mapOfCheckedId[data.id]" (nzCheckedChange)="refreshStatus()"></td>
45
             <td>{{data.dept.dept}} {{ data.name }}</td>
45
             <td>{{data.dept.dept}} {{ data.name }}</td>

+ 4 - 1
src/app/views/group-management/group-management.component.ts

@@ -213,7 +213,10 @@ export class GroupManagementComponent implements OnInit {
213
       : [];
213
       : [];
214
     this.getAllUser();
214
     this.getAllUser();
215
   }
215
   }
216
-
216
+  selectedUser(data) {
217
+    this.mapOfCheckedId[data.id] = !this.mapOfCheckedId[data.id];
218
+    this.refreshStatus();
219
+  }
217
   // 选中列表中当前分组用户
220
   // 选中列表中当前分组用户
218
   usersArr = [];
221
   usersArr = [];
219
   refreshStatus(first?): void {
222
   refreshStatus(first?): void {

+ 1 - 0
src/app/views/hushijiandan/hushijiandan.component.less

@@ -20,6 +20,7 @@
20
       position: absolute;
20
       position: absolute;
21
       left: 100px;
21
       left: 100px;
22
       top: -10px;
22
       top: -10px;
23
+      z-index: 9;
23
     }
24
     }
24
   }
25
   }
25
   .addRemarks {
26
   .addRemarks {

+ 0 - 1
src/app/views/login/login.component.less

@@ -1,7 +1,6 @@
1
 @import "../../../../src/theme.less";
1
 @import "../../../../src/theme.less";
2
 :host {
2
 :host {
3
   width: 100%;
3
   width: 100%;
4
-  height: 100%;
5
 }
4
 }
6
 
5
 
7
 .login {
6
 .login {