<div nz-row class="breadcrumbs">
    <div nz-col nzSpan="16">
        <nz-breadcrumb class="padding-8-0">
            <nz-breadcrumb-item>
                首页
            </nz-breadcrumb-item>
            <nz-breadcrumb-item>
                <a>信息化项目</a>
            </nz-breadcrumb-item>
            <nz-breadcrumb-item>
                服务人员
            </nz-breadcrumb-item>
        </nz-breadcrumb>
    </div>
    <div nz-col nzSpan="8" class="text-right">
        <button (click)="ngOnInit()" nz-button nzType="primary"><i class="anticon anticon-sync"></i></button>
        <smart-full-screen></smart-full-screen>
    </div>
</div>
<div nz-row [nzGutter]="4" class="search-form">
    <div nz-col nzSpan="3">
        <button (click)="handleOpenModal()"
                nz-button nzType="default"><i class="anticon anticon-plus-circle-o"></i>新增服务单位
        </button>
    </div>
    <div nz-col nzSpan="6">
        <input type="text" (keyup.enter)="search()" nz-input [(ngModel)]="obj.companyName"
               placeholder="单位类型">
    </div>
    <div nz-col nzSpan="4">
        <button (click)="search()"
                nz-button nzType="default"><i class="anticon anticon-search"></i>搜索
        </button>
    </div>
</div>
<nz-table #nzTable [nzData]="page.list" [nzLoading]="page.isLoading" [nzFrontPagination]="false"
          [nzTotal]="page.totalNum"
          [nzPageIndex]="page.pageNum" [nzPageSize]="page.pageCount" (nzPageIndexChange)="change($event)">
    <thead>
    <tr>
        <th>序号</th>
        <th>单位名称</th>
        <th>工作类型</th>
        <th>联系电话1</th>
        <th>联系电话2</th>
        <th>职责描述</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let data of nzTable.data;let i = index">
        <td>{{i + 1 + (page.pageNum - 1) * page.pageCount}}</td>
        <td>{{data.companyName}}</td>
        <td>{{data.workType}}</td>
        <td>{{data.phone1}}</td>
        <td>{{data.phone2}}</td>
        <td>{{data.dutyDescription}}</td>
        <td class="handle main-color">
            <span (click)="handleEdit(data)">编辑</span>
            <span (click)="handleDelete(data)">删除</span>
        </td>
    </tr>
    </tbody>
</nz-table>
