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
133fa0a1
Commit
133fa0a1
authored
Jan 17, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
0ba933d8
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
56 additions
and
39 deletions
+56
-39
resource-alarm.component.ts
...p/app/analysis/resource-alarm/resource-alarm.component.ts
+1
-1
resource-usabil.component.ts
...app/analysis/resource-usabil/resource-usabil.component.ts
+1
-1
basic-edit.component.ts
src/main/webapp/app/modal/basic-edit/basic-edit.component.ts
+37
-20
flow-trend.component.ts
...webapp/app/netTopology/flow-trend/flow-trend.component.ts
+1
-1
overAll.service.ts
src/main/webapp/app/overAll/overAll.service.ts
+15
-15
audit.component.html
src/main/webapp/app/system/audit/audit.component.html
+1
-1
No files found.
src/main/webapp/app/analysis/resource-alarm/resource-alarm.component.ts
View file @
133fa0a1
...
...
@@ -65,7 +65,7 @@ export class ResourceAlarmComponent implements OnInit {
//获取分组
getGroup
()
{
this
.
overAllSer
.
getgroups
({}
).
subscribe
(
this
.
overAllSer
.
findGroup
(
).
subscribe
(
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
this
.
groupList
=
res
.
data
;
...
...
src/main/webapp/app/analysis/resource-usabil/resource-usabil.component.ts
View file @
133fa0a1
...
...
@@ -46,7 +46,7 @@ export class ResourceUsabilComponent implements OnInit {
//获取分组
getGroup
()
{
this
.
overAllSer
.
getgroups
({}
).
subscribe
(
this
.
overAllSer
.
findGroup
(
).
subscribe
(
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
this
.
groupList
=
res
.
data
;
...
...
src/main/webapp/app/modal/basic-edit/basic-edit.component.ts
View file @
133fa0a1
...
...
@@ -125,10 +125,9 @@ export class BasicEditComponent implements OnInit {
this
.
validateForm
.
tls_issuer
=
data
.
tls_issuer
+
''
;
this
.
validateForm
.
tls_subject
=
data
.
tls_subject
+
''
;
this
.
validateForm
.
tls_psk
=
data
.
tls_psk
+
''
;
this
.
validateForm
.
inventoryExtend
=
data
.
inventory
;
this
.
validateForm
.
hostExtend
=
data
.
hostExtend
;
this
.
validateForm
.
groups
=
data
.
groups
;
if
(
data
.
parentTemplates
)
{
//模版对象
//模版对象
if
(
data
.
parentTemplates
)
{
let
tempArr
=
[];
tempArr
=
data
.
parentTemplates
.
map
(
res
=>
{
return
res
.
templateid
;
...
...
@@ -136,34 +135,52 @@ export class BasicEditComponent implements OnInit {
this
.
validateForm
.
templates
=
tempArr
;
this
.
templatesResoure
=
tempArr
;
}
this
.
interfaceslist
=
data
.
interfaces
;
this
.
interfaceslist
.
forEach
(
res
=>
{
//接口对象
res
.
main
=
res
.
main
+
''
;
res
.
type
=
res
.
type
+
''
;
});
//接口对象
if
(
data
.
interfaces
){
this
.
interfaceslist
=
data
.
interfaces
;
this
.
interfaceslist
.
forEach
(
res
=>
{
res
.
main
=
res
.
main
+
''
;
res
.
type
=
res
.
type
+
''
;
});
}
//主机对象
this
.
hostTypeChildrenList
=
[];
this
.
hostTypeList
.
forEach
(
res
=>
{
//主机对象
if
(
this
.
validateForm
.
hostExtend
.
equipmentTypeid
==
res
.
id
)
{
this
.
hostTypeChildrenList
=
res
.
childs
;
}
});
if
(
data
.
hostExtend
){
this
.
validateForm
.
hostExtend
=
data
.
hostExtend
;
this
.
hostTypeList
.
forEach
(
res
=>
{
if
(
this
.
validateForm
.
hostExtend
.
equipmentTypeid
==
res
.
id
)
{
this
.
hostTypeChildrenList
=
res
.
childs
;
}
});
}
if
(
data
.
macros
)
{
//红对象
//宏对象
if
(
data
.
macros
)
{
this
.
macroList1
=
data
.
macros
;
}
if
(
data
.
inventory
){
//资产对象
//资产对象
if
(
data
.
inventory
){
this
.
validateForm
.
inventoryExtend
=
data
.
inventory
;
this
.
isInVentory
=
false
;
this
.
isYesInVentory
=
'default'
;
this
.
isNOInVentory
=
'primary'
;
}
for
(
let
i
=
0
;
i
<
this
.
validateForm
.
groups
.
length
;
i
++
)
{
//分组对象
for
(
let
j
=
0
;
j
<
this
.
groupList
.
length
;
j
++
)
{
if
(
this
.
validateForm
.
groups
[
i
].
groupid
==
this
.
groupList
[
j
].
value
)
{
this
.
groupList
[
j
].
checked
=
true
;
//分组对象
if
(
data
.
groups
){
this
.
validateForm
.
groups
=
data
.
groups
;
for
(
let
i
=
0
;
i
<
this
.
validateForm
.
groups
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
this
.
groupList
.
length
;
j
++
)
{
if
(
this
.
validateForm
.
groups
[
i
].
groupid
==
this
.
groupList
[
j
].
value
)
{
this
.
groupList
[
j
].
checked
=
true
;
}
}
}
}
}
);
}
...
...
src/main/webapp/app/netTopology/flow-trend/flow-trend.component.ts
View file @
133fa0a1
...
...
@@ -95,7 +95,7 @@ export class FlowTrendComponent implements OnInit, OnDestroy {
//获取分组
getGroup
()
{
this
.
overAllSer
.
getgroups
({}
).
subscribe
(
this
.
overAllSer
.
findGroup
(
).
subscribe
(
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
this
.
groupList
=
res
.
data
;
...
...
src/main/webapp/app/overAll/overAll.service.ts
View file @
133fa0a1
...
...
@@ -9,6 +9,21 @@ export class OverAllService {
constructor
(
private
http
:
HttpClient
)
{
}
//资源列表--资源分组 ---主机组下拉框
findGroup
():
Observable
<
any
>
{
return
this
.
http
.
get
(
SERVER_API_URL
+
'/groups/getAll'
);
}
//获取分组信息 --编辑
getgroups
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
SERVER_API_URL
+
'/groups/getgroups'
,
data
);
}
//查询模板组-----
getTemplateGroups
():
Observable
<
any
>
{
return
this
.
http
.
get
(
SERVER_API_URL
+
'/groups/getTemplateGroups'
);
}
//资源列表--所有类型
find
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
SERVER_API_URL
+
'/host/find'
,
data
);
...
...
@@ -24,11 +39,6 @@ export class OverAllService {
return
this
.
http
.
post
(
SERVER_API_URL
+
'/host/batchStopOrOpen'
,
data
);
}
//资源列表--资源分组
findGroup
():
Observable
<
any
>
{
return
this
.
http
.
get
(
SERVER_API_URL
+
'/groups/getAll'
);
}
//资源列表--设备类型
findType
():
Observable
<
any
>
{
return
this
.
http
.
get
(
SERVER_API_URL
+
'/hostType/selectAllEquipmentType'
);
...
...
@@ -114,11 +124,6 @@ export class OverAllService {
return
this
.
http
.
post
(
SERVER_API_URL
+
'/host/create'
,
data
);
}
//获取分组信息
getgroups
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
SERVER_API_URL
+
'/groups/getgroups'
,
data
);
}
//模版信息
templates
():
Observable
<
any
>
{
return
this
.
http
.
get
(
SERVER_API_URL
+
'/templates'
);
...
...
@@ -339,11 +344,6 @@ export class OverAllService {
return
this
.
http
.
post
(
SERVER_API_URL
+
'/templates/find'
,
data
);
}
//查询模板组
getTemplateGroups
():
Observable
<
any
>
{
return
this
.
http
.
get
(
SERVER_API_URL
+
'/groups/getTemplateGroups'
);
}
//添加主机自动发现
createLldrule
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
SERVER_API_URL
+
'/lldrule/create'
,
data
);
...
...
src/main/webapp/app/system/audit/audit.component.html
View file @
133fa0a1
...
...
@@ -60,7 +60,7 @@
<tr
*
ngFor=
"let data of basicTable.data"
>
<td>
{{data.createUserName}}
</td>
<td>
{{data.moduleName}}
</td>
<td>
{{data.
content
}}
</td>
<td>
{{data.
operation
}}
</td>
<td>
{{data.content}}
</td>
<td>
{{data.createTime | date:'yyyy-MM-dd HH:mm:ss'}}
</td>
</tr>
...
...
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