<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="8">
        项目状态:
        <nz-radio-group [(ngModel)]="obj.projectStatus">
            <label *ngFor="let item of statusList" (click)="search()" nz-radio-button
                   [nzValue]="item.value">{{item.label}}</label>
        </nz-radio-group>
    </div>
    <div nz-col nzSpan="4">
        <input type="text" (keyup.enter)="search()" nz-input [(ngModel)]="obj.projectName"
               placeholder="项目名称">
    </div>
    <div nz-col nzSpan="4">
        <input type="text" (keyup.enter)="search()" nz-input [(ngModel)]="obj.projectNumber"
               placeholder="项目编号">
    </div>
    <div nz-col nzSpan="4">
        <button (click)="search()"
                nz-button nzType="default"><i class="anticon anticon-search"></i>搜索
        </button>
    </div>
</div>
<div nz-row [nzGutter]="4" class="search-form">
    <div nz-col nzOffset="9" nzSpan="3">
        <button (click)="handleOpenModal()"
                nz-button nzType="default"><i class="anticon anticon-plus-circle-o"></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>建设分类</th>
        <th>项目分类</th>
        <th>项目状态</th>
        <th>项目阶段</th>
        <th>项目绩效</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let data of nzTable.data">
        <td>{{data.projectName}}</td>
        <td>{{data.projectNumber}}</td>
        <td>{{data.linkProjectName}}</td>
        <td>
            <span *ngIf="data.projectProperty == 1">新建项目</span>
            <span *ngIf="data.projectProperty == 2">升级改造</span>
        </td>
        <td>
            <span *ngIf="data.projectSort1 == 1">建设项目</span>
            <span *ngIf="data.projectSort1 == 2">运维项目</span>
            <span *ngIf="data.projectSort1 == 3">其他</span>
        </td>
        <td>
            <span *ngIf="data.projectStatus == 3">已完成</span>
            <span *ngIf="data.projectStatus == 2">执行中</span>
            <span *ngIf="data.projectStatus == 1">待启动</span>
        </td>
        <td>
            <span *ngIf="data.projectStage == 1">招标</span>
            <span *ngIf="data.projectStage == 2">需求调研</span>
            <span *ngIf="data.projectStage == 3">项目设计</span>
            <span *ngIf="data.projectStage == 4">项目研发</span>
            <span *ngIf="data.projectStage == 5">测试</span>
            <span *ngIf="data.projectStage == 6">试运行</span>
            <span *ngIf="data.projectStage == 7">评测</span>
            <span *ngIf="data.projectStage == 8">验收</span>
        </td>
        <td>
            <span *ngIf="data.projectPerformance == 0">基础服务</span>
            <span *ngIf="data.projectPerformance == 1">存储</span>
            <span *ngIf="data.projectPerformance == 2">视频会议</span>
            <span *ngIf="data.projectPerformance == 3">网上办事和行政办公</span>
        </td>
        <td class="handle main-color">
            <span (click)="handleEdit(data)">编辑</span>
            <span (click)="handleDelete(data)">删除</span>
        </td>
    </tr>
    </tbody>
</nz-table>
