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
9717f939
Commit
9717f939
authored
Jan 17, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
2684c3ca
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
20 additions
and
20 deletions
+20
-20
app.constants.ts
src/main/webapp/app/app.constants.ts
+12
-12
discovery.component.html
src/main/webapp/app/modal/discovery/discovery.component.html
+2
-2
discovery.component.ts
src/main/webapp/app/modal/discovery/discovery.component.ts
+3
-2
ne-topology.component.ts
...bapp/app/netTopology/ne-topology/ne-topology.component.ts
+0
-1
network-detail.component.ts
.../network-check/network-detail/network-detail.component.ts
+0
-1
discovery-list.component.html
...All/template/discovery-list/discovery-list.component.html
+2
-2
check-prototype.component.ts
...mplate/modal/check-prototype/check-prototype.component.ts
+1
-0
No files found.
src/main/webapp/app/app.constants.ts
View file @
9717f939
...
...
@@ -15,16 +15,16 @@ export const color = {
gray
:
'#bfbfbf'
,
black
:
'#6064'
};
//图片地址
export
const
serverPath
=
"http://10.10.38.99:8282"
;
export
const
imgUrl
=
serverPath
+
"/file/icon/"
;
export
const
fileUrl
=
serverPath
+
"/file/"
;
// //图片地址
// const urlPath = window.document.location.href; //浏览器显示地址
// const docPath = window.document.location.pathname; //文件在服务器相对地址
// const index = urlPath.indexOf(docPath);
// const serverPath = urlPath.substring(0, index);//服务器地址
// export const imgUrl = serverPath + "file/icon/";
// // export const fileUrl = "http://10.10.38.99:8282/file/";
// export const fileUrl = serverPath + "file/";
// export const serverPath = "http://10.10.38.99:8282";
// export const imgUrl = serverPath + "/file/icon/";
// export const fileUrl = serverPath + "/file/";
//图片地址
const
urlPath
=
window
.
document
.
location
.
href
;
//浏览器显示地址
const
docPath
=
window
.
document
.
location
.
pathname
;
//文件在服务器相对地址
const
index
=
urlPath
.
indexOf
(
docPath
);
const
serverPath
=
urlPath
.
substring
(
0
,
index
);
//服务器地址
export
const
imgUrl
=
serverPath
+
"file/icon/"
;
// export const fileUrl = "http://10.10.38.99:8282/file/";
export
const
fileUrl
=
serverPath
+
"file/"
;
src/main/webapp/app/modal/discovery/discovery.component.html
View file @
9717f939
...
...
@@ -70,9 +70,9 @@
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
6
"
>
丢失时间
</nz-form-label>
<nz-form-label
[
nzSpan
]="
6
"
>
丢失时间
(秒)
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
nzFor=
"lifetime"
>
<input
type=
"text"
name=
"lifetime"
placeholder=
"输入丢失时间"
nz-input
<input
type=
"text"
name=
"lifetime"
placeholder=
"输入丢失时间
(秒)
"
nz-input
formControlName=
"lifetime"
>
</nz-form-control>
</nz-form-item>
...
...
src/main/webapp/app/modal/discovery/discovery.component.ts
View file @
9717f939
...
...
@@ -45,7 +45,7 @@ export class DiscoveryComponent implements OnInit {
delay
:
[
null
,
[
Validators
.
required
]],
description
:
[
null
],
lifetime
:
[
'3600'
],
status
:
[
null
],
status
:
[
null
],
//0启用 1禁用
});
}
...
...
@@ -67,6 +67,7 @@ export class DiscoveryComponent implements OnInit {
const
data
=
res
.
data
[
0
];
data
.
type
+=
''
;
data
.
value_type
+=
''
;
data
.
status
=
data
.
status
==
0
?
true
:
false
;
this
.
validateForm
.
patchValue
(
data
);
}
);
...
...
@@ -82,7 +83,7 @@ export class DiscoveryComponent implements OnInit {
this
.
message
.
error
(
'请输入必填信息'
);
return
false
;
}
let
d
=
this
.
validateForm
.
value
.
status
==
true
?
1
:
0
;
let
d
=
this
.
validateForm
.
value
.
status
==
true
?
0
:
1
;
this
.
validateForm
.
patchValue
({
status
:
d
,
hostid
:
this
.
hostId
...
...
src/main/webapp/app/netTopology/ne-topology/ne-topology.component.ts
View file @
9717f939
...
...
@@ -335,7 +335,6 @@ export class NeTopologyComponent implements OnInit, DoCheck, AfterViewInit, OnDe
const
hostIds
=
[];
arr
.
forEach
(
e
=>
{
if
(
e
.
elementType
==
'link'
&&
e
.
itemId
&&
e
.
itemId
.
length
>
0
){
console
.
log
(
e
);
const
data
=
{
itemIdIn
:
e
.
itemId
.
split
(
','
)[
0
],
itemIdOut
:
e
.
itemId
.
split
(
','
)[
1
],
...
...
src/main/webapp/app/overAll/network-check/network-detail/network-detail.component.ts
View file @
9717f939
...
...
@@ -265,7 +265,6 @@ export class NetworkDetailComponent implements OnInit, OnChanges {
tooltip
:
{
// trigger: 'axis',
formatter
:
(
params
)
=>
{
console
.
log
(
params
);
if
(
params
.
data
)
{
let
res
=
params
.
seriesName
;
res
+=
'<br/>时间:'
+
params
.
name
;
...
...
src/main/webapp/app/overAll/template/discovery-list/discovery-list.component.html
View file @
9717f939
...
...
@@ -66,4 +66,4 @@
</nz-table>
<!--自动发现-->
<smart-discovery
#
smartDiscovery
></smart-discovery>
\ No newline at end of file
<smart-discovery
#
smartDiscovery
(
done
)="
getList
()"
></smart-discovery>
\ No newline at end of file
src/main/webapp/app/overAll/template/modal/check-prototype/check-prototype.component.ts
View file @
9717f939
...
...
@@ -94,6 +94,7 @@ export class CheckPrototypeComponent implements OnInit {
const
data
=
res
.
data
[
0
];
data
.
type
+=
''
;
data
.
value_type
+=
''
;
data
.
status
=
data
.
status
==
0
?
true
:
false
;
if
(
data
.
applications
)
{
data
.
applications
=
data
.
applications
.
map
(
e
=>
{
return
e
.
applicationid
;
...
...
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