<pro-header [title]="grid.title"></pro-header> 
 | 
<nz-card [nzBordered]="false"> 
 | 
        <div class="mb-md"> 
 | 
                <button nz-button (click)="add()" [nzType]="'primary'" [nzSize]="'large'"> 
 | 
                    <i class="anticon anticon-plus"></i><span>新建</span> 
 | 
                </button> 
 | 
                <ng-container *ngIf="grid.selectedIndexs.length > 0">   
 | 
                <button nz-button [nzSize]="'large'" (click)="remove()">批量删除</button> 
 | 
                </ng-container> 
 | 
                <nz-input [ngStyle]="{'width': '280px','float':'right'}" [(ngModel)]="queryMap.value" name=""  [nzPlaceHolder]="queryMap.text" 
 | 
                (change)="queryTextChanged($event)" ></nz-input> 
 | 
        </div> 
 | 
        <div class="mb-md"> 
 | 
                <nz-alert *ngIf="grid.selectedIndexs.length > 0" [nzType]="'info'" [nzShowIcon]="true">  
 | 
                    <span alert-body> 
 | 
                         已选择<strong class="text-primary">{{grid.selectedIndexs.length}}</strong>项 
 | 
                    </span>  
 | 
                </nz-alert> 
 | 
    </div> 
 | 
    <nz-table #nzTable 
 | 
              [nzAjaxData]="grid.data"               
 | 
              [nzTotal]="grid.total" 
 | 
              [(nzPageIndex)]="grid.pageIndex" 
 | 
              [(nzPageSize)]="grid.pageSize" 
 | 
              [nzLoading]="http.loading" 
 | 
              [nzShowTotal]="true" 
 | 
              (nzPageIndexChange)="load()" 
 | 
              (nzDataChange)="dataChange($event)"> 
 | 
              <thead nz-thead> 
 | 
                  <tr> 
 | 
                    <th nz-th [nzCheckbox]="true"> 
 | 
                        <label nz-checkbox [(ngModel)]="grid.allChecked" [nzIndeterminate]="grid.indeterminate" (ngModelChange)="grid.checkAll($event)"></label> 
 | 
                    </th> 
 | 
                    <th nz-th *ngFor="let col of grid.columns" 
 | 
                     [ngStyle]="{'width':col.width,'text-align':col['align'] === undefined?'left':col.align}" > 
 | 
                           <span>{{ col.text }}</span> 
 | 
                    </th> 
 | 
                  </tr> 
 | 
              </thead> 
 | 
              <tbody nz-tbody> 
 | 
                <tr nz-tbody-tr *ngFor="let row of nzTable.data"> 
 | 
                    <td nz-td [nzCheckbox]="true"> 
 | 
                       <label nz-checkbox [(ngModel)]="row.checked" (ngModelChange)="grid.refreshStatus($event)"></label> 
 | 
                    </td> 
 | 
                    <td nz-td *ngFor="let col of grid.columns" 
 | 
                    [ngStyle]="{'width':col.width,'text-align':col['align'] === undefined?'left':col.align}"> 
 | 
                        <span [ngSwitch]="col.type"> 
 | 
                             <!-- 要使用管道,无法自动生成 --> 
 | 
                            <span *ngSwitchDefault> {{ row[col.name]|tyepHandle:col }} </span> 
 | 
                             <!-- 要使用管道,无法自动生成 -->         
 | 
                        </span> 
 | 
                    </td> 
 | 
                </tr> 
 | 
              </tbody> 
 | 
              </nz-table> 
 | 
  </nz-card> 
 | 
   
 |