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
8e3ebf88
Commit
8e3ebf88
authored
Jan 03, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
5d6d4d86
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
7 deletions
+15
-7
main.component.ts
src/main/webapp/app/layouts/main/main.component.ts
+0
-1
basi-check.component.ts
src/main/webapp/app/modal/basi-check/basi-check.component.ts
+0
-1
flow-trend.component.ts
...webapp/app/netTopology/flow-trend/flow-trend.component.ts
+1
-1
check.component.ts
...ain/webapp/app/netTopology/model/check/check.component.ts
+1
-2
ne-topology.component.ts
...bapp/app/netTopology/ne-topology/ne-topology.component.ts
+8
-2
topology.service.ts
src/main/webapp/app/netTopology/topology.service.ts
+5
-0
No files found.
src/main/webapp/app/layouts/main/main.component.ts
View file @
8e3ebf88
...
@@ -40,7 +40,6 @@ export class JhiMainComponent implements OnInit {
...
@@ -40,7 +40,6 @@ export class JhiMainComponent implements OnInit {
}
}
ngOnInit
()
{
ngOnInit
()
{
console
.
log
(
this
.
container
);
this
.
nzI18nService
.
setLocale
(
zh_CN
);
this
.
nzI18nService
.
setLocale
(
zh_CN
);
...
...
src/main/webapp/app/modal/basi-check/basi-check.component.ts
View file @
8e3ebf88
...
@@ -386,7 +386,6 @@ export class BasiCheckComponent implements OnInit {
...
@@ -386,7 +386,6 @@ export class BasiCheckComponent implements OnInit {
let
error
=
true
;
let
error
=
true
;
this
.
conditionList
.
map
(
e
=>
{
this
.
conditionList
.
map
(
e
=>
{
if
(
e
.
value
.
length
>
0
){
if
(
e
.
value
.
length
>
0
){
console
.
log
(
e
.
value
)
}
else
{
}
else
{
error
=
false
;
error
=
false
;
}
}
...
...
src/main/webapp/app/netTopology/flow-trend/flow-trend.component.ts
View file @
8e3ebf88
...
@@ -147,7 +147,7 @@ export class FlowTrendComponent implements OnInit {
...
@@ -147,7 +147,7 @@ export class FlowTrendComponent implements OnInit {
tooltip
:
{
tooltip
:
{
// trigger: 'axis',
// trigger: 'axis',
formatter
:
(
params
)
=>
{
formatter
:
(
params
)
=>
{
console
.
log
(
params
);
let
res
=
params
.
seriesName
;
let
res
=
params
.
seriesName
;
res
+=
'<br/>时间:'
+
params
.
name
;
res
+=
'<br/>时间:'
+
params
.
name
;
let
Mbps
=
1000
*
1000
;
let
Mbps
=
1000
*
1000
;
...
...
src/main/webapp/app/netTopology/model/check/check.component.ts
View file @
8e3ebf88
...
@@ -78,8 +78,7 @@ export class CheckComponent implements OnInit {
...
@@ -78,8 +78,7 @@ export class CheckComponent implements OnInit {
//获取下级
//获取下级
mouseAction
(
name
:
string
,
event
:
NzFormatEmitEvent
)
{
mouseAction
(
name
:
string
,
event
:
NzFormatEmitEvent
)
{
console
.
log
(
event
);
console
.
log
(
this
.
nodeList
);
let
type
;
let
type
;
if
(
event
.
node
.
level
==
0
){
if
(
event
.
node
.
level
==
0
){
type
=
"host"
;
//主机
type
=
"host"
;
//主机
...
...
src/main/webapp/app/netTopology/ne-topology/ne-topology.component.ts
View file @
8e3ebf88
...
@@ -152,8 +152,14 @@ export class NeTopologyComponent implements OnInit, AfterViewInit {
...
@@ -152,8 +152,14 @@ export class NeTopologyComponent implements OnInit, AfterViewInit {
//获取设备图片
//获取设备图片
setImg
(
e
)
{
setImg
(
e
)
{
console
.
log
(
e
);
const
data
=
{
editor
.
utils
.
addNode
(
e
[
0
].
icon
,
'图片'
);
hostIds
:
e
}
this
.
topologySer
.
findByHostIdOrWeb
(
data
).
subscribe
(
(
res
)
=>
{
editor
.
utils
.
addNode
(
res
.
data
[
0
].
url
,
'图片'
);
}
)
}
}
//获取列表
//获取列表
...
...
src/main/webapp/app/netTopology/topology.service.ts
View file @
8e3ebf88
...
@@ -74,6 +74,11 @@ export class TopologyService {
...
@@ -74,6 +74,11 @@ export class TopologyService {
return
this
.
http
.
post
(
SERVER_API_URL
+
'/icon/findDefaultIcon'
,
data
);
return
this
.
http
.
post
(
SERVER_API_URL
+
'/icon/findDefaultIcon'
,
data
);
}
}
//查找图标
findByHostIdOrWeb
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
SERVER_API_URL
+
'/icon/findByHostIdOrWeb'
,
data
);
}
//添加图片
//添加图片
addPic
(
data
):
Observable
<
any
>
{
addPic
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
SERVER_API_URL
+
'/sysmapJson/addPic'
,
data
);
return
this
.
http
.
post
(
SERVER_API_URL
+
'/sysmapJson/addPic'
,
data
);
...
...
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