沈斌
2017-12-18 222b694609771d3f037b9098270f10d4b78d7b19
src/app/routes/users/installer/installer.component.html
@@ -29,28 +29,17 @@
      <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">
    <nz-alert [nzType]="'info'" [nzShowIcon]="true">
        <span alert-body>
            已选择 <strong class="text-primary">{{selectedRows.length}}</strong> 项&nbsp;&nbsp;
            服务调用总计 <strong>{{totalCallNo}}</strong> 万
            <a *ngIf="totalCallNo > 0" (click)="clear()" class="ml-lg">清空</a>
            已选择 <strong class="text-primary">{{selectedRows.length}}</strong> 项
        </span>
    </nz-alert>
  </div>
  <nz-table #nzTable [nzDataSource]="data" [nzPageSize]="q.ps" [nzLoading]="loading" (nzDataChange)="dataChange($event)" (nzPageIndexChange)="pageChange($event)">
  <nz-table #nzTable [nzDataSource]="data" [nzPageSize]="q.ps" [nzLoading]="loading" (nzDataChange)="dataChange($event)" (nzPageIndexChange)="pageChange($event)" [nzShowTotal]="true">
    <thead nz-thead>
    <tr>
      <th nz-th [nzCheckbox]="true">
@@ -74,7 +63,7 @@
    <tbody nz-tbody>
    <tr nz-tbody-tr *ngFor="let i of nzTable.data">
      <td nz-td [nzCheckbox]="true">
        <label nz-checkbox [nzDisabled]="i.disabled" [(ngModel)]="i.checked" (ngModelChange)="refreshStatus($event)">
        <label nz-checkbox [(ngModel)]="i.checked" (ngModelChange)="refreshStatus($event)">
        </label>
      </td>
      <td nz-td>{{i.name}}</td>