Newer
Older
<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>
</div>
</div>
<div nz-row [nzGutter]="4" class="search-form">
<div nz-col nzSpan="3">
<button (click)="addPlan()" nz-button nzType="default"><i class="anticon anticon-plus-circle-o"></i>新增计划
</button>
<nz-select style="width: 100%;" [(ngModel)]="obj.status" nzPlaceHolder="计划状态">
<nz-option nzLabel="未开始" nzValue="0"></nz-option>
<nz-option nzLabel="进行中" nzValue="1"></nz-option>
<nz-option nzLabel="结束" nzValue="2"></nz-option>
</nz-select>
</div>
<nz-select style="width: 100%;" [(ngModel)]="obj.typeId" nzPlaceHolder="计划类型">
<ng-container *ngFor="let item of planTypeList">
<nz-option [nzValue]="item.id" [nzLabel]="item.name"></nz-option>
</ng-container>
<div nz-col nzSpan="6"></div>
<div nz-col nzSpan="5">
<input type="text" nz-input [(ngModel)]="obj.searchStr" placeholder="计划名称/负责人">
</div>
<div nz-col nzSpan="2">
<button (click)="getList()" nz-button nzType="default"><i class="anticon anticon-search"
style="color: #6097b7"></i>搜索
</button>
<nz-table #nzTable [nzData]="planList" [nzFrontPagination]="false" [nzTotal]="totalNum" [nzPageIndex]="pageNum"
[nzPageSize]="pageCount" (nzPageIndexChange)="change($event)">
<thead>
<tr>
<th>计划名称</th>
<th>计划类型</th>
<th>计划负责人</th>
<th>循环周期</th>
<th>开始日期</th>
<th>计划状态</th>
<th style="text-align: center">操作</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let data of planList">
<td class="round-tag tag-form">
{{data.title}}
</td>
<td>
{{data.typeName}}
</td>
<td>{{data.principals[0].username}}</td>
<td>
<span *ngIf="data.cycleType == '0'">每天</span>
<span *ngIf="data.cycleType == '1'">工作日</span>
<span *ngIf="data.cycleType == '2'">每周</span>
<span *ngIf="data.cycleType == '3'">每月</span>
<span *ngIf="data.cycleType == '4'">每季度</span>
<span *ngIf="data.cycleType == '5'">每半年</span>
<span *ngIf="data.cycleType == '6'">无</span>
/{{data.cycleNum}}
<!--<td>{{data.workload}}</td>-->
<td>{{data.startTime | date:"yyyy-MM-dd HH:mm:ss"}}</td>
<td>
<span *ngIf="data.status == 0">未开始</span>
<span *ngIf="data.status == 1">进行中</span>
<span *ngIf="data.status == 2">已结束</span>
</td>
<span (click)="editPlan(data.id)">编辑</span>
<span (click)="deletePlan(data)">删除</span>
<smart-plan-modal #smartPlanMoadl (done)="getList()"></smart-plan-modal>