沈斌
2017-12-18 222b694609771d3f037b9098270f10d4b78d7b19
updates
3 files modified
17 ■■■■ changed files
_mock/installer.service.ts 2 ●●● patch | view | raw | blame | history
src/app/routes/users/installer/installer.component.html 11 ●●●●● patch | view | raw | blame | history
src/app/routes/users/installer/installer.component.ts 4 ●●●● patch | view | raw | blame | history
_mock/installer.service.ts
@@ -7,7 +7,7 @@
    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),
src/app/routes/users/installer/installer.component.html
@@ -29,16 +29,7 @@
      <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>
      &nbsp;<button nz-button [nzSize]="'large'" (click)="remove()">批量删除</button>
    </ng-container>
  </div>
  <div class="mb-md">
src/app/routes/users/installer/installer.component.ts
@@ -51,10 +51,6 @@
    this.getData();
  }
  approval() {
    this.msg.success(`审批了 ${this.selectedRows.length} 笔`);
  }
  checkAll(value: boolean) {
    this.curRows.forEach(i => {
      if (!i.disabled) i.checked = value;