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
14d03e9d
Commit
14d03e9d
authored
Jan 19, 2020
by
wangqinghua
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into dangxiao
parents
1f3e8268
10450e19
Hide whitespace changes
Inline
Side-by-side
Showing
57 changed files
with
376 additions
and
294 deletions
+376
-294
b-count.component.ts
src/main/webapp/app/analysis/b-count/b-count.component.ts
+12
-3
analysis-deal.component.ts
...s/operation-work/analysis-deal/analysis-deal.component.ts
+1
-0
analysis-event.component.ts
...operation-work/analysis-event/analysis-event.component.ts
+1
-0
analysis-status.component.ts
...eration-work/analysis-status/analysis-status.component.ts
+1
-0
b-topology.component.ts
...in/webapp/app/business/b-topology/b-topology.component.ts
+2
-2
effect-analysis.component.html
...p/business/effect-analysis/effect-analysis.component.html
+1
-2
effect-analysis.component.ts
...app/business/effect-analysis/effect-analysis.component.ts
+9
-9
business-warning.component.html
...-warning/business-warning/business-warning.component.html
+5
-5
business-warning.component.ts
...ly-warning/business-warning/business-warning.component.ts
+2
-8
warnging-rule.component.html
...-warning/modal/warnging-rule/warnging-rule.component.html
+17
-3
warnging-rule.component.ts
...ly-warning/modal/warnging-rule/warnging-rule.component.ts
+37
-8
warning-rule-look.component.html
.../modal/warning-rule-look/warning-rule-look.component.html
+5
-0
resource-warning.component.html
...-warning/resource-warning/resource-warning.component.html
+3
-3
resource-warning.component.ts
...ly-warning/resource-warning/resource-warning.component.ts
+4
-3
work-warning.component.html
...pp/early-warning/work-warning/work-warning.component.html
+5
-5
work-warning.component.ts
.../app/early-warning/work-warning/work-warning.component.ts
+3
-2
alarm-modal.component.html
...n/webapp/app/modal/alarm-modal/alarm-modal.component.html
+2
-2
basic-edit.component.html
...ain/webapp/app/modal/basic-edit/basic-edit.component.html
+1
-1
basic-edit.component.ts
src/main/webapp/app/modal/basic-edit/basic-edit.component.ts
+2
-2
modify-password.component.html
.../app/modal/modify-password/modify-password.component.html
+2
-2
modify-password.component.ts
...pp/app/modal/modify-password/modify-password.component.ts
+3
-2
basic.component.html
src/main/webapp/app/overAll/basic/basic.component.html
+1
-1
basic.component.ts
src/main/webapp/app/overAll/basic/basic.component.ts
+3
-2
network-check.component.html
...pp/app/overAll/network-check/network-check.component.html
+2
-2
my-follow.component.html
...in/webapp/app/overview/my-follow/my-follow.component.html
+14
-16
cost-modal.component.html
...roject-manager/modal/cost-modal/cost-modal.component.html
+19
-10
create-project.component.html
...anager/modal/create-project/create-project.component.html
+2
-2
create-track-info.component.html
.../modal/create-track-info/create-track-info.component.html
+0
-8
create-track-info.component.ts
...er/modal/create-track-info/create-track-info.component.ts
+0
-2
look-project.component.html
...ct-manager/modal/look-project/look-project.component.html
+6
-5
track-info.component.ts
.../project-manager/modal/track-info/track-info.component.ts
+9
-7
opr-cost.component.html
...bapp/app/project-manager/opr-cost/opr-cost.component.html
+2
-2
opr-project.component.html
...pp/project-manager/opr-project/opr-project.component.html
+3
-7
opr-team.component.html
...bapp/app/project-manager/opr-team/opr-team.component.html
+3
-4
common.service.ts
src/main/webapp/app/shared/common/common.service.ts
+1
-1
login.component.ts
src/main/webapp/app/shared/login/login.component.ts
+1
-4
pipe.module.ts
src/main/webapp/app/shared/pipe/pipe.module.ts
+8
-8
string-slice.pipe.ts
.../webapp/app/shared/pipe/string-slice/string-slice.pipe.ts
+13
-0
change-manage.component.html
.../system-change/change-manage/change-manage.component.html
+1
-1
change-create.component.ts
...tem-change/modal/change-create/change-create.component.ts
+6
-4
change-verity.component.ts
...tem-change/modal/change-verity/change-verity.component.ts
+1
-1
group.component.html
src/main/webapp/app/system/group/group.component.html
+1
-0
group.component.ts
src/main/webapp/app/system/group/group.component.ts
+15
-0
group-modal.component.html
...p/app/system/modal/group-modal/group-modal.component.html
+1
-1
role.component.html
src/main/webapp/app/system/modal/role/role.component.html
+1
-1
role.component.ts
src/main/webapp/app/system/modal/role/role.component.ts
+1
-1
power.component.html
src/main/webapp/app/system/power/power.component.html
+1
-10
system.service.ts
src/main/webapp/app/system/system.service.ts
+5
-0
asset-part.component.html
...main/webapp/app/work/asset-part/asset-part.component.html
+1
-1
asset-part.component.ts
src/main/webapp/app/work/asset-part/asset-part.component.ts
+1
-0
child-assets.component.html
.../work/asset-part/child-assets/child-assets.component.html
+1
-1
child-assets.component.ts
...pp/work/asset-part/child-assets/child-assets.component.ts
+71
-68
assets.component.ts
src/main/webapp/app/work/modal/assets/assets.component.ts
+58
-56
plan-modal.component.html
...ebapp/app/work/modal/plan-modal/plan-modal.component.html
+1
-1
plan-modal.component.ts
.../webapp/app/work/modal/plan-modal/plan-modal.component.ts
+2
-2
upload.component.ts
src/main/webapp/app/work/modal/upload/upload.component.ts
+2
-2
white.scss
src/main/webapp/content/scss/white.scss
+1
-1
No files found.
src/main/webapp/app/analysis/b-count/b-count.component.ts
View file @
14d03e9d
...
@@ -100,6 +100,7 @@ export class BCountComponent implements OnInit {
...
@@ -100,6 +100,7 @@ export class BCountComponent implements OnInit {
changeService
()
{
changeService
()
{
this
.
isLoading
=
true
;
this
.
isLoading
=
true
;
this
.
getInfo
();
this
.
getInfo
();
this
.
getRunTime
();
}
}
//系统可用性, 监测点, 用户统计
//系统可用性, 监测点, 用户统计
...
@@ -265,8 +266,17 @@ export class BCountComponent implements OnInit {
...
@@ -265,8 +266,17 @@ export class BCountComponent implements OnInit {
legend
:
{
legend
:
{
selectedMode
:
false
,
selectedMode
:
false
,
formatter
:
(
name
)
=>
{
formatter
:
(
name
)
=>
{
let
total
=
this
.
runObj
.
from
-
this
.
runObj
.
to
;
let
total
:
any
=
this
.
runObj
.
to
-
this
.
runObj
.
from
;
return
'{black|'
+
total
+
'}'
;
let
time
=
''
;
let
days
=
parseInt
(
String
(
total
/
(
1000
*
60
*
60
*
24
)));
let
hours
=
parseInt
(
String
((
total
%
(
1000
*
60
*
60
*
24
))
/
(
1000
*
60
*
60
)));
let
minutes
=
parseInt
(
String
((
total
%
(
1000
*
60
*
60
))
/
(
1000
*
60
)));
let
seconds
=
(
total
%
(
1000
*
60
))
/
1000
;
if
(
days
>
0
)
time
+=
days
+
'天'
;
if
(
hours
>
0
)
time
+=
hours
+
'小时'
;
if
(
minutes
>
0
)
time
+=
minutes
+
'分钟'
;
if
(
seconds
>
0
)
time
+=
seconds
.
toFixed
(
0
)
+
'秒'
;
return
'{black|'
+
time
+
'}'
;
},
},
data
:
[
echartData
[
0
].
name
],
data
:
[
echartData
[
0
].
name
],
left
:
'center'
,
left
:
'center'
,
...
@@ -274,7 +284,6 @@ export class BCountComponent implements OnInit {
...
@@ -274,7 +284,6 @@ export class BCountComponent implements OnInit {
icon
:
'none'
,
icon
:
'none'
,
align
:
'center'
,
align
:
'center'
,
textStyle
:
{
textStyle
:
{
color
:
'#fff'
,
rich
:
rich
rich
:
rich
},
},
},
},
...
...
src/main/webapp/app/analysis/operation-work/analysis-deal/analysis-deal.component.ts
View file @
14d03e9d
...
@@ -96,6 +96,7 @@ export class AnalysisDealComponent implements OnInit {
...
@@ -96,6 +96,7 @@ export class AnalysisDealComponent implements OnInit {
if
(
this
.
timeType
==
'99'
)
return
;
if
(
this
.
timeType
==
'99'
)
return
;
this
.
obj
.
startTime
=
this
.
commonSer
.
getTimeByType
(
this
.
timeType
).
startTime
;
this
.
obj
.
startTime
=
this
.
commonSer
.
getTimeByType
(
this
.
timeType
).
startTime
;
this
.
obj
.
endTime
=
this
.
commonSer
.
getTimeByType
(
this
.
timeType
).
endTime
;
this
.
obj
.
endTime
=
this
.
commonSer
.
getTimeByType
(
this
.
timeType
).
endTime
;
this
.
getEcharts
();
}
}
//搜索
//搜索
...
...
src/main/webapp/app/analysis/operation-work/analysis-event/analysis-event.component.ts
View file @
14d03e9d
...
@@ -96,6 +96,7 @@ export class AnalysisEventComponent implements OnInit {
...
@@ -96,6 +96,7 @@ export class AnalysisEventComponent implements OnInit {
if
(
this
.
timeType
==
'99'
)
return
;
if
(
this
.
timeType
==
'99'
)
return
;
this
.
obj
.
startTime
=
this
.
commonSer
.
getTimeByType
(
this
.
timeType
).
startTime
;
this
.
obj
.
startTime
=
this
.
commonSer
.
getTimeByType
(
this
.
timeType
).
startTime
;
this
.
obj
.
endTime
=
this
.
commonSer
.
getTimeByType
(
this
.
timeType
).
endTime
;
this
.
obj
.
endTime
=
this
.
commonSer
.
getTimeByType
(
this
.
timeType
).
endTime
;
this
.
getEcharts
();
}
}
//搜索
//搜索
...
...
src/main/webapp/app/analysis/operation-work/analysis-status/analysis-status.component.ts
View file @
14d03e9d
...
@@ -95,6 +95,7 @@ export class AnalysisStatusComponent implements OnInit {
...
@@ -95,6 +95,7 @@ export class AnalysisStatusComponent implements OnInit {
if
(
this
.
timeType
==
'99'
)
return
;
if
(
this
.
timeType
==
'99'
)
return
;
this
.
obj
.
startTime
=
this
.
commonSer
.
getTimeByType
(
this
.
timeType
).
startTime
;
this
.
obj
.
startTime
=
this
.
commonSer
.
getTimeByType
(
this
.
timeType
).
startTime
;
this
.
obj
.
endTime
=
this
.
commonSer
.
getTimeByType
(
this
.
timeType
).
endTime
;
this
.
obj
.
endTime
=
this
.
commonSer
.
getTimeByType
(
this
.
timeType
).
endTime
;
this
.
getEcharts
();
}
}
//搜索
//搜索
...
...
src/main/webapp/app/business/b-topology/b-topology.component.ts
View file @
14d03e9d
...
@@ -101,8 +101,8 @@ export class BTopologyComponent implements OnInit, AfterViewInit {
...
@@ -101,8 +101,8 @@ export class BTopologyComponent implements OnInit, AfterViewInit {
this
.
routerInfo
.
queryParams
.
subscribe
(
this
.
routerInfo
.
queryParams
.
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
topoId
=
res
.
topoId
+
''
;
this
.
topoId
=
res
.
topoId
;
this
.
getDetail
();
if
(
this
.
topoId
)
this
.
getDetail
();
}
}
}
}
);
);
...
...
src/main/webapp/app/business/effect-analysis/effect-analysis.component.html
View file @
14d03e9d
...
@@ -13,7 +13,6 @@
...
@@ -13,7 +13,6 @@
</nz-breadcrumb>
</nz-breadcrumb>
</div>
</div>
<div
nz-col
nzSpan=
"8"
class=
"text-right"
>
<div
nz-col
nzSpan=
"8"
class=
"text-right"
>
<button
nzType=
"primary"
(
click
)="
returnBack
()"
nz-button
>
返回上一页
</button>
<button
(
click
)="
ngOnInit
()"
nz-button
nzType=
"primary"
><i
class=
"anticon anticon-sync"
></i></button>
<button
(
click
)="
ngOnInit
()"
nz-button
nzType=
"primary"
><i
class=
"anticon anticon-sync"
></i></button>
<smart-full-screen></smart-full-screen>
<smart-full-screen></smart-full-screen>
</div>
</div>
...
@@ -23,7 +22,7 @@
...
@@ -23,7 +22,7 @@
<div
nz-col
nzSpan=
"12"
>
<div
nz-col
nzSpan=
"12"
>
<nz-select
style=
"width: 200px;"
nzPlaceHolder=
"选择业务"
[(
ngModel
)]="
serviceId
"
(
ngModelChange
)="
changeService
()"
>
<nz-select
style=
"width: 200px;"
nzPlaceHolder=
"选择业务"
[(
ngModel
)]="
serviceId
"
(
ngModelChange
)="
changeService
()"
>
<ng-container
*
ngFor=
"let item of rootList"
>
<ng-container
*
ngFor=
"let item of rootList"
>
<nz-option
[
nzLabel
]="
item
.
name
"
nzValue=
"{{item.serviceid}}"
></nz-option>
<nz-option
nzLabel=
"{{item.name}}
"
nzValue=
"{{item.serviceid}}"
></nz-option>
</ng-container>
</ng-container>
</nz-select>
</nz-select>
</div>
</div>
...
...
src/main/webapp/app/business/effect-analysis/effect-analysis.component.ts
View file @
14d03e9d
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
BusinessService
}
from
'../business.service'
;
import
{
BusinessService
}
from
'../business.service'
;
import
{
OverAllService
}
from
'../../overAll/overAll.service'
;
import
{
OverAllService
}
from
'../../overAll/overAll.service'
;
import
{
DatePipe
,
Location
}
from
'@angular/common'
;
import
{
DatePipe
,
Location
}
from
'@angular/common'
;
import
{
color
}
from
'../../app.constants'
;
import
{
color
}
from
'../../app.constants'
;
import
{
NzMessageService
}
from
'ng-zorro-antd'
;
import
{
NzMessageService
}
from
'ng-zorro-antd'
;
import
{
CommonService
}
from
'../../shared/common/common.service'
;
import
{
CommonService
}
from
'../../shared/common/common.service'
;
...
@@ -83,15 +83,15 @@ export class EffectAnalysisComponent implements OnInit {
...
@@ -83,15 +83,15 @@ export class EffectAnalysisComponent implements OnInit {
chartUser
;
chartUser
;
constructor
(
private
busineSer
:
BusinessService
,
private
overAllSer
:
OverAllService
,
constructor
(
private
busineSer
:
BusinessService
,
private
overAllSer
:
OverAllService
,
private
commonSer
:
CommonService
,
private
commonSer
:
CommonService
,
private
routerInfo
:
ActivatedRoute
,
private
routerInfo
:
ActivatedRoute
,
public
location
:
Location
,
public
location
:
Location
,
private
datePipe
:
DatePipe
,
private
message
:
NzMessageService
)
{
private
datePipe
:
DatePipe
,
private
message
:
NzMessageService
)
{
this
.
routerInfo
.
queryParams
.
subscribe
(
this
.
routerInfo
.
queryParams
.
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
)
{
if
(
res
.
topoId
)
{
this
.
serviceId
=
res
.
topoId
+
''
;
this
.
serviceId
=
res
.
topoId
+
""
;
this
.
changeService
();
if
(
this
.
serviceId
)
this
.
changeService
();
}
}
}
}
);
);
...
@@ -223,7 +223,7 @@ export class EffectAnalysisComponent implements OnInit {
...
@@ -223,7 +223,7 @@ export class EffectAnalysisComponent implements OnInit {
this
.
rootList
=
res
.
data
;
this
.
rootList
=
res
.
data
;
if
(
this
.
rootList
.
length
>
0
)
{
if
(
this
.
rootList
.
length
>
0
)
{
if
(
!
this
.
serviceId
)
{
if
(
!
this
.
serviceId
)
{
this
.
serviceId
=
this
.
rootList
[
0
].
serviceid
;
this
.
serviceId
=
this
.
rootList
[
0
].
serviceid
+
''
;
this
.
changeService
();
this
.
changeService
();
}
}
}
}
...
@@ -349,7 +349,7 @@ export class EffectAnalysisComponent implements OnInit {
...
@@ -349,7 +349,7 @@ export class EffectAnalysisComponent implements OnInit {
//时间改变
//时间改变
changeType
()
{
changeType
()
{
this
.
isSpinning
=
true
;
this
.
isSpinning
=
true
;
if
(
this
.
timeType
==
'99'
)
return
;
if
(
this
.
timeType
==
'99'
)
return
;
this
.
obj
.
startTime
=
this
.
commonSer
.
getTimeByType
(
this
.
timeType
).
startTime
;
this
.
obj
.
startTime
=
this
.
commonSer
.
getTimeByType
(
this
.
timeType
).
startTime
;
this
.
obj
.
endTime
=
this
.
commonSer
.
getTimeByType
(
this
.
timeType
).
endTime
;
this
.
obj
.
endTime
=
this
.
commonSer
.
getTimeByType
(
this
.
timeType
).
endTime
;
this
.
findChart
();
this
.
findChart
();
...
@@ -530,7 +530,7 @@ export class EffectAnalysisComponent implements OnInit {
...
@@ -530,7 +530,7 @@ export class EffectAnalysisComponent implements OnInit {
}
}
//返回上一页
//返回上一页
returnBack
(){
returnBack
()
{
this
.
location
.
back
();
this
.
location
.
back
();
}
}
}
}
src/main/webapp/app/early-warning/business-warning/business-warning.component.html
View file @
14d03e9d
...
@@ -21,18 +21,18 @@
...
@@ -21,18 +21,18 @@
<div
nz-col
nzSpan=
"6"
>
<div
nz-col
nzSpan=
"6"
>
预警级别:
预警级别:
<nz-radio-group
[(
ngModel
)]="
obj
.
ruleLevel
"
>
<nz-radio-group
[(
ngModel
)]="
obj
.
ruleLevel
"
>
<label
*
ngFor=
"let item of warning_leavel"
(
click
)="
search
()"
nz-radio-button
<label
*
ngFor=
"let item of warning_leavel"
(
click
)="
search
Value
()"
nz-radio-button
[
nzValue
]="
item
.
value
"
>
{{item.label}}
</label>
[
nzValue
]="
item
.
value
"
>
{{item.label}}
</label>
</nz-radio-group>
</nz-radio-group>
</div>
</div>
<div
nz-col
nzSpan=
"1
2
"
>
<div
nz-col
nzSpan=
"1
0
"
>
预警时间:
预警时间:
<nz-radio-group
[(
ngModel
)]="
time
.
timeType
"
(
ngModelChange
)="
changeTimeType
($
event
)"
>
<nz-radio-group
[(
ngModel
)]="
time
.
timeType
"
(
ngModelChange
)="
changeTimeType
($
event
)"
>
<label
*
ngFor=
"let item of warning_time"
nz-radio-button
<label
*
ngFor=
"let item of warning_time"
nz-radio-button
[
nzValue
]="
item
.
value
"
>
{{item.label}}
</label>
[
nzValue
]="
item
.
value
"
>
{{item.label}}
</label>
</nz-radio-group>
</nz-radio-group>
</div>
</div>
<div
nz-col
nzSpan=
"
6
"
>
<div
nz-col
nzSpan=
"
8
"
>
<ng-container
*
ngIf=
"time.timeType == '99'"
>
<ng-container
*
ngIf=
"time.timeType == '99'"
>
<nz-date-picker
<nz-date-picker
nzFormat=
"yyyy-MM-dd"
nzFormat=
"yyyy-MM-dd"
...
@@ -47,11 +47,11 @@
...
@@ -47,11 +47,11 @@
</div>
</div>
<div
nz-row
[
nzGutter
]="
4
"
class=
"search-form"
>
<div
nz-row
[
nzGutter
]="
4
"
class=
"search-form"
>
<div
nz-col
nzSpan=
"10"
>
<div
nz-col
nzSpan=
"10"
>
<input
type=
"text"
(
keyup
.
enter
)="
search
()"
nz-input
[(
ngModel
)]="
obj
.
keyword
"
<input
type=
"text"
(
keyup
.
enter
)="
search
Value
()"
nz-input
[(
ngModel
)]="
obj
.
keyword
"
placeholder=
"预警内容、触发规则、批注人、批注内容"
>
placeholder=
"预警内容、触发规则、批注人、批注内容"
>
</div>
</div>
<div
nz-col
nzSpan=
"2"
>
<div
nz-col
nzSpan=
"2"
>
<button
(
click
)="
search
()"
<button
(
click
)="
search
Value
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
></i>
搜索
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
></i>
搜索
</button>
</button>
</div>
</div>
...
...
src/main/webapp/app/early-warning/business-warning/business-warning.component.ts
View file @
14d03e9d
...
@@ -75,11 +75,6 @@ export class BusinessWarningComponent implements OnInit {
...
@@ -75,11 +75,6 @@ export class BusinessWarningComponent implements OnInit {
}
}
}
}
//搜索
search
()
{
this
.
page
.
pageNum
=
1
;
this
.
getList
();
}
//时间改变
//时间改变
changeTimeType
(
e
)
{
changeTimeType
(
e
)
{
...
@@ -93,10 +88,9 @@ export class BusinessWarningComponent implements OnInit {
...
@@ -93,10 +88,9 @@ export class BusinessWarningComponent implements OnInit {
//查询
//查询
searchValue
()
{
searchValue
()
{
if
(
this
.
time
.
timeType
==
'99'
)
{
if
(
this
.
time
.
timeType
==
'99'
)
{
this
.
obj
.
startDate
=
this
.
datePipe
.
transform
(
this
.
time
.
startTime
,
'yyyy-MM-dd
HH:mm:ss'
)
;
this
.
obj
.
startDate
=
this
.
datePipe
.
transform
(
this
.
time
.
startTime
,
'yyyy-MM-dd
'
)
+
' 00:00:00'
;
this
.
obj
.
endDate
=
this
.
datePipe
.
transform
(
this
.
time
.
endTime
,
'yyyy-MM-dd
HH:mm:ss'
)
;
this
.
obj
.
endDate
=
this
.
datePipe
.
transform
(
this
.
time
.
endTime
,
'yyyy-MM-dd
'
)
+
' 23:59:59'
;
}
}
this
.
getList
();
this
.
page
.
pageNum
=
1
;
this
.
page
.
pageNum
=
1
;
this
.
getList
();
this
.
getList
();
}
}
...
...
src/main/webapp/app/early-warning/modal/warnging-rule/warnging-rule.component.html
View file @
14d03e9d
...
@@ -54,10 +54,24 @@
...
@@ -54,10 +54,24 @@
<nz-form-item
nzFlex
>
<nz-form-item
nzFlex
>
<nz-form-label
[
nzSpan
]="
6
"
>
检测对象
<nz-form-label
[
nzSpan
]="
6
"
>
检测对象
</nz-form-label>
</nz-form-label>
<nz-form-control
[
nzSpan
]="
18
"
>
<nz-form-control
[
nzSpan
]="
9
"
>
<nz-select
style=
"width: 1
0
0px;"
formControlName=
"resourceGroupType"
>
<nz-select
style=
"width: 1
5
0px;"
formControlName=
"resourceGroupType"
>
<nz-option
nzLabel=
"按资源分组"
nzValue=
"1"
></nz-option>
<nz-option
nzLabel=
"按资源分组"
nzValue=
"1"
></nz-option>
<nz-option
nzLabel=
"按设备类型分组"
nzValue=
"2"
></nz-option>
<nz-option
nzLabel=
"按设备类别"
nzValue=
"2"
></nz-option>
</nz-select>
</nz-form-control>
<nz-form-control
*
ngIf=
"validateForm.value.resourceGroupType == '1'"
[
nzSpan
]="
9
"
>
<nz-select
style=
"width: 150px;"
formControlName=
"resourceGroupValue"
nzPlaceHolder=
"资源分组"
>
<ng-container
*
ngFor=
"let item of groupList"
>
<nz-option
[
nzLabel
]="
item
.
name
"
[
nzValue
]="
item
.
groupid
"
></nz-option>
</ng-container>
</nz-select>
</nz-form-control>
<nz-form-control
*
ngIf=
"validateForm.value.resourceGroupType == '2'"
[
nzSpan
]="
9
"
>
<nz-select
style=
"width: 150px;"
formControlName=
"resourceGroupValue"
nzPlaceHolder=
"设备类型"
>
<ng-container
*
ngFor=
"let item of equipmentList"
>
<nz-option
[
nzLabel
]="
item
.
equipmentType
"
[
nzValue
]="
item
.
equipmentTypeId
"
></nz-option>
</ng-container>
</nz-select>
</nz-select>
</nz-form-control>
</nz-form-control>
</nz-form-item>
</nz-form-item>
...
...
src/main/webapp/app/early-warning/modal/warnging-rule/warnging-rule.component.ts
View file @
14d03e9d
...
@@ -3,6 +3,7 @@ import {EarlyWarningService} from '../../earlyWarning.service';
...
@@ -3,6 +3,7 @@ import {EarlyWarningService} from '../../earlyWarning.service';
import
{
NzMessageService
}
from
'ng-zorro-antd'
;
import
{
NzMessageService
}
from
'ng-zorro-antd'
;
import
{
FormBuilder
,
FormGroup
,
Validators
}
from
'@angular/forms'
;
import
{
FormBuilder
,
FormGroup
,
Validators
}
from
'@angular/forms'
;
import
{
warning_type
}
from
'../../early.constants'
;
import
{
warning_type
}
from
'../../early.constants'
;
import
{
OverAllService
}
from
'../../../overAll/overAll.service'
;
@
Component
({
@
Component
({
selector
:
'smart-warnging-rule'
,
selector
:
'smart-warnging-rule'
,
...
@@ -24,30 +25,58 @@ export class WarngingRuleComponent implements OnInit {
...
@@ -24,30 +25,58 @@ export class WarngingRuleComponent implements OnInit {
newestRemark
;
newestRemark
;
validateForm
:
FormGroup
;
validateForm
:
FormGroup
;
groupList
=
[];
equipmentList
=
[];
constructor
(
private
earlySer
:
EarlyWarningService
,
private
message
:
NzMessageService
,
constructor
(
private
earlySer
:
EarlyWarningService
,
private
message
:
NzMessageService
,
private
overAllSer
:
OverAllService
,
private
fb
:
FormBuilder
,)
{
private
fb
:
FormBuilder
,)
{
}
}
ngOnInit
()
{
ngOnInit
()
{
this
.
initForm
();
this
.
initForm
();
this
.
getGroup
();
this
.
getType
();
}
}
initForm
()
{
initForm
()
{
this
.
validateForm
=
this
.
fb
.
group
({
this
.
validateForm
=
this
.
fb
.
group
({
name
:
[
null
,
[
Validators
.
required
]],
name
:
[
null
,
[
Validators
.
required
]],
type
:
[
'1'
],
level
:
[
null
],
type
:
[
'1'
],
level
:
[
null
],
cycle
:
[
null
],
content
:
[
null
],
cycle
:
[
'1'
],
content
:
[
null
],
fileId
:
[
null
],
resourceGroupType
:
[
null
],
fileId
:
[
null
],
resourceGroupType
:
[
'1'
],
resourceGroupValue
:
[
null
],
resourceWarningLevel
:
[
null
],
resourceGroupValue
:
[
null
],
resourceWarningLevel
:
[
'1'
],
resourceDays
:
[
null
],
resourceSymbol
:
[
null
],
resourceDays
:
[
null
],
resourceSymbol
:
[
'1'
],
resourceWarningTims
:
[
null
],
businessDataType
:
[
null
],
resourceWarningTims
:
[
null
],
businessDataType
:
[
null
],
businessDays
:
[
null
],
businessWarningSymbol
:
[
null
],
businessDays
:
[
null
],
businessWarningSymbol
:
[
'1'
],
businessWarningValue
:
[
null
],
businessThresholdSymbol
:
[
null
],
businessWarningValue
:
[
null
],
businessThresholdSymbol
:
[
'1'
],
businessThresholdValue
:
[
null
],
jobDataType
:
[
null
],
businessThresholdValue
:
[
null
],
jobDataType
:
[
'1'
],
jobUntreatedSymbol
:
[
null
],
jobUntreatedDays
:
[
null
],
jobUntreatedSymbol
:
[
'1'
],
jobUntreatedDays
:
[
null
],
});
});
}
}
//获取资源分组
getGroup
()
{
this
.
overAllSer
.
getEditGroups
(
0
).
subscribe
(
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
this
.
groupList
=
res
.
data
;
}
}
);
}
//获取设备类型
getType
()
{
this
.
overAllSer
.
findType
().
subscribe
(
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
this
.
equipmentList
=
res
.
data
;
}
}
);
}
//新增
//新增
showAddModal
(
title
)
{
showAddModal
(
title
)
{
this
.
modal
.
isVisible
=
true
;
this
.
modal
.
isVisible
=
true
;
...
...
src/main/webapp/app/early-warning/modal/warning-rule-look/warning-rule-look.component.html
View file @
14d03e9d
...
@@ -88,6 +88,11 @@
...
@@ -88,6 +88,11 @@
<nz-form-item
nzFlex
>
<nz-form-item
nzFlex
>
<nz-form-label
[
nzSpan
]="
8
"
nzFor=
"title"
>
告警次数
</nz-form-label>
<nz-form-label
[
nzSpan
]="
8
"
nzFor=
"title"
>
告警次数
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-form-control
[
nzSpan
]="
14
"
>
<ng-container
*
ngIf=
"msgObj?.resourceSymbol == '1'"
>
大于
</ng-container>
<ng-container
*
ngIf=
"msgObj?.resourceSymbol == '2'"
>
大于等于
</ng-container>
<ng-container
*
ngIf=
"msgObj?.resourceSymbol == '3'"
>
小于
</ng-container>
<ng-container
*
ngIf=
"msgObj?.resourceSymbol == '4'"
>
大于等于
</ng-container>
<ng-container
*
ngIf=
"msgObj?.resourceSymbol == '5'"
>
等于
</ng-container>
{{msgObj?.resourceWarningTims || '-'}}次
{{msgObj?.resourceWarningTims || '-'}}次
</nz-form-control>
</nz-form-control>
</nz-form-item>
</nz-form-item>
...
...
src/main/webapp/app/early-warning/resource-warning/resource-warning.component.html
View file @
14d03e9d
...
@@ -25,14 +25,14 @@
...
@@ -25,14 +25,14 @@
[
nzValue
]="
item
.
value
"
>
{{item.label}}
</label>
[
nzValue
]="
item
.
value
"
>
{{item.label}}
</label>
</nz-radio-group>
</nz-radio-group>
</div>
</div>
<div
nz-col
nzSpan=
"1
2
"
>
<div
nz-col
nzSpan=
"1
0
"
>
预警时间:
预警时间:
<nz-radio-group
[(
ngModel
)]="
time
.
timeType
"
(
ngModelChange
)="
changeTimeType
($
event
)"
>
<nz-radio-group
[(
ngModel
)]="
time
.
timeType
"
(
ngModelChange
)="
changeTimeType
($
event
)"
>
<label
*
ngFor=
"let item of warning_time"
nz-radio-button
<label
*
ngFor=
"let item of warning_time"
nz-radio-button
[
nzValue
]="
item
.
value
"
>
{{item.label}}
</label>
[
nzValue
]="
item
.
value
"
>
{{item.label}}
</label>
</nz-radio-group>
</nz-radio-group>
</div>
</div>
<div
nz-col
nzSpan=
"
6
"
>
<div
nz-col
nzSpan=
"
8
"
>
<ng-container
*
ngIf=
"time.timeType == '99'"
>
<ng-container
*
ngIf=
"time.timeType == '99'"
>
<nz-date-picker
<nz-date-picker
nzFormat=
"yyyy-MM-dd"
nzFormat=
"yyyy-MM-dd"
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
placeholder=
"预警内容、触发规则、批注人、批注内容"
>
placeholder=
"预警内容、触发规则、批注人、批注内容"
>
</div>
</div>
<div
nz-col
nzSpan=
"2"
>
<div
nz-col
nzSpan=
"2"
>
<button
(
click
)="
search
()"
<button
(
click
)="
search
Value
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
></i>
搜索
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
></i>
搜索
</button>
</button>
</div>
</div>
...
...
src/main/webapp/app/early-warning/resource-warning/resource-warning.component.ts
View file @
14d03e9d
...
@@ -34,7 +34,7 @@ export class ResourceWarningComponent implements OnInit {
...
@@ -34,7 +34,7 @@ export class ResourceWarningComponent implements OnInit {
obj
=
{
obj
=
{
ruleType
:
'1'
,
//1:资源预警;2:业务预警;3:工作预警;
ruleType
:
'1'
,
//1:资源预警;2:业务预警;3:工作预警;
ruleLevel
:
null
,
ruleLevel
:
''
,
keyword
:
''
,
keyword
:
''
,
startDate
:
''
,
startDate
:
''
,
endDate
:
''
,
endDate
:
''
,
...
@@ -95,9 +95,10 @@ export class ResourceWarningComponent implements OnInit {
...
@@ -95,9 +95,10 @@ export class ResourceWarningComponent implements OnInit {
//查询
//查询
searchValue
()
{
searchValue
()
{
if
(
this
.
time
.
timeType
==
'99'
)
{
if
(
this
.
time
.
timeType
==
'99'
)
{
this
.
obj
.
startDate
=
this
.
datePipe
.
transform
(
this
.
time
.
startTime
,
'yyyy-MM-dd
HH:mm:ss'
)
;
this
.
obj
.
startDate
=
this
.
datePipe
.
transform
(
this
.
time
.
startTime
,
'yyyy-MM-dd
'
)
+
' 00:00:00'
;
this
.
obj
.
endDate
=
this
.
datePipe
.
transform
(
this
.
time
.
endTime
,
'yyyy-MM-dd
HH:mm:ss'
)
;
this
.
obj
.
endDate
=
this
.
datePipe
.
transform
(
this
.
time
.
endTime
,
'yyyy-MM-dd
'
)
+
' 23:59:59'
;
}
}
this
.
page
.
pageNum
=
1
;
this
.
getList
();
this
.
getList
();
}
}
...
...
src/main/webapp/app/early-warning/work-warning/work-warning.component.html
View file @
14d03e9d
...
@@ -21,18 +21,18 @@
...
@@ -21,18 +21,18 @@
<div
nz-col
nzSpan=
"6"
>
<div
nz-col
nzSpan=
"6"
>
预警级别:
预警级别:
<nz-radio-group
[(
ngModel
)]="
obj
.
ruleLevel
"
>
<nz-radio-group
[(
ngModel
)]="
obj
.
ruleLevel
"
>
<label
*
ngFor=
"let item of warning_leavel"
(
click
)="
search
()"
nz-radio-button
<label
*
ngFor=
"let item of warning_leavel"
(
click
)="
search
Value
()"
nz-radio-button
[
nzValue
]="
item
.
value
"
>
{{item.label}}
</label>
[
nzValue
]="
item
.
value
"
>
{{item.label}}
</label>
</nz-radio-group>
</nz-radio-group>
</div>
</div>
<div
nz-col
nzSpan=
"1
2
"
>
<div
nz-col
nzSpan=
"1
0
"
>
预警时间:
预警时间:
<nz-radio-group
[(
ngModel
)]="
time
.
timeType
"
(
ngModelChange
)="
changeTimeType
($
event
)"
>
<nz-radio-group
[(
ngModel
)]="
time
.
timeType
"
(
ngModelChange
)="
changeTimeType
($
event
)"
>
<label
*
ngFor=
"let item of warning_time"
nz-radio-button
<label
*
ngFor=
"let item of warning_time"
nz-radio-button
[
nzValue
]="
item
.
value
"
>
{{item.label}}
</label>
[
nzValue
]="
item
.
value
"
>
{{item.label}}
</label>
</nz-radio-group>
</nz-radio-group>
</div>
</div>
<div
nz-col
nzSpan=
"
6
"
>
<div
nz-col
nzSpan=
"
8
"
>
<ng-container
*
ngIf=
"time.timeType == '99'"
>
<ng-container
*
ngIf=
"time.timeType == '99'"
>
<nz-date-picker
<nz-date-picker
nzFormat=
"yyyy-MM-dd"
nzFormat=
"yyyy-MM-dd"
...
@@ -47,11 +47,11 @@
...
@@ -47,11 +47,11 @@
</div>
</div>
<div
nz-row
[
nzGutter
]="
4
"
class=
"search-form"
>
<div
nz-row
[
nzGutter
]="
4
"
class=
"search-form"
>
<div
nz-col
nzSpan=
"10"
>
<div
nz-col
nzSpan=
"10"
>
<input
type=
"text"
(
keyup
.
enter
)="
search
()"
nz-input
[(
ngModel
)]="
obj
.
keyword
"
<input
type=
"text"
(
keyup
.
enter
)="
search
Value
()"
nz-input
[(
ngModel
)]="
obj
.
keyword
"
placeholder=
"预警内容、触发规则、批注人、批注内容"
>
placeholder=
"预警内容、触发规则、批注人、批注内容"
>
</div>
</div>
<div
nz-col
nzSpan=
"2"
>
<div
nz-col
nzSpan=
"2"
>
<button
(
click
)="
search
()"
<button
(
click
)="
search
Value
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
></i>
搜索
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
></i>
搜索
</button>
</button>
</div>
</div>
...
...
src/main/webapp/app/early-warning/work-warning/work-warning.component.ts
View file @
14d03e9d
...
@@ -97,9 +97,10 @@ export class WorkWarningComponent implements OnInit {
...
@@ -97,9 +97,10 @@ export class WorkWarningComponent implements OnInit {
//查询
//查询
searchValue
()
{
searchValue
()
{
if
(
this
.
time
.
timeType
==
'99'
)
{
if
(
this
.
time
.
timeType
==
'99'
)
{
this
.
obj
.
startDate
=
this
.
datePipe
.
transform
(
this
.
time
.
startTime
,
'yyyy-MM-dd
HH:mm:ss'
)
;
this
.
obj
.
startDate
=
this
.
datePipe
.
transform
(
this
.
time
.
startTime
,
'yyyy-MM-dd
'
)
+
' 00:00:00'
;
this
.
obj
.
endDate
=
this
.
datePipe
.
transform
(
this
.
time
.
endTime
,
'yyyy-MM-dd
HH:mm:ss'
)
;
this
.
obj
.
endDate
=
this
.
datePipe
.
transform
(
this
.
time
.
endTime
,
'yyyy-MM-dd
'
)
+
' 23:59:59'
;
}
}
this
.
page
.
pageNum
=
1
;
this
.
getList
();
this
.
getList
();
}
}
...
...
src/main/webapp/app/modal/alarm-modal/alarm-modal.component.html
View file @
14d03e9d
...
@@ -25,8 +25,8 @@
...
@@ -25,8 +25,8 @@
<ng-template
#
nzTreeTemplate
let-node
>
<ng-template
#
nzTreeTemplate
let-node
>
<span
class=
"custom-node"
draggable=
"true"
aria-grabbed=
"true"
<span
class=
"custom-node"
draggable=
"true"
aria-grabbed=
"true"
[
class
.
active
]="
node
.
isSelected
"
>
[
class
.
active
]="
node
.
isSelected
"
>
<label
[(
ngModel
)]="
node
.
isChecked
"
nz-checkbox
*
ngIf=
"node.level == 0"
<label
[(
ngModel
)]="
node
.
isChecked
"
*
ngIf=
"node.level == 0"
(
click
)="
selectCheckTreeGroup
(
node
)"
>
{{node.title}}
</label>
>
{{node.title}}
</label>
<label
[(
ngModel
)]="
node
.
isChecked
"
[
nzDisabled
]="
node
.
origin
.
disabled
"
<label
[(
ngModel
)]="
node
.
isChecked
"
[
nzDisabled
]="
node
.
origin
.
disabled
"
(
click
)="
selectCheckTree
(
node
)"
*
ngIf=
"node.level == 1"
(
click
)="
selectCheckTree
(
node
)"
*
ngIf=
"node.level == 1"
nz-checkbox
>
{{node.title}}
</label>
nz-checkbox
>
{{node.title}}
</label>
...
...
src/main/webapp/app/modal/basic-edit/basic-edit.component.html
View file @
14d03e9d
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
4
"
nzRequired
nzFor=
"showName"
>
显示名
</nz-form-label>
<nz-form-label
[
nzSpan
]="
4
"
nzRequired
nzFor=
"showName"
>
显示名
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-form-control
[
nzSpan
]="
14
"
>
<input
type=
"text"
nz-input
name=
"showName"
placeholder=
"显示名"
[(
ngModel
)]="
validateForm
.
name
"
>
<input
type=
"text"
maxlength=
"100"
nz-input
name=
"showName"
placeholder=
"显示名"
[(
ngModel
)]="
validateForm
.
name
"
>
</nz-form-control>
</nz-form-control>
</nz-form-item>
</nz-form-item>
...
...
src/main/webapp/app/modal/basic-edit/basic-edit.component.ts
View file @
14d03e9d
...
@@ -212,8 +212,8 @@ export class BasicEditComponent implements OnInit {
...
@@ -212,8 +212,8 @@ export class BasicEditComponent implements OnInit {
this
.
message
.
info
(
'请选择二级类型'
);
this
.
message
.
info
(
'请选择二级类型'
);
return
false
;
return
false
;
}
}
if
(
!
this
.
validateForm
.
name
)
{
if
(
!
this
.
validateForm
.
name
||
this
.
validateForm
.
name
.
length
>
100
)
{
this
.
message
.
info
(
'请输入显示名'
);
this
.
message
.
info
(
'请输入显示名
,且不超过100个字符
'
);
return
false
;
return
false
;
}
}
if
(
!
this
.
validateForm
.
host
)
{
if
(
!
this
.
validateForm
.
host
)
{
...
...
src/main/webapp/app/modal/modify-password/modify-password.component.html
View file @
14d03e9d
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<input
type=
"password"
nz-input
formControlName=
"newPassword"
placeholder=
"密码"
>
<input
type=
"password"
nz-input
formControlName=
"newPassword"
placeholder=
"密码"
>
<nz-form-explain
<nz-form-explain
*
ngIf=
"validateForm.get('newPassword').dirty && validateForm.get('newPassword').errors"
>
*
ngIf=
"validateForm.get('newPassword').dirty && validateForm.get('newPassword').errors"
>
新密码必须包含数字、英文字母,长度8-20位
新密码必须
英文字母开头,
包含数字、英文字母,长度8-20位
</nz-form-explain>
</nz-form-explain>
</nz-form-control>
</nz-form-control>
</nz-form-item>
</nz-form-item>
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<input
type=
"password"
nz-input
formControlName=
"realPassword"
placeholder=
"确认密码"
>
<input
type=
"password"
nz-input
formControlName=
"realPassword"
placeholder=
"确认密码"
>
<nz-form-explain
<nz-form-explain
*
ngIf=
"validateForm.get('realPassword').dirty && validateForm.get('realPassword').errors"
>
*
ngIf=
"validateForm.get('realPassword').dirty && validateForm.get('realPassword').errors"
>
新密码必须包含数字、英文字母,长度8-20位
新密码必须
英文字母开头,
包含数字、英文字母,长度8-20位
</nz-form-explain>
</nz-form-explain>
</nz-form-control>
</nz-form-control>
</nz-form-item>
</nz-form-item>
...
...
src/main/webapp/app/modal/modify-password/modify-password.component.ts
View file @
14d03e9d
...
@@ -47,6 +47,7 @@ export class ModifyPasswordComponent implements OnInit {
...
@@ -47,6 +47,7 @@ export class ModifyPasswordComponent implements OnInit {
this
.
message
.
error
(
'两次输入密码不一致'
);
this
.
message
.
error
(
'两次输入密码不一致'
);
return
false
;
return
false
;
}
}
this
.
isOkLoading
=
true
;
this
.
isOkLoading
=
true
;
this
.
getOldEncodepassword
();
this
.
getOldEncodepassword
();
}
}
...
@@ -107,8 +108,8 @@ export class ModifyPasswordComponent implements OnInit {
...
@@ -107,8 +108,8 @@ export class ModifyPasswordComponent implements OnInit {
initForm
()
{
initForm
()
{
this
.
validateForm
=
this
.
fb
.
group
({
this
.
validateForm
=
this
.
fb
.
group
({
oldPassword
:
[
null
,
[
Validators
.
required
]],
oldPassword
:
[
null
,
[
Validators
.
required
]],
newPassword
:
[
null
,
[
Validators
.
required
,
Validators
.
minLength
(
8
),
Validators
.
maxLength
(
20
)]],
newPassword
:
[
null
,
[
Validators
.
required
,
Validators
.
pattern
(
/^
(?=[
a-zA-Z
]
+
\d
+
)\w{8,20}
$/
)]],
realPassword
:
[
null
,
[
Validators
.
required
,
Validators
.
minLength
(
8
),
Validators
.
maxLength
(
20
)]],
realPassword
:
[
null
,
[
Validators
.
required
,
Validators
.
pattern
(
/^
(?=[
a-zA-Z
]
+
\d
+
)\w{8,20}
$/
)]],
});
});
}
}
}
}
src/main/webapp/app/overAll/basic/basic.component.html
View file @
14d03e9d
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<nz-select
*
ngIf=
"selectedValue == 'type'"
style=
"width: 200px;"
nzPlaceHolder=
"所有设备类型"
nzShowSearch
nzAllowClear
<nz-select
*
ngIf=
"selectedValue == 'type'"
style=
"width: 200px;"
nzPlaceHolder=
"所有设备类型"
nzShowSearch
nzAllowClear
(
ngModelChange
)="
changeEquiment
($
event
)"
[(
ngModel
)]="
equipmentTypeid
"
>
(
ngModelChange
)="
changeEquiment
($
event
)"
[(
ngModel
)]="
equipmentTypeid
"
>
<nz-option
nzLabel=
"全部"
[
nzValue
]="
null
"
></nz-option>
<nz-option
nzLabel=
"全部"
[
nzValue
]="
null
"
></nz-option>
<ng-container
*
ngFor=
"let item of
group
List"
>
<ng-container
*
ngFor=
"let item of
equipment
List"
>
<nz-option
[
nzLabel
]="
item
.
equipmentType
"
[
nzValue
]="
item
.
equipmentTypeId
"
></nz-option>
<nz-option
[
nzLabel
]="
item
.
equipmentType
"
[
nzValue
]="
item
.
equipmentTypeId
"
></nz-option>
</ng-container>
</ng-container>
</nz-select>
</nz-select>
...
...
src/main/webapp/app/overAll/basic/basic.component.ts
View file @
14d03e9d
...
@@ -86,6 +86,7 @@ export class BasicComponent implements OnInit {
...
@@ -86,6 +86,7 @@ export class BasicComponent implements OnInit {
selectedValue
=
'group'
;
selectedValue
=
'group'
;
groupList
=
[];
//分组列表
groupList
=
[];
//分组列表
equipmentList
=
[];
//设备列表
groupid
=
null
;
groupid
=
null
;
equipmentTypeid
=
null
;
equipmentTypeid
=
null
;
...
@@ -189,7 +190,7 @@ export class BasicComponent implements OnInit {
...
@@ -189,7 +190,7 @@ export class BasicComponent implements OnInit {
(
res
)
=>
{
(
res
)
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
errCode
==
10000
)
{
if
(
res
.
errCode
==
10000
)
{
this
.
group
List
=
res
.
data
;
this
.
equipment
List
=
res
.
data
;
this
.
search
();
this
.
search
();
}
}
}
}
...
@@ -473,7 +474,7 @@ export class BasicComponent implements OnInit {
...
@@ -473,7 +474,7 @@ export class BasicComponent implements OnInit {
let
opr
=
item
.
status
==
1
?
'开启'
:
'停止'
;
let
opr
=
item
.
status
==
1
?
'开启'
:
'停止'
;
this
.
modalService
.
confirm
({
this
.
modalService
.
confirm
({
nzTitle
:
'监控'
,
nzTitle
:
'监控'
,
nzContent
:
`确定
${
opr
}
监控设备
${
item
.
name
}
`
,
nzContent
:
`确定
${
opr
}
该监控?
`
,
nzOkText
:
'确定'
,
nzOkText
:
'确定'
,
nzCancelText
:
'取消'
,
nzCancelText
:
'取消'
,
nzOnOk
:
()
=>
{
nzOnOk
:
()
=>
{
...
...
src/main/webapp/app/overAll/network-check/network-check.component.html
View file @
14d03e9d
...
@@ -105,10 +105,10 @@
...
@@ -105,10 +105,10 @@
<ng-container
*
ngIf=
"item.status == 0"
><span
<ng-container
*
ngIf=
"item.status == 0"
><span
(
click
)="
operationHost
(
item
,'
1
','关闭')"
>
停止监控
</span></ng-container>
(
click
)="
operationHost
(
item
,'
1
','关闭')"
>
停止监控
</span></ng-container>
</a></li>
</a></li>
<li
(
click
)="
showTempStop
(
item
)"
nz-menu-item
>
<li
*
ngIf=
"item.status == 0"
(
click
)="
showTempStop
(
item
)"
nz-menu-item
>
<a
*
ngIf=
"!item.monitorTask"
>
临时暂停
</a>
<a
*
ngIf=
"!item.monitorTask"
>
临时暂停
</a>
</li>
</li>
<li
(
click
)="
showAlarm
(
item
)"
nz-menu-item
><a>
添加告警
</a></li>
<li
(
click
)="
showAlarm
()"
nz-menu-item
><a>
添加告警
</a></li>
</ul>
</ul>
</nz-dropdown>
</nz-dropdown>
</td>
</td>
...
...
src/main/webapp/app/overview/my-follow/my-follow.component.html
View file @
14d03e9d
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<div
nz-row
[
nzGutter
]="
4
"
class=
"search-form"
>
<div
nz-row
[
nzGutter
]="
4
"
class=
"search-form"
>
<div
nz-col
nzSpan=
"2"
>
<div
nz-col
nzSpan=
"2"
>
<button
(
click
)="
showModal
()"
<button
(
click
)="
showModal
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-
search
"
></i>
配置
nz-button
nzType=
"default"
><i
class=
"anticon anticon-
appstore
"
></i>
配置
</button>
</button>
</div>
</div>
</div>
</div>
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
<tr>
<tr>
<th>
事件编号
</th>
<th>
事件编号
</th>
<th
nzWidth=
"30%"
>
标题
</th>
<th
nzWidth=
"30%"
>
标题
</th>
<th
nzWidth=
"
15
%"
>
处理人
</th>
<th
nzWidth=
"
20
%"
>
处理人
</th>
<th>
状态
</th>
<th>
状态
</th>
</tr>
</tr>
</thead>
</thead>
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
{{data.id}}
{{data.id}}
</td>
</td>
<td>
<td>
{{data.title}}
{{data.title
| stringSlice:8:8
}}
</td>
</td>
<td>
<td>
<span
style=
"margin-right: 5px;"
*
ngFor=
"let item of data?.operators"
>
<span
style=
"margin-right: 5px;"
*
ngFor=
"let item of data?.operators"
>
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
<tbody>
<tbody>
<tr
*
ngFor=
"let data of nzTable2.data"
>
<tr
*
ngFor=
"let data of nzTable2.data"
>
<td
class=
"round-tag tag-form"
>
<td
class=
"round-tag tag-form"
>
{{data.title}}
{{data.title
| stringSlice:8:8
}}
</td>
</td>
<td>
<td>
{{data.typeName}}
{{data.typeName}}
...
@@ -119,7 +119,7 @@
...
@@ -119,7 +119,7 @@
<tbody>
<tbody>
<tr
*
ngFor=
"let data of nzTable3.data"
>
<tr
*
ngFor=
"let data of nzTable3.data"
>
<td>
<td>
{{data.name}}
{{data.name
| stringSlice:8:8
}}
</td>
</td>
<td>
<td>
{{data.inventorycount}}
{{data.inventorycount}}
...
@@ -128,7 +128,7 @@
...
@@ -128,7 +128,7 @@
<td>
<td>
{{data.usedcount}}
{{data.usedcount}}
</td>
</td>
<td>
{{data.eventSum}}
</td>
<td>
{{data.eventSum
| stringSlice:8:8
}}
</td>
</tr>
</tr>
</tbody>
</tbody>
</nz-table>
</nz-table>
...
@@ -149,9 +149,9 @@
...
@@ -149,9 +149,9 @@
<tbody>
<tbody>
<tr
*
ngFor=
"let data of nzTable4.data"
>
<tr
*
ngFor=
"let data of nzTable4.data"
>
<td>
{{data.inventoryNo}}
</td>
<td>
{{data.inventoryNo}}
</td>
<td>
{{data.inventoryName}}
</td>
<td>
{{data.inventoryName
| stringSlice:8:8
}}
</td>
<td>
{{data.inventoryType}}
</td>
<td>
{{data.inventoryType}}
</td>
<td>
{{data.belongObject}}
</td>
<td>
{{data.belongObject
| stringSlice:8:8
}}
</td>
</tr>
</tr>
</tbody>
</tbody>
</nz-table>
</nz-table>
...
@@ -180,7 +180,7 @@
...
@@ -180,7 +180,7 @@
<span
*
ngIf=
"data.type == 2"
>
重大变更
</span>
<span
*
ngIf=
"data.type == 2"
>
重大变更
</span>
<span
*
ngIf=
"data.type == 3"
>
紧急变更
</span>
<span
*
ngIf=
"data.type == 3"
>
紧急变更
</span>
</td>
</td>
<td>
{{data.description}}
</td>
<td>
{{data.description
| stringSlice:8:8
}}
</td>
<td>
{{data.verifyUserName}}
</td>
<td>
{{data.verifyUserName}}
</td>
<td>
<td>
<span
*
ngIf=
"data.status == 1"
>
待提交
</span>
<span
*
ngIf=
"data.status == 1"
>
待提交
</span>
...
@@ -211,7 +211,7 @@
...
@@ -211,7 +211,7 @@
<tbody>
<tbody>
<tr
*
ngFor=
"let data of nzTable6.data"
>
<tr
*
ngFor=
"let data of nzTable6.data"
>
<td
class=
"round-tag tag-form"
>
<td
class=
"round-tag tag-form"
>
{{data.officeName}}
{{data.officeName
| stringSlice:8:8
}}
</td>
</td>
<td>
{{data.officePrincipal}}
</td>
<td>
{{data.officePrincipal}}
</td>
<td>
<td>
...
@@ -242,7 +242,7 @@
...
@@ -242,7 +242,7 @@
</thead>
</thead>
<tbody>
<tbody>
<tr
*
ngFor=
"let data of nzTable7.data"
>
<tr
*
ngFor=
"let data of nzTable7.data"
>
<td>
{{data.name}}
</td>
<td>
{{data.name
| stringSlice:8:8
}}
</td>
<td>
{{data.principal}}
</td>
<td>
{{data.principal}}
</td>
<td>
<td>
<span
*
ngIf=
"data.type == 0"
>
中心驻场
</span>
<span
*
ngIf=
"data.type == 0"
>
中心驻场
</span>
...
@@ -266,19 +266,17 @@
...
@@ -266,19 +266,17 @@
<th
nzWidth=
"30%"
>
团队名称
</th>
<th
nzWidth=
"30%"
>
团队名称
</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 nzTable8.data"
>
<tr
*
ngFor=
"let data of nzTable8.data"
>
<td>
{{data.name}}
</td>
<td>
{{data.name
| stringSlice:8:8
}}
</td>
<td>
<td>
<span
*
ngIf=
"data.type == 0"
>
驻场团队
</span>
<span
*
ngIf=
"data.type == 0"
>
驻场团队
</span>
<span
*
ngIf=
"data.type == 1"
>
非驻场团队
</span>
<span
*
ngIf=
"data.type == 1"
>
非驻场团队
</span>
</td>
</td>
<td>
{{data.companyName}}
</td>
<td>
{{data.companyName | stringSlice:8:8}}
</td>
<td>
{{data.projectName}}
</td>
<td>
{{data.principal}}
</td>
<td>
{{data.principal}}
</td>
</tr>
</tr>
</tbody>
</tbody>
...
@@ -300,7 +298,7 @@
...
@@ -300,7 +298,7 @@
</thead>
</thead>
<tbody>
<tbody>
<tr
*
ngFor=
"let data of nzTable9.data"
>
<tr
*
ngFor=
"let data of nzTable9.data"
>
<td>
{{data.projectName}}
</td>
<td>
{{data.projectName
| stringSlice:8:8
}}
</td>
<td>
{{data.timeStr | date:'yyyy-MM-dd HH:mm:ss'}}
</td>
<td>
{{data.timeStr | date:'yyyy-MM-dd HH:mm:ss'}}
</td>
<td>
{{data.people}}
</td>
<td>
{{data.people}}
</td>
<td>
{{data.costdescribe}}
</td>
<td>
{{data.costdescribe}}
</td>
...
...
src/main/webapp/app/project-manager/modal/cost-modal/cost-modal.component.html
View file @
14d03e9d
<!--添加资源-->
<!--添加资源-->
<nz-modal
[
nzMaskClosable
]="
false
"
[
nzWidth
]="
1080
"
[(
nzVisible
)]="
isVisiable
"
[
nzTitle
]="
title
"
(
nzOnCancel
)="
handleCancle
()"
<nz-modal
[
nzMaskClosable
]="
false
"
[
nzWidth
]="
1080
"
[(
nzVisible
)]="
isVisiable
"
[
nzTitle
]="
title
"
(
nzOnOk
)="
handEditleOk
()"
>
(
nzOnCancel
)="
handleCancle
()"
(
nzOnOk
)="
handEditleOk
()"
[
nzFooter
]="
title =
=
'费用记录'?
null:true
"
>
<div
nz-form
class=
"ant-advanced-search-form form-select"
>
<div
nz-form
class=
"ant-advanced-search-form form-select"
>
<div
nz-row
[
nzGutter
]="
24
"
>
<div
nz-row
[
nzGutter
]="
24
"
>
<div
nz-col
[
nzSpan
]="
12
"
>
<div
nz-col
[
nzSpan
]="
12
"
>
...
@@ -26,7 +27,7 @@
...
@@ -26,7 +27,7 @@
<div
nz-row
[
nzGutter
]="
24
"
>
<div
nz-row
[
nzGutter
]="
24
"
>
<div
nz-col
[
nzSpan
]="
6
"
>
<div
nz-col
[
nzSpan
]="
6
"
>
<nz-form-item
nzFlex
>
<nz-form-item
nzFlex
>
<nz-form-label
[
nzOffset
]="
12
"
[
nzSpan
]="
12
"
nzFor=
"title"
>
备件采购
</nz-form-label>
<nz-form-label
[
nzOffset
]="
12
"
[
nzSpan
]="
12
"
nzFor=
"title"
>
备件采购
</nz-form-label>
</nz-form-item>
</nz-form-item>
</div>
</div>
...
@@ -34,7 +35,8 @@
...
@@ -34,7 +35,8 @@
<nz-form-item
nzFlex
>
<nz-form-item
nzFlex
>
<nz-form-label
[
nzOffset
]="
4
"
[
nzSpan
]="
6
"
nzFor=
"title"
>
数量
</nz-form-label>
<nz-form-label
[
nzOffset
]="
4
"
[
nzSpan
]="
6
"
nzFor=
"title"
>
数量
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-input-number
[
disabled
]="
title =
=
'费用记录'"
[(
ngModel
)]="
obj
.
purchasenum
"
[
nzMin
]="
0
"
(
ngModelChange
)="
countTotal
()"
></nz-input-number>
<nz-input-number
[
disabled
]="
title =
=
'费用记录'"
[(
ngModel
)]="
obj
.
purchasenum
"
[
nzMin
]="
0
"
(
ngModelChange
)="
countTotal
()"
></nz-input-number>
</nz-form-control>
</nz-form-control>
</nz-form-item>
</nz-form-item>
</div>
</div>
...
@@ -43,7 +45,9 @@
...
@@ -43,7 +45,9 @@
<nz-form-item
nzFlex
>
<nz-form-item
nzFlex
>
<nz-form-label
[
nzSpan
]="
6
"
nzFor=
"typeId"
>
金额
</nz-form-label>
<nz-form-label
[
nzSpan
]="
6
"
nzFor=
"typeId"
>
金额
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-input-number
[
disabled
]="
title =
=
'费用记录'"
style=
"width: 90%;display: inline-block"
[
nzMin
]="
0
"
[(
ngModel
)]="
obj
.
purchasemoney
"
(
ngModelChange
)="
countTotal
()"
></nz-input-number>
<nz-input-number
[
disabled
]="
title =
=
'费用记录'"
style=
"width: 90%;display: inline-block"
[
nzMin
]="
0
"
[(
ngModel
)]="
obj
.
purchasemoney
"
(
ngModelChange
)="
countTotal
()"
></nz-input-number>
元
元
</nz-form-control>
</nz-form-control>
</nz-form-item>
</nz-form-item>
...
@@ -61,7 +65,8 @@
...
@@ -61,7 +65,8 @@
<nz-form-item
nzFlex
>
<nz-form-item
nzFlex
>
<nz-form-label
[
nzOffset
]="
4
"
[
nzSpan
]="
6
"
nzFor=
"title"
>
数量
</nz-form-label>
<nz-form-label
[
nzOffset
]="
4
"
[
nzSpan
]="
6
"
nzFor=
"title"
>
数量
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-input-number
[
disabled
]="
title =
=
'费用记录'"
[(
ngModel
)]="
obj
.
outsourcingnum
"
[
nzMin
]="
0
"
(
ngModelChange
)="
countTotal
()"
></nz-input-number>
<nz-input-number
[
disabled
]="
title =
=
'费用记录'"
[(
ngModel
)]="
obj
.
outsourcingnum
"
[
nzMin
]="
0
"
(
ngModelChange
)="
countTotal
()"
></nz-input-number>
</nz-form-control>
</nz-form-control>
</nz-form-item>
</nz-form-item>
</div>
</div>
...
@@ -71,7 +76,8 @@
...
@@ -71,7 +76,8 @@
<nz-form-label
[
nzSpan
]="
6
"
nzFor=
"typeId"
>
金额
</nz-form-label>
<nz-form-label
[
nzSpan
]="
6
"
nzFor=
"typeId"
>
金额
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-input-number
style=
"width: 90%;display: inline-block"
[
disabled
]="
title =
=
'费用记录'"
<nz-input-number
style=
"width: 90%;display: inline-block"
[
disabled
]="
title =
=
'费用记录'"
[(
ngModel
)]="
obj
.
outsourcingmoney
"
[
nzMin
]="
0
"
(
ngModelChange
)="
countTotal
()"
></nz-input-number>
[(
ngModel
)]="
obj
.
outsourcingmoney
"
[
nzMin
]="
0
"
(
ngModelChange
)="
countTotal
()"
></nz-input-number>
元
元
</nz-form-control>
</nz-form-control>
</nz-form-item>
</nz-form-item>
...
@@ -91,7 +97,8 @@
...
@@ -91,7 +97,8 @@
<nz-form-item
nzFlex
>
<nz-form-item
nzFlex
>
<nz-form-label
[
nzOffset
]="
4
"
[
nzSpan
]="
6
"
nzFor=
"title"
>
数量
</nz-form-label>
<nz-form-label
[
nzOffset
]="
4
"
[
nzSpan
]="
6
"
nzFor=
"title"
>
数量
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-input-number
[
disabled
]="
title =
=
'费用记录'"
[(
ngModel
)]="
obj
.
othernum
"
[
nzMin
]="
0
"
(
ngModelChange
)="
countTotal
()"
></nz-input-number>
<nz-input-number
[
disabled
]="
title =
=
'费用记录'"
[(
ngModel
)]="
obj
.
othernum
"
[
nzMin
]="
0
"
(
ngModelChange
)="
countTotal
()"
></nz-input-number>
</nz-form-control>
</nz-form-control>
</nz-form-item>
</nz-form-item>
</div>
</div>
...
@@ -101,7 +108,8 @@
...
@@ -101,7 +108,8 @@
<nz-form-label
[
nzSpan
]="
6
"
nzFor=
"typeId"
>
金额
</nz-form-label>
<nz-form-label
[
nzSpan
]="
6
"
nzFor=
"typeId"
>
金额
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-input-number
style=
"width: 90%;display: inline-block"
[
disabled
]="
title =
=
'费用记录'"
<nz-input-number
style=
"width: 90%;display: inline-block"
[
disabled
]="
title =
=
'费用记录'"
[(
ngModel
)]="
obj
.
othermoney
"
[
nzMin
]="
0
"
(
ngModelChange
)="
countTotal
()"
></nz-input-number>
[(
ngModel
)]="
obj
.
othermoney
"
[
nzMin
]="
0
"
(
ngModelChange
)="
countTotal
()"
></nz-input-number>
元
元
</nz-form-control>
</nz-form-control>
</nz-form-item>
</nz-form-item>
...
@@ -113,7 +121,8 @@
...
@@ -113,7 +121,8 @@
<nz-form-item
nzFlex
>
<nz-form-item
nzFlex
>
<nz-form-label
[
nzOffset
]="
4
"
[
nzSpan
]="
6
"
nzFor=
"title"
>
费用描述
</nz-form-label>
<nz-form-label
[
nzOffset
]="
4
"
[
nzSpan
]="
6
"
nzFor=
"title"
>
费用描述
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-form-control
[
nzSpan
]="
14
"
>
<textarea
[(
ngModel
)]="
obj
.
costdescribe
"
nz-input
placeholder=
"费用描述"
[
disabled
]="
title =
=
'费用记录'"
<textarea
[(
ngModel
)]="
obj
.
costdescribe
"
nz-input
placeholder=
"费用描述"
[
disabled
]="
title =
=
'费用记录'"
[
nzAutosize
]="{
minRows:
3
,
maxRows:
6
}"
></textarea>
[
nzAutosize
]="{
minRows:
3
,
maxRows:
6
}"
></textarea>
</nz-form-control>
</nz-form-control>
</nz-form-item>
</nz-form-item>
...
...
src/main/webapp/app/project-manager/modal/create-project/create-project.component.html
View file @
14d03e9d
...
@@ -85,10 +85,10 @@
...
@@ -85,10 +85,10 @@
<ng-template
#
modalFooter
>
<ng-template
#
modalFooter
>
<button
nz-button
nzType=
"default"
(
click
)="
handleCancel
()"
>
取消
</button>
<button
nz-button
nzType=
"default"
(
click
)="
handleCancel
()"
>
取消
</button>
<button
nz-button
nzType=
"primary"
(
click
)="
handleOk
(
2
)"
[
nzLoading
]="
isOkLoading
"
>
保存
</button>
<button
nz-button
nzType=
"primary"
(
click
)="
handleOk
(
2
)"
[
nzLoading
]="
isOkLoading
"
>
保存
</button>
<button
*
ngIf=
"title == '编辑运维项目'"
nz-button
nzType=
"primary"
(
click
)="
handleOk
(
0
)"
[
nzLoading
]="
isOkLoading
"
>
<button
*
ngIf=
"title == '编辑运维项目'
&& validateForm.value.status == '2'
"
nz-button
nzType=
"primary"
(
click
)="
handleOk
(
0
)"
[
nzLoading
]="
isOkLoading
"
>
启动项目
启动项目
</button>
</button>
<button
*
ngIf=
"title == '编辑运维项目'"
nz-button
nzType=
"primary"
(
click
)="
handleOk
(
1
)"
[
nzLoading
]="
isOkLoading
"
>
<button
*
ngIf=
"title == '编辑运维项目'
&& validateForm.value.status == 0
"
nz-button
nzType=
"primary"
(
click
)="
handleOk
(
1
)"
[
nzLoading
]="
isOkLoading
"
>
终止
终止
</button>
</button>
</ng-template>
</ng-template>
...
...
src/main/webapp/app/project-manager/modal/create-track-info/create-track-info.component.html
View file @
14d03e9d
<nz-modal
[
nzMaskClosable
]="
false
"
[
nzWidth
]="
480
"
[(
nzVisible
)]="
isVisible
"
[
nzTitle
]="
title
"
(
nzOnOk
)="
handleOk
()"
(
nzOnCancel
)="
handleCancel
()"
<nz-modal
[
nzMaskClosable
]="
false
"
[
nzWidth
]="
480
"
[(
nzVisible
)]="
isVisible
"
[
nzTitle
]="
title
"
(
nzOnOk
)="
handleOk
()"
(
nzOnCancel
)="
handleCancel
()"
[
nzOkLoading
]="
isOkLoading
"
>
[
nzOkLoading
]="
isOkLoading
"
>
<form
[
formGroup
]="
validateForm
"
nz-form
>
<form
[
formGroup
]="
validateForm
"
nz-form
>
<nz-form-item
*
ngIf=
"!title.includes('跟踪信息')"
>
<nz-form-label
[
nzSm
]="
6
"
[
nzXs
]="
24
"
nzRequired
nzFor=
"createUserName"
>
操作人
</nz-form-label>
<nz-form-control
[
nzSm
]="
14
"
[
nzXs
]="
24
"
>
<input
disabled
nz-input
formControlName=
"createUserName"
style=
"width: 70%;display: inline-block"
id=
"createUserName"
placeholder=
"操作人"
>
<button
nz-button
nzType=
"primary"
(
click
)="
showPeoplemodal
()"
>
选择
</button>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSm
]="
6
"
[
nzXs
]="
24
"
nzRequired
nzFor=
"msg"
>
跟踪内容
</nz-form-label>
<nz-form-label
[
nzSm
]="
6
"
[
nzXs
]="
24
"
nzRequired
nzFor=
"msg"
>
跟踪内容
</nz-form-label>
<nz-form-control
[
nzSm
]="
14
"
[
nzXs
]="
24
"
>
<nz-form-control
[
nzSm
]="
14
"
[
nzXs
]="
24
"
>
...
...
src/main/webapp/app/project-manager/modal/create-track-info/create-track-info.component.ts
View file @
14d03e9d
...
@@ -38,8 +38,6 @@ export class CreateTrackInfoComponent implements OnInit {
...
@@ -38,8 +38,6 @@ export class CreateTrackInfoComponent implements OnInit {
initForm
()
{
initForm
()
{
this
.
validateForm
=
this
.
fb
.
group
({
this
.
validateForm
=
this
.
fb
.
group
({
createUserId
:
[
null
],
createUserName
:
[
null
],
msg
:
[
null
,
[
Validators
.
required
]],
msg
:
[
null
,
[
Validators
.
required
]],
componentId
:
[
null
],
componentId
:
[
null
],
maintainType
:
[
null
],
maintainType
:
[
null
],
...
...
src/main/webapp/app/project-manager/modal/look-project/look-project.component.html
View file @
14d03e9d
...
@@ -21,10 +21,11 @@
...
@@ -21,10 +21,11 @@
项目类型
项目类型
</nz-form-label>
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-form-control
[
nzSpan
]="
14
"
>
<ng-container
*
ngIf=
"obj?.type == 0"
>
中心驻场
</ng-container>
<ng-container
*
ngIf=
"obj?.type == 0"
>
软件维护类
</ng-container>
<ng-container
*
ngIf=
"obj?.type == 1"
>
中心运维
</ng-container>
<ng-container
*
ngIf=
"obj?.type == 1"
>
硬件维护
</ng-container>
<ng-container
*
ngIf=
"obj?.type == 2"
>
外单位驻场
</ng-container>
<ng-container
*
ngIf=
"obj?.type == 2"
>
网络维护
</ng-container>
<ng-container
*
ngIf=
"obj?.type == 3"
>
外单位运维
</ng-container>
<ng-container
*
ngIf=
"obj?.type == 3"
>
终端维护
</ng-container>
<ng-container
*
ngIf=
"obj?.type == 4"
>
建设类
</ng-container>
</nz-form-control>
</nz-form-control>
</nz-form-item>
</nz-form-item>
</div>
</div>
...
@@ -45,7 +46,7 @@
...
@@ -45,7 +46,7 @@
<nz-form-label
[
nzOffset
]="
4
"
[
nzSpan
]="
6
"
nzRequired
nzFor=
"secondLevelType"
>
<nz-form-label
[
nzOffset
]="
4
"
[
nzSpan
]="
6
"
nzRequired
nzFor=
"secondLevelType"
>
乙方名称
乙方名称
</nz-form-label>
</nz-form-label>
<nz-form-control
[
nzSpan
]="
2
"
>
<nz-form-control
[
nzSpan
]="
14
"
>
{{obj?.companyName}}
{{obj?.companyName}}
</nz-form-control>
</nz-form-control>
</nz-form-item>
</nz-form-item>
...
...
src/main/webapp/app/project-manager/modal/track-info/track-info.component.ts
View file @
14d03e9d
...
@@ -15,7 +15,7 @@ import {CreateTrackInfoComponent} from '../create-track-info/create-track-info.c
...
@@ -15,7 +15,7 @@ import {CreateTrackInfoComponent} from '../create-track-info/create-track-info.c
})
})
export
class
TrackInfoComponent
implements
OnInit
{
export
class
TrackInfoComponent
implements
OnInit
{
@
Input
()
maintainType
;
@
Input
()
maintainType
;
@
Input
()
sysChangeId
;
@
Input
()
sysChangeId
;
ååå
@
Input
()
componentId
;
@
Input
()
componentId
;
@
Input
()
title
;
@
Input
()
title
;
@
ViewChild
(
'smartCreateTrackInfo'
)
smartCreateTrackInfo
:
CreateTrackInfoComponent
;
@
ViewChild
(
'smartCreateTrackInfo'
)
smartCreateTrackInfo
:
CreateTrackInfoComponent
;
...
@@ -54,7 +54,10 @@ export class TrackInfoComponent implements OnInit {
...
@@ -54,7 +54,10 @@ export class TrackInfoComponent implements OnInit {
this
.
componentId
=
id
;
this
.
componentId
=
id
;
this
.
getInvoList
();
this
.
getInvoList
();
}
}
if
(
this
.
title
.
includes
(
'变更跟踪信息'
))
this
.
getChangeList
();
if
(
this
.
title
.
includes
(
'变更跟踪信息'
)){
this
.
sysChangeId
=
id
;
this
.
getChangeList
();
}
}
}
//跟踪信息
//跟踪信息
...
@@ -109,11 +112,10 @@ export class TrackInfoComponent implements OnInit {
...
@@ -109,11 +112,10 @@ export class TrackInfoComponent implements OnInit {
this
.
page
.
loading
=
true
;
this
.
page
.
loading
=
true
;
this
.
systemSer
.
findMsg
(
this
.
sysChangeId
).
subscribe
(
this
.
systemSer
.
findMsg
(
this
.
sysChangeId
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
if
(
res
.
errCode
==
10000
&&
res
.
data
)
{
if
(
res
.
data
)
{
this
.
warnList
=
res
.
data
;
this
.
warnList
=
res
.
data
;
console
.
log
(
this
.
warnList
);
// this.page.totalNum = res.data.totalNum;
// this.page.totalNum = res.data.totalNum;
}
}
}
this
.
page
.
loading
=
false
;
this
.
page
.
loading
=
false
;
}
}
...
...
src/main/webapp/app/project-manager/opr-cost/opr-cost.component.html
View file @
14d03e9d
...
@@ -65,10 +65,10 @@
...
@@ -65,10 +65,10 @@
[
nzPageIndex
]="
page
.
pageNum
"
[
nzPageSize
]="
page
.
pageCount
"
(
nzPageIndexChange
)="
change
($
event
)"
>
[
nzPageIndex
]="
page
.
pageNum
"
[
nzPageSize
]="
page
.
pageCount
"
(
nzPageIndexChange
)="
change
($
event
)"
>
<thead>
<thead>
<tr>
<tr>
<th
nzWidth=
"
1
0%"
>
维护项目
</th>
<th
nzWidth=
"
2
0%"
>
维护项目
</th>
<th>
填报时间
</th>
<th>
填报时间
</th>
<th>
填报人
</th>
<th>
填报人
</th>
<th>
费用说明
</th>
<th
nzWidth=
"20%"
>
费用说明
</th>
<th>
总费用
</th>
<th>
总费用
</th>
<th>
备件采购
</th>
<th>
备件采购
</th>
<th>
委外费用
</th>
<th>
委外费用
</th>
...
...
src/main/webapp/app/project-manager/opr-project/opr-project.component.html
View file @
14d03e9d
...
@@ -61,8 +61,8 @@
...
@@ -61,8 +61,8 @@
[
nzPageIndex
]="
page
.
pageNum
"
[
nzPageSize
]="
page
.
pageCount
"
(
nzPageIndexChange
)="
change
($
event
)"
>
[
nzPageIndex
]="
page
.
pageNum
"
[
nzPageSize
]="
page
.
pageCount
"
(
nzPageIndexChange
)="
change
($
event
)"
>
<thead>
<thead>
<tr>
<tr>
<th>
项目单位
</th>
<th
nzWidth=
"10%"
>
项目名称
</th>
<th
nzWidth=
"10%"
>
项目名称
</th>
<th>
项目单位
</th>
<th>
项目负责人
</th>
<th>
项目负责人
</th>
<th>
项目年度
</th>
<th>
项目年度
</th>
<th>
项目状态
</th>
<th>
项目状态
</th>
...
@@ -75,12 +75,8 @@
...
@@ -75,12 +75,8 @@
</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>
{{data.name}}
</td>
{{data.officeName}}
<td
class=
"round-tag tag-form"
>
{{data.officeName}}
</td>
</td>
<td>
{{data.name}}
</td>
<td>
{{data.officePrincipal}}
</td>
<td>
{{data.officePrincipal}}
</td>
<td>
<td>
{{data.yearly}}
{{data.yearly}}
...
...
src/main/webapp/app/project-manager/opr-team/opr-team.component.html
View file @
14d03e9d
...
@@ -63,10 +63,9 @@
...
@@ -63,10 +63,9 @@
<td>
{{data.projectName}}
</td>
<td>
{{data.projectName}}
</td>
<td>
{{data.principal}}
</td>
<td>
{{data.principal}}
</td>
<td
class=
"handle main-color"
>
<td
class=
"handle main-color"
>
<span>
查看
</span>
<span
*
ngIf=
"userId == data.createUseId"
(
click
)="
handleEdit
(
data
)"
>
更新团队信息
</span>
<span
*
ngIf=
"userId == data.createUserId"
(
click
)="
handleEdit
(
data
)"
>
更新团队信息
</span>
<span
*
ngIf=
"userId == data.createUseId"
(
click
)="
handleUpdateTeam
(
data
)"
>
编辑团队成员
</span>
<span
*
ngIf=
"userId == data.createUserId"
(
click
)="
handleUpdateTeam
(
data
)"
>
编辑团队成员
</span>
<span
*
ngIf=
"userId == data.createUseId"
(
click
)="
handleDelete
(
data
)"
>
删除
</span>
<span
*
ngIf=
"userId == data.createUserId"
(
click
)="
handleDelete
(
data
)"
>
删除
</span>
</td>
</td>
</tr>
</tr>
</tbody>
</tbody>
...
...
src/main/webapp/app/shared/common/common.service.ts
View file @
14d03e9d
...
@@ -196,7 +196,7 @@ export class CommonService implements OnInit {
...
@@ -196,7 +196,7 @@ export class CommonService implements OnInit {
getTimeByType
(
timeType
)
{
getTimeByType
(
timeType
)
{
const
nowDate
=
new
Date
().
getTime
();
const
nowDate
=
new
Date
().
getTime
();
const
now
=
new
Date
();
//当前日期
const
now
=
new
Date
();
//当前日期
const
nowDayOfWeek
=
now
.
getDay
();
//今天本周的第几天
const
nowDayOfWeek
=
now
.
getDay
()
==
0
?
7
:
now
.
getDay
()
;
//今天本周的第几天
const
nowDay
=
now
.
getDate
();
//当前日
const
nowDay
=
now
.
getDate
();
//当前日
const
nowMonth
=
now
.
getMonth
();
//当前月
const
nowMonth
=
now
.
getMonth
();
//当前月
const
nowYear
=
now
.
getFullYear
();
//当前年
const
nowYear
=
now
.
getFullYear
();
//当前年
...
...
src/main/webapp/app/shared/login/login.component.ts
View file @
14d03e9d
...
@@ -118,10 +118,6 @@ export class JhiLoginModalComponent implements OnInit {
...
@@ -118,10 +118,6 @@ export class JhiLoginModalComponent implements OnInit {
//登录
//登录
login
()
{
login
()
{
if
(
this
.
validateForm
.
value
.
loginName
==
'monitor'
)
{
window
.
location
.
href
=
'http://pm.sdx.sh.cn/operation/teach-task!screen'
;
return
;
}
this
.
loginService
.
login
(
this
.
validateForm
.
value
).
then
((
res
)
=>
{
this
.
loginService
.
login
(
this
.
validateForm
.
value
).
then
((
res
)
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
getUserInfo
();
this
.
getUserInfo
();
...
@@ -146,6 +142,7 @@ export class JhiLoginModalComponent implements OnInit {
...
@@ -146,6 +142,7 @@ export class JhiLoginModalComponent implements OnInit {
this
.
userInfo
.
userId
=
res
.
data
.
id
;
this
.
userInfo
.
userId
=
res
.
data
.
id
;
this
.
userInfo
.
gender
=
res
.
data
.
gender
;
this
.
userInfo
.
gender
=
res
.
data
.
gender
;
this
.
userInfo
.
roles
=
res
.
data
.
roles
;
this
.
userInfo
.
roles
=
res
.
data
.
roles
;
this
.
userInfo
.
isAdmin
=
res
.
data
.
isAdmin
;
this
.
getOrgInfo
();
this
.
getOrgInfo
();
}
}
);
);
...
...
src/main/webapp/app/shared/pipe/pipe.module.ts
View file @
14d03e9d
import
{
NgModule
,
CUSTOM_ELEMENTS_SCHEMA
}
from
'@angular/core'
;
import
{
NgModule
,
CUSTOM_ELEMENTS_SCHEMA
}
from
'@angular/core'
;
import
{
UnitConversionPipe
}
from
'./unit-conversion/unit-conversion.pipe'
;
import
{
UnitConversionPipe
}
from
'./unit-conversion/unit-conversion.pipe'
;
import
{
StringSlicePipe
}
from
'./string-slice/string-slice.pipe'
;
@
NgModule
({
@
NgModule
({
imports
:
[
imports
:
[],
],
declarations
:
[
declarations
:
[
StringSlicePipe
,
UnitConversionPipe
UnitConversionPipe
],
],
providers
:
[
providers
:
[],
],
entryComponents
:
[],
entryComponents
:
[],
exports
:
[
exports
:
[
StringSlicePipe
,
UnitConversionPipe
UnitConversionPipe
],
],
schemas
:
[
CUSTOM_ELEMENTS_SCHEMA
]
schemas
:
[
CUSTOM_ELEMENTS_SCHEMA
]
})
})
export
class
PipeModule
{}
export
class
PipeModule
{
}
src/main/webapp/app/shared/pipe/string-slice/string-slice.pipe.ts
0 → 100644
View file @
14d03e9d
import
{
Pipe
,
PipeTransform
}
from
'@angular/core'
;
@
Pipe
({
name
:
'stringSlice'
,
})
export
class
StringSlicePipe
implements
PipeTransform
{
transform
(
value
:
string
,
len
:
number
,
index
:
number
)
{
let
str
;
str
=
value
.
length
>
len
?
value
.
slice
(
0
,
index
)
+
"..."
:
value
;
return
str
;
}
}
src/main/webapp/app/system-change/change-manage/change-manage.component.html
View file @
14d03e9d
...
@@ -113,7 +113,7 @@
...
@@ -113,7 +113,7 @@
<span
(
click
)="
handleEditModal
(
data
)"
*
ngIf=
"data.status == 4 || data.status == 1"
>
编辑
</span>
<span
(
click
)="
handleEditModal
(
data
)"
*
ngIf=
"data.status == 4 || data.status == 1"
>
编辑
</span>
<span
(
click
)="
showChangeModal
(
data
)"
*
ngIf=
"(data.status == 2 && userInfo.userId == data.verifyUserId)"
>
审核
</span>
<span
(
click
)="
showChangeModal
(
data
)"
*
ngIf=
"(data.status == 2 && userInfo.userId == data.verifyUserId)"
>
审核
</span>
<span
(
click
)="
showChangeModal
(
data
)"
*
ngIf=
"data.status == 6"
>
处理
</span>
<span
(
click
)="
showChangeModal
(
data
)"
*
ngIf=
"data.status == 6"
>
处理
</span>
<span
*
ngIf=
"data.status
!= 2
"
class=
"handle-delete"
(
click
)="
deleteChange
(
data
)"
<span
*
ngIf=
"data.status
== 1
"
class=
"handle-delete"
(
click
)="
deleteChange
(
data
)"
>
删除
</span>
>
删除
</span>
</td>
</td>
</tr>
</tr>
...
...
src/main/webapp/app/system-change/modal/change-create/change-create.component.ts
View file @
14d03e9d
...
@@ -62,13 +62,15 @@ export class ChangeCreateComponent implements OnInit {
...
@@ -62,13 +62,15 @@ export class ChangeCreateComponent implements OnInit {
classifyId
:
[
null
,
[
Validators
.
required
]],
classifyId
:
[
null
,
[
Validators
.
required
]],
status
:
[
'1'
],
status
:
[
'1'
],
title
:
[
'变更'
],
title
:
[
'变更'
],
changeTime
:
[
null
],
changeTime
:
[
null
,
[
Validators
.
required
]
],
projectId
:
[
null
],
projectId
:
[
null
],
projectName
:
[
null
],
projectName
:
[
null
],
verifyUserId
:
[
null
],
verifyUserId
:
[
null
,
[
Validators
.
required
]
],
verifyUserName
:
[
null
],
verifyUserName
:
[
null
,
[
Validators
.
required
]
],
description
:
[
null
,[
Validators
.
required
]],
description
:
[
null
,
[
Validators
.
required
]],
});
});
this
.
fileList
=
[];
this
.
fileId
=
[];
}
}
//变更分类
//变更分类
...
...
src/main/webapp/app/system-change/modal/change-verity/change-verity.component.ts
View file @
14d03e9d
...
@@ -77,7 +77,7 @@ export class ChangeVerityComponent implements OnInit {
...
@@ -77,7 +77,7 @@ export class ChangeVerityComponent implements OnInit {
this
.
id
=
id
;
this
.
id
=
id
;
this
.
modal
.
isVisible
=
true
;
this
.
modal
.
isVisible
=
true
;
this
.
getDetail
();
this
.
getDetail
();
this
.
getMsg
(
);
this
.
smartTrackInfo
.
diffResource
(
this
.
id
);
}
}
//查询变更详情
//查询变更详情
...
...
src/main/webapp/app/system/group/group.component.html
View file @
14d03e9d
...
@@ -69,6 +69,7 @@
...
@@ -69,6 +69,7 @@
</td>
</td>
<td
class=
"handle main-color"
>
<td
class=
"handle main-color"
>
<span
(
click
)="
grantRole
(
data
)"
>
授权
</span>
<span
(
click
)="
grantRole
(
data
)"
>
授权
</span>
<span
(
click
)="
initPassword
(
data
)"
>
重置密码
</span>
<span
(
click
)="
showEditModal
(
data
)"
>
编辑
</span>
<span
(
click
)="
showEditModal
(
data
)"
>
编辑
</span>
<span
class=
"handle-delete"
(
click
)="
deleteUser
(
data
)"
>
删除
</span>
<span
class=
"handle-delete"
(
click
)="
deleteUser
(
data
)"
>
删除
</span>
</td>
</td>
...
...
src/main/webapp/app/system/group/group.component.ts
View file @
14d03e9d
...
@@ -301,4 +301,19 @@ export class GroupComponent implements OnInit {
...
@@ -301,4 +301,19 @@ export class GroupComponent implements OnInit {
this
.
smartUpload
.
showModal
(
'上传组织文件'
);
this
.
smartUpload
.
showModal
(
'上传组织文件'
);
}
}
//重置密码
initPassword
(
item
)
{
const
data
=
{
userName
:
item
.
name
,
};
this
.
systemSer
.
resetPassword
(
data
).
subscribe
(
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
this
.
message
.
success
(
'重置密码成功'
);
this
.
getUser
();
}
}
);
}
}
}
src/main/webapp/app/system/modal/group-modal/group-modal.component.html
View file @
14d03e9d
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<nz-form-label
[
nzSm
]="
6
"
[
nzXs
]="
24
"
nzRequired
nzFor=
"groupName"
>
部门名称
</nz-form-label>
<nz-form-label
[
nzSm
]="
6
"
[
nzXs
]="
24
"
nzRequired
nzFor=
"groupName"
>
部门名称
</nz-form-label>
<nz-form-control
[
nzSm
]="
14
"
[
nzXs
]="
24
"
>
<nz-form-control
[
nzSm
]="
14
"
[
nzXs
]="
24
"
>
<input
nz-input
formControlName=
"name"
id=
"groupName"
>
<input
nz-input
formControlName=
"name"
id=
"groupName"
>
<nz-form-explain
*
ngIf=
"validateForm.get('name').dirty && validateForm.get('name').errors"
>
请输入部门名称
</nz-form-explain>
<nz-form-explain
*
ngIf=
"validateForm.get('name').dirty && validateForm.get('name').errors"
>
请输入部门名称
且不超过15字
</nz-form-explain>
</nz-form-control>
</nz-form-control>
</nz-form-item>
</nz-form-item>
<nz-form-item>
<nz-form-item>
...
...
src/main/webapp/app/system/modal/role/role.component.html
View file @
14d03e9d
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<nz-form-control
[
nzSm
]="
14
"
[
nzXs
]="
24
"
>
<nz-form-control
[
nzSm
]="
14
"
[
nzXs
]="
24
"
>
<textarea
id=
"comment "
row=
"4"
nz-input
formControlName=
"comment"
></textarea>
<textarea
id=
"comment "
row=
"4"
nz-input
formControlName=
"comment"
></textarea>
<nz-form-explain
*
ngIf=
"validateForm.get('comment').dirty && validateForm.get('comment').errors"
>
<nz-form-explain
*
ngIf=
"validateForm.get('comment').dirty && validateForm.get('comment').errors"
>
角色说明最多输入30
0
个字符!
角色说明最多输入30个字符!
</nz-form-explain>
</nz-form-explain>
</nz-form-control>
</nz-form-control>
</nz-form-item>
</nz-form-item>
...
...
src/main/webapp/app/system/modal/role/role.component.ts
View file @
14d03e9d
...
@@ -58,7 +58,7 @@ export class RoleComponent implements OnInit {
...
@@ -58,7 +58,7 @@ export class RoleComponent implements OnInit {
this
.
viewTempGroupList
=
[];
this
.
viewTempGroupList
=
[];
this
.
validateForm
=
this
.
fb
.
group
({
this
.
validateForm
=
this
.
fb
.
group
({
name
:
[
null
,
[
Validators
.
required
,
Validators
.
maxLength
(
20
)]],
name
:
[
null
,
[
Validators
.
required
,
Validators
.
maxLength
(
20
)]],
comment
:
[
null
,
[
Validators
.
required
,
Validators
.
maxLength
(
30
0
)]],
comment
:
[
null
,
[
Validators
.
required
,
Validators
.
maxLength
(
30
)]],
});
});
}
}
...
...
src/main/webapp/app/system/power/power.component.html
View file @
14d03e9d
...
@@ -34,8 +34,6 @@
...
@@ -34,8 +34,6 @@
<tr>
<tr>
<th>
角色名称
</th>
<th>
角色名称
</th>
<th>
说明
</th>
<th>
说明
</th>
<!--<th>权限模块</th>-->
<!--<th>资源权限</th>-->
<th>
操作
</th>
<th>
操作
</th>
</tr>
</tr>
</thead>
</thead>
...
@@ -43,18 +41,11 @@
...
@@ -43,18 +41,11 @@
<tr
*
ngFor=
"let data of basicTable.data"
>
<tr
*
ngFor=
"let data of basicTable.data"
>
<td>
{{data.name}}
</td>
<td>
{{data.name}}
</td>
<td>
{{data.comment}}
</td>
<td>
{{data.comment}}
</td>
<!--<td>{{data.key3}}</td>-->
<!--<td>{{data.key4}}</td>-->
<!--<td>-->
<!--<ng-container *ngIf="data.status == 0">-->
<!--<i class="anticon anticon-check"></i>-->
<!--</ng-container>-->
<!--</td>-->
<td
class=
"handle main-color"
>
<td
class=
"handle main-color"
>
<span
(
click
)="
grantUser
(
data
)"
>
授予用户
</span>
<span
(
click
)="
grantUser
(
data
)"
>
授予用户
</span>
<!--<span (click)="lookRole(data)">查看</span>-->
<!--<span (click)="lookRole(data)">查看</span>-->
<span
(
click
)="
showEditModal
(
data
)"
>
编辑
</span>
<span
(
click
)="
showEditModal
(
data
)"
>
编辑
</span>
<span
class=
"handle-delete"
(
click
)="
deleteRole
(
data
)"
>
删除
</span>
<span
*
ngIf=
"isAdmin == 1"
class=
"handle-delete"
(
click
)="
deleteRole
(
data
)"
>
删除
</span>
</td>
</td>
</tr>
</tr>
</tbody>
</tbody>
...
...
src/main/webapp/app/system/system.service.ts
View file @
14d03e9d
...
@@ -259,6 +259,11 @@ export class SystemService {
...
@@ -259,6 +259,11 @@ export class SystemService {
return
this
.
http
.
get
(
SERVER_API_URL_COMS
+
'/organization/findByUserId/'
+
params
);
return
this
.
http
.
get
(
SERVER_API_URL_COMS
+
'/organization/findByUserId/'
+
params
);
}
}
//重置密码
resetPassword
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
SERVER_API_URL_COMS
+
'/user/resetPassword'
,
data
);
}
/**
/**
* 下载模版文件
* 下载模版文件
* @param pararms 参数
* @param pararms 参数
...
...
src/main/webapp/app/work/asset-part/asset-part.component.html
View file @
14d03e9d
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
{{data.scrapcount}}
{{data.scrapcount}}
</td>
</td>
<td>
{{data.eventSum}}
</td>
<td>
{{data.eventSum}}
</td>
<td
class=
"handle
text-center
main-color"
>
<td
class=
"handle main-color"
>
<span
(
click
)="
goToChild
(
data
)"
>
明细
</span>
<span
(
click
)="
goToChild
(
data
)"
>
明细
</span>
<span
class=
"handle-delete"
(
click
)="
deleteChildType
(
data
)"
>
删除
</span>
<span
class=
"handle-delete"
(
click
)="
deleteChildType
(
data
)"
>
删除
</span>
</td>
</td>
...
...
src/main/webapp/app/work/asset-part/asset-part.component.ts
View file @
14d03e9d
...
@@ -87,6 +87,7 @@ export class AssetPartComponent implements OnInit {
...
@@ -87,6 +87,7 @@ export class AssetPartComponent implements OnInit {
this
.
router
.
navigate
([
'app/main/assetChild'
],
this
.
router
.
navigate
([
'app/main/assetChild'
],
{
{
queryParams
:
{
queryParams
:
{
parentId
:
data
.
parentid
,
id
:
data
.
id
,
id
:
data
.
id
,
name
:
data
.
name
name
:
data
.
name
}
}
...
...
src/main/webapp/app/work/asset-part/child-assets/child-assets.component.html
View file @
14d03e9d
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
<input
type=
"text"
nz-input
[(
ngModel
)]="
obj
.
person
"
placeholder=
"负责人"
>
<input
type=
"text"
nz-input
[(
ngModel
)]="
obj
.
person
"
placeholder=
"负责人"
>
</div>
</div>
<div
nz-col
nzSpan=
"6"
class=
"text-right"
>
<div
nz-col
nzSpan=
"6"
class=
"text-right"
>
<button
(
click
)="
search
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-
plus-circle-o
"
></i>
搜索
<button
(
click
)="
search
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-
search
"
></i>
搜索
</button>
</button>
</div>
</div>
</div>
</div>
...
...
src/main/webapp/app/work/asset-part/child-assets/child-assets.component.ts
View file @
14d03e9d
...
@@ -15,8 +15,8 @@ import {Location} from '@angular/common';
...
@@ -15,8 +15,8 @@ import {Location} from '@angular/common';
styles
:
[]
styles
:
[]
})
})
export
class
ChildAssetsComponent
implements
OnInit
{
export
class
ChildAssetsComponent
implements
OnInit
{
@
ViewChild
(
'smartAssets'
)
smartAssets
:
AssetsComponent
;
@
ViewChild
(
'smartAssets'
)
smartAssets
:
AssetsComponent
;
@
ViewChild
(
'smartUpload'
)
smartUpload
:
UploadComponent
;
@
ViewChild
(
'smartUpload'
)
smartUpload
:
UploadComponent
;
childrenList
;
childrenList
;
childName
;
childName
;
...
@@ -29,26 +29,28 @@ export class ChildAssetsComponent implements OnInit {
...
@@ -29,26 +29,28 @@ export class ChildAssetsComponent implements OnInit {
indeterminate
=
false
;
indeterminate
=
false
;
obj
=
{
obj
=
{
inventoryTypeid
:
null
,
inventoryTypeid
:
null
,
name
:
null
,
name
:
null
,
inventorycount
:
null
,
inventorycount
:
null
,
mac
:
null
,
mac
:
null
,
person
:
null
,
person
:
null
,
};
};
parentId
;
page
=
{
page
=
{
pageNum
:
1
,
pageNum
:
1
,
totalNum
:
null
,
totalNum
:
null
,
pageCount
:
10
,
pageCount
:
10
,
}
}
;
constructor
(
private
workSer
:
WorkService
,
private
routerInfo
:
ActivatedRoute
,
private
router
:
Router
,
constructor
(
private
workSer
:
WorkService
,
private
routerInfo
:
ActivatedRoute
,
private
router
:
Router
,
private
message
:
NzMessageService
,
private
systemSer
:
SystemService
,
private
message
:
NzMessageService
,
private
systemSer
:
SystemService
,
private
commonSer
:
CommonService
,
public
location
:
Location
)
{
private
commonSer
:
CommonService
,
public
location
:
Location
)
{
this
.
routerInfo
.
queryParams
.
subscribe
(
this
.
routerInfo
.
queryParams
.
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
this
.
obj
.
inventoryTypeid
=
res
.
id
;
this
.
obj
.
inventoryTypeid
=
res
.
id
;
this
.
childName
=
res
.
name
this
.
parentId
=
res
.
parentId
;
this
.
childName
=
res
.
name
;
}
}
);
);
}
}
...
@@ -57,7 +59,7 @@ export class ChildAssetsComponent implements OnInit {
...
@@ -57,7 +59,7 @@ export class ChildAssetsComponent implements OnInit {
this
.
childrenList
.
forEach
(
data
=>
{
this
.
childrenList
.
forEach
(
data
=>
{
data
.
checked
=
value
;
data
.
checked
=
value
;
this
.
selectList
.
push
(
data
);
this
.
selectList
.
push
(
data
);
})
})
;
this
.
refreshStatus
();
this
.
refreshStatus
();
}
}
...
@@ -92,10 +94,10 @@ export class ChildAssetsComponent implements OnInit {
...
@@ -92,10 +94,10 @@ export class ChildAssetsComponent implements OnInit {
getList
()
{
getList
()
{
this
.
isLoading
=
true
;
this
.
isLoading
=
true
;
const
data
=
{
const
data
=
{
pageCount
:
"10"
,
pageCount
:
'10'
,
pageNum
:
this
.
page
.
pageNum
,
pageNum
:
this
.
page
.
pageNum
,
obj
:
this
.
obj
obj
:
this
.
obj
}
}
;
this
.
workSer
.
findInventoryPage
(
data
).
subscribe
(
this
.
workSer
.
findInventoryPage
(
data
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
this
.
childrenList
=
res
.
data
.
data
;
this
.
childrenList
=
res
.
data
.
data
;
...
@@ -105,123 +107,124 @@ export class ChildAssetsComponent implements OnInit {
...
@@ -105,123 +107,124 @@ export class ChildAssetsComponent implements OnInit {
);
);
}
}
search
(){
search
()
{
this
.
page
.
pageNum
=
1
;
this
.
page
.
pageNum
=
1
;
this
.
getList
();
this
.
getList
();
}
}
change
(
e
){
change
(
e
)
{
if
(
e
>
0
)
{
if
(
e
>
0
)
{
this
.
page
.
pageNum
=
e
;
this
.
page
.
pageNum
=
e
;
this
.
getList
();
this
.
getList
();
}
}
}
}
//删除资产--单个
//删除资产--单个
deleteInVentory
(
item
){
deleteInVentory
(
item
)
{
const
data
=
{
const
data
=
{
inventoryIds
:[]
inventoryIds
:
[]
};
};
data
.
inventoryIds
.
push
(
item
.
id
);
data
.
inventoryIds
.
push
(
item
.
id
);
this
.
commonSer
.
confirmThing
(
"删除"
,
"确定删除该资产?"
,()
=>
{
this
.
commonSer
.
confirmThing
(
'删除'
,
'确定删除该资产?'
,
()
=>
{
this
.
isLoading
=
true
;
this
.
isLoading
=
true
;
this
.
workSer
.
deleteInventory
(
data
).
subscribe
(
this
.
workSer
.
deleteInventory
(
data
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
if
(
res
.
errCode
==
10000
)
{
this
.
getList
();
this
.
getList
();
this
.
message
.
success
(
"删除资产成功"
);
this
.
message
.
success
(
'删除资产成功'
);
}
}
this
.
isLoading
=
false
;
this
.
isLoading
=
false
;
}
}
)
)
;
})
})
;
}
}
//批量删除
//批量删除
batchDeleteInventory
(){
batchDeleteInventory
()
{
if
(
this
.
selectList
.
length
==
0
)
{
if
(
this
.
selectList
.
length
==
0
)
{
this
.
message
.
warning
(
"请选择需要删除的资产"
);
this
.
message
.
warning
(
'请选择需要删除的资产'
);
return
false
;
return
false
;
}
}
this
.
isLoading
=
true
;
this
.
isLoading
=
true
;
const
data
=
{
const
data
=
{
inventoryIds
:
this
.
selectList
.
map
(
e
=>
{
inventoryIds
:
this
.
selectList
.
map
(
e
=>
{
return
e
.
id
;
return
e
.
id
;
})
})
};
};
this
.
commonSer
.
confirmThing
(
"批量删除"
,
"确定删除选择的资产?"
,()
=>
{
this
.
commonSer
.
confirmThing
(
'批量删除'
,
'确定删除选择的资产?'
,
()
=>
{
this
.
workSer
.
deleteInventory
(
data
).
subscribe
(
this
.
workSer
.
deleteInventory
(
data
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
if
(
res
.
errCode
==
10000
)
{
this
.
getList
();
this
.
getList
();
this
.
message
.
success
(
"删除资产成功"
);
this
.
message
.
success
(
'删除资产成功'
);
}
}
this
.
isLoading
=
false
;
this
.
isLoading
=
false
;
}
}
)
)
;
})
})
;
}
}
//添加资产
//添加资产
showAddModal
()
{
showAddModal
()
{
this
.
smartAssets
.
showAddModal
(
"添加资产"
);
this
.
smartAssets
.
showAddModal
(
'添加资产'
,
{
parentId
:
this
.
parentId
,
inventoryTypeid
:
this
.
obj
.
inventoryTypeid
}
);
}
}
//编辑资产
//编辑资产
showEditModal
(
id
){
showEditModal
(
id
)
{
this
.
smartAssets
.
showEditModal
(
"编辑资产"
,
id
);
this
.
smartAssets
.
showEditModal
(
'编辑资产'
,
id
);
}
}
//查看详情
//查看详情
goToDetail
(
data
){
goToDetail
(
data
)
{
this
.
router
.
navigate
([
'app/main/assetsDetail'
],{
this
.
router
.
navigate
([
'app/main/assetsDetail'
],
{
queryParams
:{
queryParams
:
{
invertoryId
:
data
.
id
invertoryId
:
data
.
id
}
}
})
})
;
}
}
//导入资产
//导入资产
showUploadModal
(){
showUploadModal
()
{
this
.
smartUpload
.
showModal
(
"上传资产文件"
);
this
.
smartUpload
.
showModal
(
'上传资产文件'
);
}
}
//下载模版
//下载模版
downLoad
(){
downLoad
()
{
this
.
systemSer
.
downloadTemplate
(
"inventory"
,
SERVER_API_URL
+
"/api/template/download/"
).
subscribe
(
this
.
systemSer
.
downloadTemplate
(
'inventory'
,
SERVER_API_URL
+
'/api/template/download/'
).
subscribe
(
(
data
)
=>
{
(
data
)
=>
{
this
.
commonSer
.
downloadFile
(
"资产模版.xlsx"
,
data
);
this
.
commonSer
.
downloadFile
(
'资产模版.xlsx'
,
data
);
}
}
)
)
;
}
}
//导出资产
//导出资产
downloadInventory
(){
downloadInventory
()
{
let
title
;
let
title
;
title
=
this
.
selectList
.
length
==
0
?
"确定导出所有的资产?"
:
"确定导出所选择的资产"
;
title
=
this
.
selectList
.
length
==
0
?
'确定导出所有的资产?'
:
'确定导出所选择的资产'
;
this
.
commonSer
.
confirmThing
(
"导出"
,
title
,()
=>
{
this
.
commonSer
.
confirmThing
(
'导出'
,
title
,
()
=>
{
this
.
isDownload
=
true
;
this
.
isDownload
=
true
;
const
data
=
{
const
data
=
{
type
:
this
.
obj
.
inventoryTypeid
,
type
:
this
.
obj
.
inventoryTypeid
,
ids
:
this
.
selectList
.
map
(
e
=>
{
ids
:
this
.
selectList
.
map
(
e
=>
{
return
e
.
id
;
return
e
.
id
;
}),
}),
query_name
:
null
query_name
:
null
};
};
this
.
workSer
.
getExportUrl
(
data
).
subscribe
(
this
.
workSer
.
getExportUrl
(
data
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
this
.
isDownload
=
false
;
this
.
isDownload
=
false
;
this
.
workSer
.
downloadTemplate
(
"inventory"
,
res
.
data
).
subscribe
(
this
.
workSer
.
downloadTemplate
(
'inventory'
,
res
.
data
).
subscribe
(
(
data
)
=>
{
(
data
)
=>
{
this
.
commonSer
.
downloadFile
(
"文件.xlsx"
,
data
)
this
.
commonSer
.
downloadFile
(
'文件.xlsx'
,
data
);
}
}
)
)
;
}
}
)
)
;
});
});
}
}
//返回上一页
//返回上一页
returnBack
(){
returnBack
()
{
this
.
location
.
back
();
this
.
location
.
back
();
}
}
}
}
src/main/webapp/app/work/modal/assets/assets.component.ts
View file @
14d03e9d
...
@@ -15,15 +15,15 @@ export class AssetsComponent implements OnInit {
...
@@ -15,15 +15,15 @@ export class AssetsComponent implements OnInit {
isVisible
=
false
;
isVisible
=
false
;
title
;
title
;
parentId
;
parentId
;
validateForm
:
FormGroup
;
validateForm
:
FormGroup
;
parentTypeList
;
parentTypeList
;
typeList
;
typeList
;
invertoryId
;
//资产Id
invertoryId
;
//资产Id
constructor
(
private
workSer
:
WorkService
,
private
fb
:
FormBuilder
,
private
datePipe
:
DatePipe
,
constructor
(
private
workSer
:
WorkService
,
private
fb
:
FormBuilder
,
private
datePipe
:
DatePipe
,
private
message
:
NzMessageService
)
{
private
message
:
NzMessageService
)
{
}
}
ngOnInit
()
{
ngOnInit
()
{
...
@@ -31,114 +31,116 @@ export class AssetsComponent implements OnInit {
...
@@ -31,114 +31,116 @@ export class AssetsComponent implements OnInit {
this
.
initForm
();
this
.
initForm
();
}
}
initForm
(){
initForm
()
{
this
.
invertoryId
=
null
;
this
.
invertoryId
=
null
;
this
.
validateForm
=
this
.
fb
.
group
({
this
.
validateForm
=
this
.
fb
.
group
({
serialnoA
:[
null
],
serialnoA
:
[
null
],
invertoryname
:[
null
],
invertoryname
:
[
null
],
name
:
[
null
,[
Validators
.
required
,
Validators
.
maxLength
(
20
)]],
name
:
[
null
,
[
Validators
.
required
,
Validators
.
maxLength
(
20
)]],
hostid
:[
null
],
hostid
:
[
null
],
person
:[
null
],
person
:
[
null
],
ip
:[
null
],
ip
:
[
null
],
equipmentTypeid
:[
null
],
equipmentTypeid
:
[
null
],
inventorycount
:[
null
],
inventorycount
:
[
null
],
secondlevelTypeid
:[
null
],
secondlevelTypeid
:
[
null
],
stock
:[
null
],
stock
:
[
null
],
usedcount
:[
null
],
usedcount
:
[
null
],
lendcount
:[
null
],
lendcount
:
[
null
],
mac
:[
null
],
mac
:
[
null
],
repaircount
:[
null
],
repaircount
:
[
null
],
maintenanceExpiration
:[
null
],
maintenanceExpiration
:
[
null
],
scrapcount
:[
null
],
scrapcount
:
[
null
],
storageLocation
:[
null
],
storageLocation
:
[
null
],
groupid
:[
null
],
groupid
:
[
null
],
inventoryTypeid
:
[
null
,
[
Validators
.
required
]],
inventoryTypeid
:
[
null
,
[
Validators
.
required
]],
});
});
}
}
//父级分类
//父级分类
getParentType
(){
getParentType
()
{
this
.
workSer
.
findByParentType
().
subscribe
(
this
.
workSer
.
findByParentType
().
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
const
data
=
res
.
data
;
this
.
parentTypeList
=
res
.
data
;
this
.
parentTypeList
=
data
;
}
}
)
)
;
}
}
//通过父级分类查询子级分类
//通过父级分类查询子级分类
getTypeByParent
(
parentid
){
getTypeByParent
(
parentid
)
{
this
.
workSer
.
findByParentidCount
(
parentid
).
subscribe
(
this
.
workSer
.
findByParentidCount
(
parentid
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
const
data
=
res
.
data
;
this
.
typeList
=
res
.
data
;
this
.
typeList
=
data
;
}
}
)
)
;
}
}
showAddModal
(
title
)
{
showAddModal
(
title
,
data
)
{
this
.
parentId
=
data
.
parentId
;
this
.
getTypeByParent
(
this
.
parentId
);
this
.
validateForm
.
patchValue
({
inventoryTypeid
:
data
.
inventoryTypeid
});
this
.
title
=
title
;
this
.
title
=
title
;
this
.
isVisible
=
true
;
this
.
isVisible
=
true
;
}
}
showEditModal
(
title
,
id
)
{
showEditModal
(
title
,
id
)
{
this
.
title
=
title
;
this
.
title
=
title
;
this
.
invertoryId
=
id
;
this
.
invertoryId
=
id
;
this
.
isVisible
=
true
;
this
.
isVisible
=
true
;
this
.
workSer
.
selectByPrimaryKey
(
this
.
invertoryId
).
subscribe
(
this
.
workSer
.
selectByPrimaryKey
(
this
.
invertoryId
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
this
.
parentId
=
res
.
data
.
typeparentid
;
this
.
parentId
=
res
.
data
.
typeparentid
;
this
.
validateForm
.
patchValue
(
res
.
data
);
this
.
validateForm
.
patchValue
(
res
.
data
);
if
(
res
.
data
.
typeparentid
)
{
if
(
res
.
data
.
typeparentid
)
{
this
.
getTypeByParent
(
res
.
data
.
typeparentid
);
this
.
getTypeByParent
(
res
.
data
.
typeparentid
);
}
}
}
}
)
)
;
}
}
handEditleOk
()
{
handEditleOk
()
{
for
(
let
i
in
this
.
validateForm
.
controls
)
{
for
(
let
i
in
this
.
validateForm
.
controls
)
{
this
.
validateForm
.
controls
[
i
].
markAsDirty
();
this
.
validateForm
.
controls
[
i
].
markAsDirty
();
this
.
validateForm
.
controls
[
i
].
updateValueAndValidity
();
this
.
validateForm
.
controls
[
i
].
updateValueAndValidity
();
}
}
if
(
this
.
validateForm
.
invalid
)
{
if
(
this
.
validateForm
.
invalid
)
{
return
false
;
return
false
;
}
}
if
(
this
.
title
==
"添加资产"
)
{
if
(
this
.
title
==
'添加资产'
)
{
this
.
create
();
this
.
create
();
}
}
if
(
this
.
title
==
"编辑资产"
)
{
if
(
this
.
title
==
'编辑资产'
)
{
this
.
update
();
this
.
update
();
}
}
}
}
create
(){
create
()
{
this
.
workSer
.
createInventory
(
this
.
validateForm
.
value
).
subscribe
(
this
.
workSer
.
createInventory
(
this
.
validateForm
.
value
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
if
(
res
.
errCode
==
10000
)
{
this
.
message
.
success
(
"添加资产成功"
);
this
.
message
.
success
(
'添加资产成功'
);
this
.
isVisible
=
false
;
this
.
isVisible
=
false
;
this
.
done
.
emit
();
this
.
done
.
emit
();
this
.
initForm
();
this
.
initForm
();
}
}
}
}
)
)
;
}
}
update
(){
update
()
{
this
.
validateForm
.
addControl
(
'id'
,
new
FormControl
(
this
.
invertoryId
));
this
.
validateForm
.
addControl
(
'id'
,
new
FormControl
(
this
.
invertoryId
));
this
.
validateForm
.
patchValue
({
this
.
validateForm
.
patchValue
({
maintenanceExpiration
:
this
.
datePipe
.
transform
(
this
.
validateForm
.
value
.
maintenanceExpiration
,
"yyyy-MM-dd HH:mm:ss"
)
maintenanceExpiration
:
this
.
datePipe
.
transform
(
this
.
validateForm
.
value
.
maintenanceExpiration
,
'yyyy-MM-dd HH:mm:ss'
)
})
})
;
this
.
workSer
.
updateInventory
(
this
.
validateForm
.
value
).
subscribe
(
this
.
workSer
.
updateInventory
(
this
.
validateForm
.
value
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
if
(
res
.
errCode
==
10000
)
{
this
.
message
.
success
(
"编辑资产成功"
);
this
.
message
.
success
(
'编辑资产成功'
);
this
.
isVisible
=
false
;
this
.
isVisible
=
false
;
this
.
initForm
();
this
.
initForm
();
this
.
done
.
emit
();
this
.
done
.
emit
();
}
}
}
}
)
)
;
}
}
handleEditCancel
()
{
handleEditCancel
()
{
...
...
src/main/webapp/app/work/modal/plan-modal/plan-modal.component.html
View file @
14d03e9d
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<nz-form-label
[
nzOffset
]="
4
"
[
nzSpan
]="
6
"
nzRequired
nzFor=
"title"
>
计划标题
</nz-form-label>
<nz-form-label
[
nzOffset
]="
4
"
[
nzSpan
]="
6
"
nzRequired
nzFor=
"title"
>
计划标题
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-form-control
[
nzSpan
]="
14
"
>
<input
id=
"title"
name=
"title"
nz-input
placeholder=
"计划标题"
formControlName=
"title"
>
<input
id=
"title"
name=
"title"
nz-input
placeholder=
"计划标题"
formControlName=
"title"
>
<nz-form-explain
*
ngIf=
"validateForm.get('title').dirty && validateForm.get('title').errors"
>
请输入计划标题
</nz-form-explain>
<nz-form-explain
*
ngIf=
"validateForm.get('title').dirty && validateForm.get('title').errors"
>
请输入计划标题
且不超过20字
</nz-form-explain>
</nz-form-control>
</nz-form-control>
</nz-form-item>
</nz-form-item>
</div>
</div>
...
...
src/main/webapp/app/work/modal/plan-modal/plan-modal.component.ts
View file @
14d03e9d
...
@@ -42,7 +42,7 @@ export class PlanModalComponent implements OnInit {
...
@@ -42,7 +42,7 @@ export class PlanModalComponent implements OnInit {
this
.
participantsList
=
[];
this
.
participantsList
=
[];
this
.
principalsList
=
[];
this
.
principalsList
=
[];
this
.
validateForm
=
this
.
fb
.
group
({
this
.
validateForm
=
this
.
fb
.
group
({
title
:
[
null
,
[
Validators
.
required
]],
title
:
[
null
,
[
Validators
.
required
]
,
Validators
.
maxLength
(
20
)
],
typeId
:
[
null
,
[
Validators
.
required
]],
typeId
:
[
null
,
[
Validators
.
required
]],
startTime
:
[
null
,
[
Validators
.
required
]],
startTime
:
[
null
,
[
Validators
.
required
]],
endTime
:
[
null
,
[
Validators
.
required
]],
endTime
:
[
null
,
[
Validators
.
required
]],
...
@@ -50,7 +50,7 @@ export class PlanModalComponent implements OnInit {
...
@@ -50,7 +50,7 @@ export class PlanModalComponent implements OnInit {
cycleNum
:
[
'1'
],
cycleNum
:
[
'1'
],
number
:
[
null
,
[
Validators
.
required
]],
number
:
[
null
,
[
Validators
.
required
]],
workload
:
[
null
],
workload
:
[
null
],
description
:
[
null
],
description
:
[
null
,
Validators
.
maxLength
(
100
)
],
principals
:
[
null
,
[
Validators
.
required
]],
//负责人
principals
:
[
null
,
[
Validators
.
required
]],
//负责人
participants
:
[
null
,
[
Validators
.
required
]],
//参与人
participants
:
[
null
,
[
Validators
.
required
]],
//参与人
});
});
...
...
src/main/webapp/app/work/modal/upload/upload.component.ts
View file @
14d03e9d
...
@@ -111,7 +111,7 @@ export class UploadComponent implements OnInit {
...
@@ -111,7 +111,7 @@ export class UploadComponent implements OnInit {
this
.
isVisible
=
false
;
this
.
isVisible
=
false
;
this
.
fileList
=
[];
this
.
fileList
=
[];
this
.
done
.
emit
();
this
.
done
.
emit
();
this
.
message
.
success
(
'
上传
成功'
);
this
.
message
.
success
(
'
导入
成功'
);
}
}
this
.
isOkLoading
=
false
;
this
.
isOkLoading
=
false
;
}
}
...
@@ -130,7 +130,7 @@ export class UploadComponent implements OnInit {
...
@@ -130,7 +130,7 @@ export class UploadComponent implements OnInit {
this
.
isVisible
=
false
;
this
.
isVisible
=
false
;
this
.
fileList
=
[];
this
.
fileList
=
[];
this
.
done
.
emit
();
this
.
done
.
emit
();
this
.
message
.
success
(
'
上传
成功'
);
this
.
message
.
success
(
'
导入
成功'
);
}
}
this
.
isOkLoading
=
false
;
this
.
isOkLoading
=
false
;
}
}
...
...
src/main/webapp/content/scss/white.scss
View file @
14d03e9d
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
}
}
.container
{
.container
{
background-color
:
#
ebedf0
;
background-color
:
#
ffffff
;
}
}
.search-form
{
.search-form
{
...
...
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