Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
smart
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqinghua
smart
Commits
6edc5ee6
Commit
6edc5ee6
authored
Sep 17, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
project_constants
parent
0a0b4632
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
24 deletions
+50
-24
app.constants.ts
src/main/webapp/app/app.constants.ts
+2
-0
opr-project.component.html
...pp/project-manager/opr-project/opr-project.component.html
+19
-23
opr-project.component.ts
.../app/project-manager/opr-project/opr-project.component.ts
+2
-1
project.constants.ts
src/main/webapp/app/project-manager/project.constants.ts
+27
-0
No files found.
src/main/webapp/app/app.constants.ts
View file @
6edc5ee6
...
...
@@ -46,3 +46,5 @@ export const HostFlow = [
{
'label'
:
'总接受流量'
,
value
:
'total_flow_receive'
},
{
'label'
:
'总发送流量'
,
value
:
'total_flow'
},
];
//
src/main/webapp/app/project-manager/opr-project/opr-project.component.html
View file @
6edc5ee6
...
...
@@ -19,24 +19,22 @@
</div>
<div
nz-row
[
nzGutter
]="
4
"
class=
"search-form"
>
<div
nz-col
nzSpan=
"3"
>
<button
(
click
)="
showAddModal
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-plus-circle-o"
></i>
新增事件
</button>
</div>
<div
nz-col
nzSpan=
"5"
>
<nz-select
nzAllowClear
style=
"width: 100%;"
[(
ngModel
)]="
obj
.
typ
e
"
nzPlaceHolder=
"项目单位"
>
<ng-container
*
ngFor=
"let item of
eventType
List"
>
<nz-option
[
nzLabel
]="
item
.
name
"
[
nzValue
]="
item
.
id
"
></nz-option>
<nz-select
nzAllowClear
style=
"width: 100%;"
[(
ngModel
)]="
obj
.
companyNam
e
"
nzPlaceHolder=
"项目单位"
>
<ng-container
*
ngFor=
"let item of
status
List"
>
<nz-option
[
nzLabel
]="
item
.
key
"
[
nzValue
]="
item
.
value
"
></nz-option>
</ng-container>
</nz-select>
</div>
<div
nz-col
nzSpan=
"8"
>
<nz-date-picker
[
nzFormat
]="
timeFormat
"
[(
ngModel
)]="
startTime
"
[(
ngModel
)]="
obj
.
yearly
"
nzPlaceHolder=
"项目年度"
></nz-date-picker>
</div>
<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
nz-col
nzSpan=
"2"
>
<button
(
click
)="
search
()"
...
...
@@ -49,8 +47,6 @@
项目状态:
</div>
<div
nz-col
nzSpan=
"3"
>
<button
(
click
)="
showAddModal
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-plus-circle-o"
></i>
新增运维项目
</button>
</div>
<div
nz-col
nzSpan=
"2"
>
<button
(
click
)="
search
()"
...
...
@@ -70,38 +66,38 @@
<th>
项目状态
</th>
<th>
乙方公司
</th>
<th>
乙方维护组长
</th>
<th>
维护周期
</th>
<th>
项目金额
</th>
</tr>
</thead>
<tbody>
<tr
*
ngFor=
"let data of nzTable.data"
>
<td
class=
"round-tag tag-form"
>
{{data.
id
}}
{{data.
officeName
}}
</td>
<td>
{{data.
titl
e}}
{{data.
nam
e}}
</td>
<td>
{{data.
createTime | date:"yyyy-MM-dd HH:mm:ss"
}}
</td>
<td>
{{data.
officePrincipal
}}
</td>
<td>
<span
*
ngIf=
"data.source == 0"
>
系统告警
</span>
<span
*
ngIf=
"data.source == 1"
>
手动新增
</span>
{{data.yearly}}
</td>
<td>
{{data.typeName}}
</td>
<td>
<span
style=
"margin-right: 5px;"
*
ngFor=
"let item of data?.operators"
>
{{item.username}}
</span>
<span
*
ngIf=
"data.status == 0"
>
执行中
</span
>
<span
*
ngIf=
"data.status == 1"
>
已完成
</span>
<span
*
ngIf=
"data.status == 2"
>
待执行
</span>
</td>
<td>
{{data.companyName}}
</td>
<td>
<span
*
ngIf=
"data.status == 0"
>
待处理
</span>
<span
*
ngIf=
"data.status == 2"
>
待确认
</span>
<span
*
ngIf=
"data.status == 1"
>
已结束
</span>
</td>
<td
class=
"handle text-center main-color"
>
<span
*
ngIf=
"data.status == 1"
(
click
)="
lookEvent
(
data
)"
>
查看
</span>
<span
*
ngIf=
"data.status == 0 || data.status == 2"
(
click
)="
goToHandle
(
data
)"
>
处理
</span
>
<span
*
ngIf=
"data.status == 0 "
(
click
)="
showTransforModal
(
data
)"
>
转派
</span
>
<span
(
click
)="
deleteHandle
(
data
)"
>
删除
</span>
<td>
{{data.startDate | date:'yyyy-MM-dd'}}至{{data.endDate | date:'yyyy-MM-dd'}}
</td
>
<td
>
{{data.amount}}
</td>
</tr>
</tbody>
...
...
src/main/webapp/app/project-manager/opr-project/opr-project.component.ts
View file @
6edc5ee6
...
...
@@ -9,6 +9,7 @@ import {Router} from '@angular/router';
import
{
CommonService
}
from
'../../shared/common/common.service'
;
import
{
DatePipe
}
from
'@angular/common'
;
import
{
ProjectService
}
from
'../project.service'
;
import
{
project_status
}
from
'../project.constants'
;
@
Component
({
selector
:
'app-opr-project'
,
...
...
@@ -19,7 +20,7 @@ export class OprProjectComponent implements OnInit {
timeFormat
=
'yyyy'
;
statusList
=
[{
key
:
'全部'
,
value
:
null
},
{
key
:
'执行中'
,
value
:
0
},
{
key
:
'已完成'
,
value
:
1
},
{
key
:
'待执行'
,
value
:
2
}
];
statusList
=
[{
key
:
'全部'
,
value
:
null
},
project_status
];
page
=
{
list
:
[],
...
...
src/main/webapp/app/project-manager/project.constants.ts
0 → 100644
View file @
6edc5ee6
//项目状态
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
:
'其他类型'
},
];
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment