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
c5af5b3c
Commit
c5af5b3c
authored
Jan 02, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
0fdd9f98
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
111 additions
and
102 deletions
+111
-102
alarm-list.component.html
...ain/webapp/app/alarm/alarm-list/alarm-list.component.html
+2
-2
basic.component.html
src/main/webapp/app/overAll/basic/basic.component.html
+7
-4
basic.component.ts
src/main/webapp/app/overAll/basic/basic.component.ts
+90
-87
type-asets.component.ts
.../webapp/app/work/modal/type-asets/type-asets.component.ts
+2
-2
event.component.ts
...main/webapp/app/work/work-handle/Event/event.component.ts
+6
-2
handle-detail.component.html
...rk/work-handle/handle-detail/handle-detail.component.html
+3
-3
handle-detail.component.ts
...work/work-handle/handle-detail/handle-detail.component.ts
+0
-1
work.service.ts
src/main/webapp/app/work/work.service.ts
+1
-1
No files found.
src/main/webapp/app/alarm/alarm-list/alarm-list.component.html
View file @
c5af5b3c
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<div
nz-col
nzSpan=
"3"
>
<div
nz-col
nzSpan=
"3"
>
<nz-select
style=
"width: 100%;"
nzShowSearch
nzAllowClear
nzPlaceHolder=
"选择设备类型"
[(
ngModel
)]="
obj
.
equipmentType
"
>
<nz-select
style=
"width: 100%;"
nzShowSearch
nzAllowClear
nzPlaceHolder=
"选择设备类型"
[(
ngModel
)]="
obj
.
equipmentType
"
>
<ng-container
*
ngFor=
"let item of warnCountList;"
>
<ng-container
*
ngFor=
"let item of warnCountList;"
>
<nz-option
nzLabel=
"{{item.equipmentType}}"
nzValue=
"{{item.equipmentType}}"
></nz-option>
<nz-option
nzLabel=
"{{item.equipmentType}}"
nzValue=
"{{item.equipmentType
Id
}}"
></nz-option>
</ng-container>
</ng-container>
</nz-select>
</nz-select>
</div>
</div>
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
</div>
</div>
</div>
</div>
<div
nz-row
class=
"search-form"
style=
"border-top: none;padding: 0 0 15px 0;"
>
<div
nz-row
class=
"search-form"
style=
"border-top: none;padding: 0 0 15px 0;"
>
<input
[(
ngModel
)]="
obj
.
name
"
nz-input
placeholder=
"告警信息"
>
<input
style=
"width: 15%;"
[(
ngModel
)]="
obj
.
name
"
nz-input
placeholder=
"告警信息"
>
<button
(
click
)="
searchValue
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
></i>
搜索
</button>
<button
(
click
)="
searchValue
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
></i>
搜索
</button>
</div>
</div>
...
...
src/main/webapp/app/overAll/basic/basic.component.html
View file @
c5af5b3c
...
@@ -117,7 +117,7 @@
...
@@ -117,7 +117,7 @@
</ng-container>
</ng-container>
</td>
</td>
<td>
<td
class=
"cursor"
>
<span
(
click
)="
goTOInventory
(
item
?.
inventory
?.
id
)"
>
{{item?.inventory?.name}}
</span>
<span
(
click
)="
goTOInventory
(
item
?.
inventory
?.
id
)"
>
{{item?.inventory?.name}}
</span>
</td>
</td>
<!--<td class="round-tag tag-form" >-->
<!--<td class="round-tag tag-form" >-->
...
@@ -227,7 +227,9 @@
...
@@ -227,7 +227,9 @@
</ng-container>
</ng-container>
</td>
</td>
<td>
{{item?.inventory?.name}}
</td>
<td
class=
"cursor"
>
<span
(
click
)="
goTOInventory
(
item
?.
inventory
?.
id
)"
>
{{item?.inventory?.name}}
</span>
</td>
<!--<nz-tag *ngIf="item.status == 0" [nzColor]="color.green"></nz-tag>-->
<!--<nz-tag *ngIf="item.status == 0" [nzColor]="color.green"></nz-tag>-->
<!--<nz-tag *ngIf="item.status == 1" [nzColor]="color.gray"></nz-tag>-->
<!--<nz-tag *ngIf="item.status == 1" [nzColor]="color.gray"></nz-tag>-->
<td
class=
"default"
>
<td
class=
"default"
>
...
@@ -323,8 +325,9 @@
...
@@ -323,8 +325,9 @@
</ng-container>
</ng-container>
</td>
</td>
<td>
{{item?.inventory?.name}}
</td>
<td
class=
"cursor"
>
<span
(
click
)="
goTOInventory
(
item
?.
inventory
?.
id
)"
>
{{item?.inventory?.name}}
</span>
</td>
<td
class=
"default"
>
<td
class=
"default"
>
<ng-container
*
ngIf=
"item.available == 0"
>
<ng-container
*
ngIf=
"item.available == 0"
>
<nz-tag>
AGENT
</nz-tag>
<nz-tag>
AGENT
</nz-tag>
...
...
src/main/webapp/app/overAll/basic/basic.component.ts
View file @
c5af5b3c
...
@@ -30,8 +30,8 @@ export interface TreeNodeInterface {
...
@@ -30,8 +30,8 @@ export interface TreeNodeInterface {
selector
:
'jhi-basic'
,
selector
:
'jhi-basic'
,
templateUrl
:
'./basic.component.html'
,
templateUrl
:
'./basic.component.html'
,
styles
:
[
styles
:
[
`:host ::ng-deep .table-dropdown a
{
`:host ::ng-deep .table-dropdown a
{
font-weight: 300;
font-weight: 300;
}`
}`
]
]
})
})
...
@@ -41,8 +41,8 @@ export class BasicComponent implements OnInit {
...
@@ -41,8 +41,8 @@ export class BasicComponent implements OnInit {
@
ViewChild
(
'basicEdit'
)
basicEdit
:
BasicEditComponent
;
@
ViewChild
(
'basicEdit'
)
basicEdit
:
BasicEditComponent
;
@
ViewChild
(
'smartCheck'
)
smartCheck
:
BasiCheckComponent
;
@
ViewChild
(
'smartCheck'
)
smartCheck
:
BasiCheckComponent
;
@
ViewChild
(
'smartCreateGroup'
)
smartCreateGroup
:
CreateGroupComponent
;
@
ViewChild
(
'smartCreateGroup'
)
smartCreateGroup
:
CreateGroupComponent
;
@
ViewChild
(
'smartPause'
)
smartPause
:
PauseComponent
;
@
ViewChild
(
'smartPause'
)
smartPause
:
PauseComponent
;
@
ViewChild
(
'smartAlarmModal'
)
smartAlarmModal
:
AlarmModalComponent
;
@
ViewChild
(
'smartAlarmModal'
)
smartAlarmModal
:
AlarmModalComponent
;
color
=
color
;
color
=
color
;
...
@@ -76,8 +76,7 @@ export class BasicComponent implements OnInit {
...
@@ -76,8 +76,7 @@ export class BasicComponent implements OnInit {
searchData
;
searchData
;
constructor
(
private
fb
:
FormBuilder
,
private
overAllSer
:
OverAllService
,
private
router
:
Router
,
constructor
(
private
fb
:
FormBuilder
,
private
overAllSer
:
OverAllService
,
private
router
:
Router
,
private
modalService
:
NzModalService
,
private
message
:
NzMessageService
,
private
main
:
JhiMainComponent
private
modalService
:
NzModalService
,
private
message
:
NzMessageService
,
private
main
:
JhiMainComponent
)
{
)
{
}
}
dataSet
:
any
[];
dataSet
:
any
[];
...
@@ -98,17 +97,17 @@ export class BasicComponent implements OnInit {
...
@@ -98,17 +97,17 @@ export class BasicComponent implements OnInit {
}
}
}
}
showInFullScreen
(){
showInFullScreen
()
{
this
.
main
.
fullScreen
();
this
.
main
.
fullScreen
();
}
}
convertTreeToList
(
root
:
any
,
groupId
:
string
,
index
):
TreeNodeInterface
[]
{
convertTreeToList
(
root
:
any
,
groupId
:
string
,
index
):
TreeNodeInterface
[]
{
const
stack
=
[];
const
stack
=
[];
const
array
=
[];
const
array
=
[];
const
hashMap
=
{};
const
hashMap
=
{};
if
(
root
.
host
==
index
)
{
if
(
root
.
host
==
index
)
{
stack
.
push
({...
root
,
level
:
0
,
expand
:
true
});
stack
.
push
({...
root
,
level
:
0
,
expand
:
true
});
}
else
{
}
else
{
stack
.
push
({...
root
,
level
:
0
,
expand
:
false
});
stack
.
push
({...
root
,
level
:
0
,
expand
:
false
});
}
}
while
(
stack
.
length
!==
0
)
{
while
(
stack
.
length
!==
0
)
{
...
@@ -140,66 +139,66 @@ export class BasicComponent implements OnInit {
...
@@ -140,66 +139,66 @@ export class BasicComponent implements OnInit {
}
}
//搜索
//搜索
search
(
status
){
search
(
status
)
{
this
.
loading
=
true
;
this
.
loading
=
true
;
this
.
searchStatus
=
true
;
this
.
searchStatus
=
true
;
this
.
frontPagination
=
false
;
this
.
frontPagination
=
false
;
const
data
=
{
const
data
=
{
search
:{
search
:
{
status
:
status
,
status
:
status
,
name
:
this
.
searchName
name
:
this
.
searchName
}
}
}
}
;
this
.
overAllSer
.
find
(
data
).
subscribe
(
this
.
overAllSer
.
find
(
data
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
if
(
res
.
errCode
==
10000
)
{
this
.
searchData
=
res
.
data
;
this
.
searchData
=
res
.
data
;
}
}
this
.
loading
=
false
;
this
.
loading
=
false
;
}
}
)
)
;
}
}
//backList
//backList
backList
(){
backList
()
{
this
.
searchStatus
=
false
;
this
.
searchStatus
=
false
;
this
.
frontPagination
=
true
;
this
.
frontPagination
=
true
;
}
}
//查询设备状态
//查询设备状态
findOpStatus
(){
findOpStatus
()
{
this
.
overAllSer
.
findHostCountByStatus
(
0
).
subscribe
(
this
.
overAllSer
.
findHostCountByStatus
(
0
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
if
(
res
.
errCode
==
10000
)
{
this
.
green
=
res
.
data
.
size
;
this
.
green
=
res
.
data
.
size
;
}
else
{
}
else
{
this
.
message
.
info
(
res
.
Msg
);
this
.
message
.
info
(
res
.
Msg
);
}
}
}
}
)
)
;
this
.
overAllSer
.
findHostCountByStatus
(
1
).
subscribe
(
this
.
overAllSer
.
findHostCountByStatus
(
1
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
this
.
gray
=
res
.
data
.
size
;
this
.
gray
=
res
.
data
.
size
;
}
}
)
)
;
this
.
overAllSer
.
findWarningByAll
(
1
).
subscribe
(
this
.
overAllSer
.
findWarningByAll
(
1
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
if
(
res
.
errCode
==
10000
)
{
this
.
yellow
=
res
.
data
.
size
;
this
.
yellow
=
res
.
data
.
size
;
}
else
{
}
else
{
this
.
message
.
info
(
res
.
Msg
);
this
.
message
.
info
(
res
.
Msg
);
}
}
}
}
)
)
;
this
.
overAllSer
.
findWarningByAll
(
0
).
subscribe
(
this
.
overAllSer
.
findWarningByAll
(
0
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
if
(
res
.
errCode
==
10000
)
{
this
.
red
=
res
.
data
.
size
;
this
.
red
=
res
.
data
.
size
;
}
else
{
}
else
{
this
.
message
.
info
(
res
.
Msg
);
this
.
message
.
info
(
res
.
Msg
);
}
}
}
}
)
)
;
}
}
//添加资源
//添加资源
...
@@ -213,8 +212,8 @@ export class BasicComponent implements OnInit {
...
@@ -213,8 +212,8 @@ export class BasicComponent implements OnInit {
}
}
//添加监测点
//添加监测点
showBasicCheckModal
(
hostid
,
host
)
{
showBasicCheckModal
(
hostid
,
host
)
{
this
.
smartCheck
.
showAddModal
(
hostid
,
host
);
this
.
smartCheck
.
showAddModal
(
hostid
,
host
);
}
}
//列表
//列表
...
@@ -292,7 +291,7 @@ export class BasicComponent implements OnInit {
...
@@ -292,7 +291,7 @@ export class BasicComponent implements OnInit {
nzOkType
:
'danger'
,
nzOkType
:
'danger'
,
nzOnOk
:
()
=>
{
nzOnOk
:
()
=>
{
const
data
=
{
const
data
=
{
hostids
:[]
hostids
:
[]
};
};
data
.
hostids
.
push
(
item
.
hostid
);
data
.
hostids
.
push
(
item
.
hostid
);
this
.
overAllSer
.
deleteHostPost
(
data
).
subscribe
(
this
.
overAllSer
.
deleteHostPost
(
data
).
subscribe
(
...
@@ -312,8 +311,8 @@ export class BasicComponent implements OnInit {
...
@@ -312,8 +311,8 @@ export class BasicComponent implements OnInit {
}
}
//批量删除资源
//批量删除资源
batchDeleteConfirm
(){
batchDeleteConfirm
()
{
if
(
this
.
batchDelList
.
length
==
0
)
{
if
(
this
.
batchDelList
.
length
==
0
)
{
this
.
message
.
info
(
'请选择需要删除的设备'
);
this
.
message
.
info
(
'请选择需要删除的设备'
);
return
false
;
return
false
;
}
}
...
@@ -324,7 +323,7 @@ export class BasicComponent implements OnInit {
...
@@ -324,7 +323,7 @@ export class BasicComponent implements OnInit {
nzOkType
:
'danger'
,
nzOkType
:
'danger'
,
nzOnOk
:
()
=>
{
nzOnOk
:
()
=>
{
const
data
=
{
const
data
=
{
hostids
:
this
.
batchDelList
hostids
:
this
.
batchDelList
};
};
this
.
overAllSer
.
deleteHostPost
(
data
).
subscribe
(
this
.
overAllSer
.
deleteHostPost
(
data
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
...
@@ -349,8 +348,8 @@ export class BasicComponent implements OnInit {
...
@@ -349,8 +348,8 @@ export class BasicComponent implements OnInit {
}
}
//编辑分组
//编辑分组
updateGroup
(
item
){
updateGroup
(
item
)
{
this
.
smartCreateGroup
.
showEditModal
(
'修改分组'
,
item
);
this
.
smartCreateGroup
.
showEditModal
(
'修改分组'
,
item
);
}
}
//删除分组
//删除分组
...
@@ -380,7 +379,7 @@ export class BasicComponent implements OnInit {
...
@@ -380,7 +379,7 @@ export class BasicComponent implements OnInit {
}
}
//添加告警
//添加告警
showAlarm
(){
showAlarm
()
{
this
.
smartAlarmModal
.
showAddModal
(
'添加告警'
);
this
.
smartAlarmModal
.
showAddModal
(
'添加告警'
);
}
}
...
@@ -390,10 +389,10 @@ export class BasicComponent implements OnInit {
...
@@ -390,10 +389,10 @@ export class BasicComponent implements OnInit {
//获取下级list
//获取下级list
getChildren
(
item
)
{
getChildren
(
item
)
{
if
(
item
.
list
)
{
if
(
item
.
list
)
{
if
(
item
.
expand
)
{
if
(
item
.
expand
)
{
item
.
expand
=
false
;
item
.
expand
=
false
;
}
else
{
}
else
{
item
.
expand
=
true
;
item
.
expand
=
true
;
}
}
return
false
;
return
false
;
...
@@ -407,10 +406,10 @@ export class BasicComponent implements OnInit {
...
@@ -407,10 +406,10 @@ export class BasicComponent implements OnInit {
};
};
this
.
overAllSer
.
findDetail
(
data
).
subscribe
(
this
.
overAllSer
.
findDetail
(
data
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
data
)
{
if
(
res
.
data
)
{
this
.
dataSet
[
item
.
host
].
list
=
res
.
data
;
this
.
dataSet
[
item
.
host
].
list
=
res
.
data
;
this
.
toTree
(
item
.
host
);
this
.
toTree
(
item
.
host
);
}
else
{
}
else
{
this
.
message
.
info
(
'该分组下无资源'
);
this
.
message
.
info
(
'该分组下无资源'
);
}
}
this
.
loading
=
false
;
this
.
loading
=
false
;
...
@@ -419,25 +418,25 @@ export class BasicComponent implements OnInit {
...
@@ -419,25 +418,25 @@ export class BasicComponent implements OnInit {
}
}
//根据设备类型查询主机资源
//根据设备类型查询主机资源
getChildrenType
(
item
){
getChildrenType
(
item
)
{
if
(
item
.
list
)
{
if
(
item
.
list
)
{
if
(
item
.
expand
)
{
if
(
item
.
expand
)
{
item
.
expand
=
false
;
item
.
expand
=
false
;
}
else
{
}
else
{
item
.
expand
=
true
;
item
.
expand
=
true
;
}
}
return
false
;
return
false
;
}
}
this
.
loading
=
true
;
this
.
loading
=
true
;
const
data
=
{
const
data
=
{
type
:
item
.
equipmentTypeId
type
:
item
.
equipmentTypeId
};
};
this
.
overAllSer
.
findHostByType
(
data
).
subscribe
(
this
.
overAllSer
.
findHostByType
(
data
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
data
)
{
if
(
res
.
data
)
{
this
.
dataSet
[
item
.
host
].
list
=
res
.
data
;
this
.
dataSet
[
item
.
host
].
list
=
res
.
data
;
this
.
toTree
(
item
.
host
);
this
.
toTree
(
item
.
host
);
}
else
{
}
else
{
this
.
message
.
info
(
'该分组下无资源'
);
this
.
message
.
info
(
'该分组下无资源'
);
}
}
this
.
loading
=
false
;
this
.
loading
=
false
;
...
@@ -446,21 +445,21 @@ export class BasicComponent implements OnInit {
...
@@ -446,21 +445,21 @@ export class BasicComponent implements OnInit {
}
}
//查看详情
//查看详情
goDetail
(
item
){
goDetail
(
item
)
{
let
type
=
0
;
let
type
=
0
;
if
(
item
.
hostExtend
)
{
if
(
item
.
hostExtend
)
{
if
(
item
.
hostExtend
.
equipmentType
==
'交换机'
)
{
if
(
item
.
hostExtend
.
equipmentType
==
'交换机'
)
{
type
=
1
;
type
=
1
;
}
}
}
}
this
.
router
.
navigate
([
'app/main/basic-detail'
],{
this
.
router
.
navigate
([
'app/main/basic-detail'
],
{
queryParams
:{
queryParams
:
{
hostId
:
item
.
hostid
,
hostId
:
item
.
hostid
,
type
:
type
,
type
:
type
,
name
:
item
.
name
,
name
:
item
.
name
,
hostName
:
item
.
host
hostName
:
item
.
host
}
}
})
})
;
}
}
//监控设备数
//监控设备数
...
@@ -473,38 +472,38 @@ export class BasicComponent implements OnInit {
...
@@ -473,38 +472,38 @@ export class BasicComponent implements OnInit {
}
}
//临时暂停
//临时暂停
showTempStop
(
item
){
showTempStop
(
item
)
{
this
.
smartPause
.
showModal
(
item
.
hostid
,
'基础资源'
);
this
.
smartPause
.
showModal
(
item
.
hostid
,
'基础资源'
);
}
}
//选择
//选择
selectChecked
(
event
,
item
)
{
selectChecked
(
event
,
item
)
{
if
(
event
)
{
if
(
event
)
{
if
(
item
.
hostid
)
{
if
(
item
.
hostid
)
{
this
.
batchDelList
.
push
(
item
.
hostid
);
this
.
batchDelList
.
push
(
item
.
hostid
);
}
}
}
else
{
}
else
{
if
(
item
.
hostid
)
{
if
(
item
.
hostid
)
{
const
index
=
this
.
batchDelList
.
indexOf
(
item
.
hostid
);
const
index
=
this
.
batchDelList
.
indexOf
(
item
.
hostid
);
this
.
batchDelList
.
splice
(
index
,
1
)
this
.
batchDelList
.
splice
(
index
,
1
);
}
}
}
}
}
}
//开启or停止监控
//开启or停止监控
openHost
(
item
){
openHost
(
item
)
{
this
.
modalService
.
confirm
({
this
.
modalService
.
confirm
({
nzTitle
:
'监控'
,
nzTitle
:
'监控'
,
nzContent
:
'确定开启监控设备'
+
item
.
name
+
'?'
,
nzContent
:
'确定开启监控设备'
+
item
.
name
+
'?'
,
nzOkText
:
'确定'
,
nzOkText
:
'确定'
,
nzCancelText
:
'取消'
,
nzCancelText
:
'取消'
,
nzOnOk
:
()
=>
{
nzOnOk
:
()
=>
{
let
params1
=
0
;
let
params1
=
0
;
if
(
item
.
status
==
0
)
{
if
(
item
.
status
==
0
)
{
params1
=
1
;
params1
=
1
;
}
}
const
params2
=
item
.
hostid
;
const
params2
=
item
.
hostid
;
this
.
overAllSer
.
stopOrOpen
(
params1
,
params2
).
subscribe
(
this
.
overAllSer
.
stopOrOpen
(
params1
,
params2
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
if
(
res
.
errCode
==
10000
)
{
this
.
message
.
info
(
'修改成功'
);
this
.
message
.
info
(
'修改成功'
);
...
@@ -520,21 +519,21 @@ export class BasicComponent implements OnInit {
...
@@ -520,21 +519,21 @@ export class BasicComponent implements OnInit {
}
}
//批量开启or停止监控
//批量开启or停止监控
openBatchHost
(
status
,
operation
)
{
openBatchHost
(
status
,
operation
)
{
if
(
this
.
batchDelList
.
length
==
0
)
{
if
(
this
.
batchDelList
.
length
==
0
)
{
this
.
message
.
info
(
'请选择需要'
+
operation
+
'的设备'
);
this
.
message
.
info
(
'请选择需要'
+
operation
+
'的设备'
);
return
false
;
return
false
;
}
}
this
.
modalService
.
confirm
({
this
.
modalService
.
confirm
({
nzTitle
:
'监控'
,
nzTitle
:
'监控'
,
nzContent
:
'确定批量'
+
operation
+
'监控设备?'
,
nzContent
:
'确定批量'
+
operation
+
'监控设备?'
,
nzOkText
:
'确定'
,
nzOkText
:
'确定'
,
nzCancelText
:
'取消'
,
nzCancelText
:
'取消'
,
nzOnOk
:
()
=>
{
nzOnOk
:
()
=>
{
const
data
=
{
const
data
=
{
status
:
status
,
status
:
status
,
hostids
:
this
.
batchDelList
hostids
:
this
.
batchDelList
}
}
;
this
.
overAllSer
.
batchStopOrOpen
(
data
).
subscribe
(
this
.
overAllSer
.
batchStopOrOpen
(
data
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
if
(
res
.
errCode
==
10000
)
{
...
@@ -553,7 +552,11 @@ export class BasicComponent implements OnInit {
...
@@ -553,7 +552,11 @@ export class BasicComponent implements OnInit {
}
}
//资产页面
//资产页面
goTOInventory
(
id
){
goTOInventory
(
id
)
{
this
.
router
.
navigate
([
'app/main/assetsDetail'
],
{
queryParams
:
{
invertoryId
:
id
}
});
}
}
}
}
src/main/webapp/app/work/modal/type-asets/type-asets.component.ts
View file @
c5af5b3c
...
@@ -81,8 +81,8 @@ export class TypeAsetsComponent implements OnInit {
...
@@ -81,8 +81,8 @@ export class TypeAsetsComponent implements OnInit {
this
.
workSer
.
findType
(
id
).
subscribe
(
this
.
workSer
.
findType
(
id
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
data
.
parentid
){
if
(
res
.
data
.
parentid
){
this
.
isParent
=
'
primary
'
;
this
.
isParent
=
'
default
'
;
this
.
isChildren
=
'
default
'
;
this
.
isChildren
=
'
primary
'
;
}
}
this
.
validateForm
.
patchValue
(
res
.
data
);
this
.
validateForm
.
patchValue
(
res
.
data
);
}
}
...
...
src/main/webapp/app/work/work-handle/Event/event.component.ts
View file @
c5af5b3c
...
@@ -103,7 +103,9 @@ export class EventComponent implements OnInit {
...
@@ -103,7 +103,9 @@ export class EventComponent implements OnInit {
this
.
message
.
error
(
"请选择人员"
);
this
.
message
.
error
(
"请选择人员"
);
return
false
;
return
false
;
}
}
this
.
validateForm
.
value
.
operators
=
this
.
operatorsList
;
this
.
validateForm
.
patchValue
({
operators
:
this
.
operatorsList
});
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
();
...
@@ -132,7 +134,9 @@ export class EventComponent implements OnInit {
...
@@ -132,7 +134,9 @@ export class EventComponent implements OnInit {
this
.
fileList
.
forEach
((
file
:
any
)
=>
{
this
.
fileList
.
forEach
((
file
:
any
)
=>
{
formData
.
append
(
'file'
,
file
);
formData
.
append
(
'file'
,
file
);
});
});
this
.
validateForm
.
value
.
operators
=
this
.
operatorsList
;
this
.
validateForm
.
patchValue
({
operators
:
this
.
operatorsList
});
if
(
this
.
operatorsList
.
length
==
0
){
if
(
this
.
operatorsList
.
length
==
0
){
this
.
message
.
error
(
"请选择人员"
);
this
.
message
.
error
(
"请选择人员"
);
...
...
src/main/webapp/app/work/work-handle/handle-detail/handle-detail.component.html
View file @
c5af5b3c
...
@@ -75,9 +75,9 @@
...
@@ -75,9 +75,9 @@
<div
nz-col
nzSpan=
"4"
>
关联资产
</div>
<div
nz-col
nzSpan=
"4"
>
关联资产
</div>
<div
nz-col
nzSpan=
"1"
></div>
<div
nz-col
nzSpan=
"1"
></div>
<div
nz-col
nzSpan=
"19"
>
<div
nz-col
nzSpan=
"19"
>
<p
*
ngFor=
"let item of
linkList
;"
>
<p
*
ngFor=
"let item of
event?.inventorys
;"
>
<span
>
资产编号
</span>
<span
style=
"margin-right: 5px"
>
{{item.inventoryNo}}
</span>
<span>
{{item.name}}
</span>
<span
style=
"margin-right: 5px"
>
{{item.name}}
</span>
<span>
{{item.typeName}}
</span>
<span>
{{item.typeName}}
</span>
</p>
</p>
</div>
</div>
...
...
src/main/webapp/app/work/work-handle/handle-detail/handle-detail.component.ts
View file @
c5af5b3c
...
@@ -26,7 +26,6 @@ export class HandleDetailComponent implements OnInit {
...
@@ -26,7 +26,6 @@ export class HandleDetailComponent implements OnInit {
eventId
;
eventId
;
event
;
event
;
linkList
;
transforsList
;
transforsList
;
constructor
(
private
workSer
:
WorkService
,
private
message
:
NzMessageService
,
constructor
(
private
workSer
:
WorkService
,
private
message
:
NzMessageService
,
...
...
src/main/webapp/app/work/work.service.ts
View file @
c5af5b3c
...
@@ -31,7 +31,7 @@ export class WorkService {
...
@@ -31,7 +31,7 @@ export class WorkService {
//根据事件编号查询
//根据事件编号查询
findByNo
(
params
):
Observable
<
any
>
{
findByNo
(
params
):
Observable
<
any
>
{
return
this
.
http
.
get
(
SERVER_API_URL
+
'/sysevent/find/'
+
params
);
return
this
.
http
.
get
(
SERVER_API_URL
+
'/sysevent/find
TransferAndInventory
/'
+
params
);
}
}
//添加事件
//添加事件
...
...
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