| | |
| | | sex: ['男', '女'][i % 2], |
| | | mobile: 13713713777 + i, |
| | | email: `test_${i + 1}@test.com`, |
| | | weixin: 'test', |
| | | weixin: 'test' + (i + 1), |
| | | password: 'ISGMyneATSuhkiwz4BURBQ==', |
| | | organization: '组织' + (i + 1), |
| | | nickname: '昵称' + (i + 1), |
| | |
| | | <i class="anticon anticon-plus"></i><span>新建</span> |
| | | </button> |
| | | <ng-container *ngIf="selectedRows.length > 0"> |
| | | <button nz-button [nzSize]="'large'">批量操作</button> |
| | | <nz-dropdown [nzPlacement]="'bottomLeft'"> |
| | | <button nz-button nz-dropdown [nzSize]="'large'"> |
| | | 更多操作 <i class="anticon anticon-down"></i> |
| | | </button> |
| | | <ul nz-menu> |
| | | <li nz-menu-item (click)="remove()">删除</li> |
| | | <li nz-menu-item (click)="approval()">批量审批</li> |
| | | </ul> |
| | | </nz-dropdown> |
| | | <button nz-button [nzSize]="'large'" (click)="remove()">批量删除</button> |
| | | </ng-container> |
| | | </div> |
| | | <div class="mb-md"> |
| | |
| | | this.getData(); |
| | | } |
| | | |
| | | approval() { |
| | | this.msg.success(`审批了 ${this.selectedRows.length} 笔`); |
| | | } |
| | | |
| | | checkAll(value: boolean) { |
| | | this.curRows.forEach(i => { |
| | | if (!i.disabled) i.checked = value; |