<nz-modal [nzWidth]="980" [(nzVisible)]="isShow" [nzFooter]="null" nzTitle="发送记录" (nzOnCancel)="closeModal()" (nzOnOk)="closeModal()">
  <nz-table #nzTable [nzData]="logList" [nzFrontPagination]="false" [nzTotal]="totalNum" [nzPageIndex]="pageNum"
            [nzPageSize]="pageCount" (nzPageIndexChange)="change($event)" [nzLoading]="loading">
    <thead>
    <tr>
      <th nzWidth="15%">告警名称</th>
      <th nzWidth="20%">告警时间</th>
      <!--<th>告警资源</th>-->
      <th nzWidth="30%">告警内容</th>
      <th>状态</th>
      <th>发送方式</th>
      <th>发送对象</th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let data of logList">
      <td>{{data.name}}</td>
      <td>{{data.clock | date:"yyyy-MM-dd hh:mm:ss"}}</td>
      <!--<td>告警资源</td>-->
      <td>{{data.message}}</td>
      <td>
        <span *ngIf="data.status == 0">消息未发送</span>
        <span *ngIf="data.status == 1">消息已发送</span>
        <span *ngIf="data.status == 2">经多次重试后失败</span>
      </td>
      <td>
        <ng-container *ngIf="data.mediatypes">
          {{data.mediatypes[0].description}}
        </ng-container>
    </td>
      <td class="list-icon">{{data.sendto}}</td>
    </tr>
    </tbody>
  </nz-table>
</nz-modal>
