Commit 6edc5ee6 authored by wangqinghua's avatar wangqinghua

project_constants

parent 0a0b4632
...@@ -46,3 +46,5 @@ export const HostFlow = [ ...@@ -46,3 +46,5 @@ export const HostFlow = [
{'label': '总接受流量', value: 'total_flow_receive'}, {'label': '总接受流量', value: 'total_flow_receive'},
{'label': '总发送流量', value: 'total_flow'}, {'label': '总发送流量', value: 'total_flow'},
]; ];
//
...@@ -19,24 +19,22 @@ ...@@ -19,24 +19,22 @@
</div> </div>
<div nz-row [nzGutter]="4" class="search-form"> <div nz-row [nzGutter]="4" class="search-form">
<div nz-col nzSpan="3"> <div nz-col nzSpan="3">
<button (click)="showAddModal()" nz-button nzType="default"><i class="anticon anticon-plus-circle-o"></i>新增事件
</button>
</div> </div>
<div nz-col nzSpan="5"> <div nz-col nzSpan="5">
<nz-select nzAllowClear style="width: 100%;" [(ngModel)]="obj.type" nzPlaceHolder="项目单位"> <nz-select nzAllowClear style="width: 100%;" [(ngModel)]="obj.companyName" nzPlaceHolder="项目单位">
<ng-container *ngFor="let item of eventTypeList"> <ng-container *ngFor="let item of statusList">
<nz-option [nzLabel]="item.name" [nzValue]="item.id"></nz-option> <nz-option [nzLabel]="item.key" [nzValue]="item.value"></nz-option>
</ng-container> </ng-container>
</nz-select> </nz-select>
</div> </div>
<div nz-col nzSpan="8"> <div nz-col nzSpan="8">
<nz-date-picker <nz-date-picker
[nzFormat]="timeFormat" [nzFormat]="timeFormat"
[(ngModel)]="startTime" [(ngModel)]="obj.yearly"
nzPlaceHolder="项目年度"></nz-date-picker> nzPlaceHolder="项目年度"></nz-date-picker>
</div> </div>
<div nz-col nzSpan="4"> <div nz-col nzSpan="4">
<input type="text" nz-input [(ngModel)]="obj.searchStr" placeholder="项目名称、甲方名称、乙方名称、甲方负责人"> <input type="text" nz-input [(ngModel)]="obj.keyword" placeholder="项目名称、甲方名称、乙方名称、甲方负责人">
</div> </div>
<div nz-col nzSpan="2"> <div nz-col nzSpan="2">
<button (click)="search()" <button (click)="search()"
...@@ -49,8 +47,6 @@ ...@@ -49,8 +47,6 @@
项目状态: 项目状态:
</div> </div>
<div nz-col nzSpan="3"> <div nz-col nzSpan="3">
<button (click)="showAddModal()" nz-button nzType="default"><i class="anticon anticon-plus-circle-o"></i>新增运维项目
</button>
</div> </div>
<div nz-col nzSpan="2"> <div nz-col nzSpan="2">
<button (click)="search()" <button (click)="search()"
...@@ -70,38 +66,38 @@ ...@@ -70,38 +66,38 @@
<th>项目状态</th> <th>项目状态</th>
<th>乙方公司</th> <th>乙方公司</th>
<th>乙方维护组长</th> <th>乙方维护组长</th>
<th>维护周期</th>
<th>项目金额</th> <th>项目金额</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr *ngFor="let data of nzTable.data"> <tr *ngFor="let data of nzTable.data">
<td class="round-tag tag-form"> <td class="round-tag tag-form">
{{data.id}} {{data.officeName}}
</td> </td>
<td> <td>
{{data.title}} {{data.name}}
</td> </td>
<td>{{data.createTime | date:"yyyy-MM-dd HH:mm:ss"}}</td> <td>{{data.officePrincipal}}</td>
<td> <td>
<span *ngIf="data.source == 0">系统告警</span> {{data.yearly}}
<span *ngIf="data.source == 1">手动新增</span>
</td> </td>
<td>{{data.typeName}}</td>
<td> <td>
<span style="margin-right: 5px;" *ngFor="let item of data?.operators"> <span *ngIf="data.status == 0">执行中</span>
{{item.username}} <span *ngIf="data.status == 1">已完成</span>
</span> <span *ngIf="data.status == 2">待执行</span>
</td> </td>
<td>{{data.companyName}}</td>
<td> <td>
<span *ngIf="data.status == 0">待处理</span> <span *ngIf="data.status == 0">待处理</span>
<span *ngIf="data.status == 2">待确认</span> <span *ngIf="data.status == 2">待确认</span>
<span *ngIf="data.status == 1">已结束</span> <span *ngIf="data.status == 1">已结束</span>
</td> </td>
<td class="handle text-center main-color"> <td>
<span *ngIf="data.status == 1" (click)="lookEvent(data)">查看</span> {{data.startDate | date:'yyyy-MM-dd'}}至{{data.endDate | date:'yyyy-MM-dd'}}
<span *ngIf="data.status == 0 || data.status == 2" (click)="goToHandle(data)">处理</span> </td>
<span *ngIf="data.status == 0 " (click)="showTransforModal(data)">转派</span> <td>
<span (click)="deleteHandle(data)">删除</span> {{data.amount}}
</td> </td>
</tr> </tr>
</tbody> </tbody>
......
...@@ -9,6 +9,7 @@ import {Router} from '@angular/router'; ...@@ -9,6 +9,7 @@ import {Router} from '@angular/router';
import {CommonService} from '../../shared/common/common.service'; import {CommonService} from '../../shared/common/common.service';
import {DatePipe} from '@angular/common'; import {DatePipe} from '@angular/common';
import {ProjectService} from '../project.service'; import {ProjectService} from '../project.service';
import {project_status} from '../project.constants';
@Component({ @Component({
selector: 'app-opr-project', selector: 'app-opr-project',
...@@ -19,7 +20,7 @@ export class OprProjectComponent implements OnInit { ...@@ -19,7 +20,7 @@ export class OprProjectComponent implements OnInit {
timeFormat = 'yyyy'; timeFormat = 'yyyy';
statusList = [{key: '全部', value: null}, {key: '执行中', value: 0}, {key: '已完成', value: 1}, {key: '待执行', value: 2}]; statusList = [{key: '全部', value: null}, project_status];
page = { page = {
list: [], list: [],
......
//项目状态
export const project_status = [
{key: '待启动', value: 2},
{key: '执行中', value: 0},
{key: '已完成', value: 1},
];
//运维公司类型
export const opr_company_type = [
{key: '0', value: '中心驻场'},
{key: '1', value: '中心运维'},
{key: '2', value: '外单位驻场'},
{key: '3', value: '外单位运维'},
];
//运维团队
export const opr_team_type = [
{key: '0', value: '驻场团队'},
{key: '1', value: '非驻场团队'},
];
//费用类型
export const opr_cost_type = [
{key: '0', value: '备件采购'},
{key: '1', value: '委外费用'},
{key: '2', value: '其他类型'},
];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment