<nz-table #nzTable [nzData]="warnList" [nzFrontPagination]="false" [nzTotal]="totalNum"
          [nzPageIndex]="pageNum" [nzPageSize]="pageCount" (nzPageIndexChange)="change($event)"
          [nzLoading]="loading">
    <thead>
    <tr>
        <th nzShowSort>产生时间</th>
        <th>级别</th>
        <th>名称</th>
        <th nzWidth="15%">告警信息</th>
        <th *ngIf="!obj?.isWaring">持续时间</th>
        <th>状态</th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let data of warnList">
        <td>
            {{data.createTime}}
        </td>
        <td class="round-tag tag-form">
            <nz-tag class="tag-green" *ngIf="data.level == 0 " [nzColor]="'#58ca13'"></nz-tag>
            <nz-tag class="tag-red" *ngIf="data.level == 2 " [nzColor]="'#fc0d1b'"></nz-tag>
            <nz-tag class="tag-yellow" *ngIf="data.level == 1 " [nzColor]="'#fd9827'"></nz-tag>
        </td>
        <td>{{data.name}}</td>
        <td>{{data.description}}</td>
        <td *ngIf="!obj?.isWaring">
            <ng-container *ngIf="data.continuedTime">{{data.continuedTime}}</ng-container>
        </td>
        <td>
            <ng-container *ngIf="data.r_clock"><span class="color-green"><i class="anticon anticon-check-square-o"></i></span>
            </ng-container>
            <ng-container *ngIf="!data.r_clock"><span class="color-red">  <i class="anticon anticon-warning"></i></span>
            </ng-container>
        </td>
    </tr>
    </tbody>
</nz-table>
<smart-send-log #sendLog></smart-send-log>
