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
72775e8f
Commit
72775e8f
authored
Jan 23, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
25f53b00
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
26 deletions
+17
-26
basi-check.component.html
...ain/webapp/app/modal/basi-check/basi-check.component.html
+1
-2
basi-check.component.ts
src/main/webapp/app/modal/basi-check/basi-check.component.ts
+4
-1
basic-edit.component.html
...ain/webapp/app/modal/basic-edit/basic-edit.component.html
+2
-20
basic-edit.component.ts
src/main/webapp/app/modal/basic-edit/basic-edit.component.ts
+7
-1
icon.component.ts
src/main/webapp/app/netTopology/model/icon/icon.component.ts
+1
-0
basic.component.html
src/main/webapp/app/overAll/basic/basic.component.html
+1
-1
upload.component.ts
src/main/webapp/app/work/modal/upload/upload.component.ts
+1
-1
No files found.
src/main/webapp/app/modal/basi-check/basi-check.component.html
View file @
72775e8f
<nz-modal
[
nzWidth
]="
880
"
[(
nzVisible
)]="
isCheck
"
[
nzTitle
]="
title
"
(
nzOnCancel
)="
handleCheckCancel
()"
<nz-modal
[
nzWidth
]="
880
"
[(
nzVisible
)]="
isCheck
"
[
nzTitle
]="
title
"
(
nzOnCancel
)="
handleCheckCancel
()"
(
nzOnOk
)="
handleCheckOk
()"
[
nzOkLoading
]="
isOkLoading
"
>
(
nzOnOk
)="
handleCheckOk
()"
>
<form
[
formGroup
]="
validateForm
"
nz-form
>
<form
[
formGroup
]="
validateForm
"
nz-form
>
<nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
6
"
nzRequired
nzFor=
"checkName"
>
监测点名称
</nz-form-label>
<nz-form-label
[
nzSpan
]="
6
"
nzRequired
nzFor=
"checkName"
>
监测点名称
</nz-form-label>
...
...
src/main/webapp/app/modal/basi-check/basi-check.component.ts
View file @
72775e8f
...
@@ -35,6 +35,7 @@ export class BasiCheckComponent implements OnInit {
...
@@ -35,6 +35,7 @@ export class BasiCheckComponent implements OnInit {
title
;
title
;
isCheck
=
false
;
isCheck
=
false
;
isOkLoading
=
false
;
isInterface
=
true
;
//添加模版监测点的时候不需要主机接口
isInterface
=
true
;
//添加模版监测点的时候不需要主机接口
nzSize
=
'large'
;
nzSize
=
'large'
;
hostId
;
//主机ID
hostId
;
//主机ID
...
@@ -187,8 +188,8 @@ export class BasiCheckComponent implements OnInit {
...
@@ -187,8 +188,8 @@ export class BasiCheckComponent implements OnInit {
this
.
message
.
error
(
'请输入必填信息'
);
this
.
message
.
error
(
'请输入必填信息'
);
return
false
;
return
false
;
}
}
this
.
validateForm
.
value
.
applications
=
this
.
validateForm
.
value
.
applications
;
this
.
validateForm
.
value
.
hostid
=
this
.
hostId
;
this
.
validateForm
.
value
.
hostid
=
this
.
hostId
;
this
.
isOkLoading
=
true
;
if
(
this
.
title
==
'添加监测点'
||
this
.
title
==
"添加模版监测点"
)
{
if
(
this
.
title
==
'添加监测点'
||
this
.
title
==
"添加模版监测点"
)
{
this
.
create
();
this
.
create
();
}
}
...
@@ -209,6 +210,7 @@ export class BasiCheckComponent implements OnInit {
...
@@ -209,6 +210,7 @@ export class BasiCheckComponent implements OnInit {
}
else
{
}
else
{
this
.
message
.
error
(
res
.
errMsg
);
this
.
message
.
error
(
res
.
errMsg
);
}
}
this
.
isOkLoading
=
false
;
},
},
(
err
)
=>
{
(
err
)
=>
{
this
.
message
.
error
(
'系统错误'
);
this
.
message
.
error
(
'系统错误'
);
...
@@ -233,6 +235,7 @@ export class BasiCheckComponent implements OnInit {
...
@@ -233,6 +235,7 @@ export class BasiCheckComponent implements OnInit {
}
else
{
}
else
{
this
.
message
.
error
(
res
.
errMsg
);
this
.
message
.
error
(
res
.
errMsg
);
}
}
this
.
isOkLoading
=
false
;
},
},
(
err
)
=>
{
(
err
)
=>
{
this
.
message
.
error
(
'系统错误'
);
this
.
message
.
error
(
'系统错误'
);
...
...
src/main/webapp/app/modal/basic-edit/basic-edit.component.html
View file @
72775e8f
<!--添加资源-->
<!--添加资源-->
<nz-modal
[
nzWidth
]="
1080
"
[
nzFooter
]="
null
"
[(
nzVisible
)]="
isBasicEdit
"
nzTitle=
"{{modalTitle}}"
<nz-modal
[
nzWidth
]="
1080
"
[(
nzVisible
)]="
isBasicEdit
"
[
nzTitle
]="
modalTitle
"
(
nzOnCancel
)="
handleEditCancel
()"
(
nzOnOk
)="
handEditleOk
()"
[
nzOkLoading
]="
isOkLoading
"
>
(
nzOnCancel
)="
handleEditCancel
()"
(
nzOnOk
)="
handEditleOk
()"
>
<nz-tabset
[(
nzSelectedIndex
)]="
tabNum
"
(
nzSelectedIndexChange
)="
tabsChange
($
event
)"
style=
"padding-bottom: 25px;min-height: 500px"
>
<nz-tabset
[
nzSelectedIndex
]="
tabNum
"
(
nzSelectedIndexChange
)="
tabsChange
($
event
)"
style=
"padding-bottom: 25px;min-height: 500px"
>
<nz-tab
nzTitle=
"资源信息"
>
<nz-tab
nzTitle=
"资源信息"
>
<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
"
>
...
@@ -125,11 +124,6 @@
...
@@ -125,11 +124,6 @@
</nz-form-control>
</nz-form-control>
</nz-form-item>
</nz-form-item>
</div>
</div>
<div
class=
"modal-footer-btn"
>
<button
nz-button
(
click
)="
handleEditCancel
()"
nzType=
"primary"
>
取消
</button>
<button
nz-button
(
click
)="
tabsChange
(
1
)"
nzType=
"primary"
>
下一步
</button>
</div>
</nz-tab>
</nz-tab>
<nz-tab
nzTitle=
"配置信息"
>
<nz-tab
nzTitle=
"配置信息"
>
...
@@ -281,12 +275,6 @@
...
@@ -281,12 +275,6 @@
</div>
</div>
</nz-collapse-panel>
</nz-collapse-panel>
</nz-collapse>
</nz-collapse>
<div
class=
"modal-footer-btn"
>
<button
nz-button
(
click
)="
handleEditCancel
()"
nzType=
"primary"
>
取消
</button>
<button
nz-button
(
click
)="
tabsChange
(
0
)"
nzType=
"primary"
>
上一步
</button>
<button
nz-button
(
click
)="
tabsChange
(
2
)"
nzType=
"primary"
>
下一步
</button>
</div>
</nz-tab>
</nz-tab>
<!--<nz-tab nzTitle="加密">-->
<!--<nz-tab nzTitle="加密">-->
...
@@ -529,12 +517,6 @@
...
@@ -529,12 +517,6 @@
</ng-container>
</ng-container>
</div>
</div>
<div
class=
"modal-footer-btn"
>
<button
nz-button
(
click
)="
handleEditCancel
()"
nzType=
"primary"
>
取消
</button>
<button
nz-button
(
click
)="
tabsChange
(
1
)"
nzType=
"primary"
>
上一步
</button>
<button
nz-button
(
click
)="
handEditleOk
()"
nzType=
"primary"
>
完成
</button>
</div>
</nz-tab>
</nz-tab>
</nz-tabset>
</nz-tabset>
</nz-modal>
</nz-modal>
src/main/webapp/app/modal/basic-edit/basic-edit.component.ts
View file @
72775e8f
...
@@ -43,7 +43,8 @@ export class BasicEditComponent implements OnInit {
...
@@ -43,7 +43,8 @@ export class BasicEditComponent implements OnInit {
otherHost
;
otherHost
;
isBasicEdit
=
false
;
isBasicEdit
=
false
;
tabNum
:
number
;
//tabs面板的序列号
isOkLoading
=
false
;
tabNum
=
0
;
//tabs面板的序列号
macroList1
:
any
[];
macroList1
:
any
[];
macroList2
:
any
[];
//配置宏数组
macroList2
:
any
[];
//配置宏数组
interfaceslist
:
any
[];
//接口list
interfaceslist
:
any
[];
//接口list
...
@@ -82,6 +83,7 @@ export class BasicEditComponent implements OnInit {
...
@@ -82,6 +83,7 @@ export class BasicEditComponent implements OnInit {
//新增
//新增
showModal
():
void
{
showModal
():
void
{
this
.
tabNum
=
0
;
this
.
isBasicEdit
=
true
;
this
.
isBasicEdit
=
true
;
this
.
modalTitle
=
'添加资源'
;
this
.
modalTitle
=
'添加资源'
;
this
.
getGroup
();
this
.
getGroup
();
...
@@ -110,6 +112,7 @@ export class BasicEditComponent implements OnInit {
...
@@ -110,6 +112,7 @@ export class BasicEditComponent implements OnInit {
editModal
(
hostId
,
name
,
gId
):
void
{
editModal
(
hostId
,
name
,
gId
):
void
{
this
.
getGroup
();
this
.
getGroup
();
this
.
isBasicEdit
=
true
;
this
.
isBasicEdit
=
true
;
this
.
tabNum
=
0
;
this
.
hostId
=
hostId
;
this
.
hostId
=
hostId
;
this
.
modalTitle
=
'编辑资源'
;
this
.
modalTitle
=
'编辑资源'
;
this
.
overAllSer
.
findDetailed
(
this
.
hostId
).
subscribe
(
this
.
overAllSer
.
findDetailed
(
this
.
hostId
).
subscribe
(
...
@@ -227,6 +230,7 @@ export class BasicEditComponent implements OnInit {
...
@@ -227,6 +230,7 @@ export class BasicEditComponent implements OnInit {
});
});
this
.
validateForm
.
groups
=
groupArr
;
this
.
validateForm
.
groups
=
groupArr
;
this
.
isOkLoading
=
true
;
if
(
this
.
modalTitle
==
'编辑资源'
)
{
if
(
this
.
modalTitle
==
'编辑资源'
)
{
this
.
update
();
this
.
update
();
}
else
{
}
else
{
...
@@ -253,6 +257,7 @@ export class BasicEditComponent implements OnInit {
...
@@ -253,6 +257,7 @@ export class BasicEditComponent implements OnInit {
}
else
{
}
else
{
this
.
message
.
error
(
res
.
errMsg
);
this
.
message
.
error
(
res
.
errMsg
);
}
}
this
.
isOkLoading
=
false
;
},
},
(
err
)
=>
{
(
err
)
=>
{
this
.
message
.
info
(
'系统错误'
);
this
.
message
.
info
(
'系统错误'
);
...
@@ -291,6 +296,7 @@ export class BasicEditComponent implements OnInit {
...
@@ -291,6 +296,7 @@ export class BasicEditComponent implements OnInit {
}
else
{
}
else
{
this
.
message
.
error
(
res
.
errMsg
);
this
.
message
.
error
(
res
.
errMsg
);
}
}
this
.
isOkLoading
=
false
;
},
},
(
err
)
=>
{
(
err
)
=>
{
this
.
message
.
info
(
'系统错误'
);
this
.
message
.
info
(
'系统错误'
);
...
...
src/main/webapp/app/netTopology/model/icon/icon.component.ts
View file @
72775e8f
...
@@ -134,6 +134,7 @@ export class IconComponent implements OnInit {
...
@@ -134,6 +134,7 @@ export class IconComponent implements OnInit {
handleCancel
()
{
handleCancel
()
{
this
.
isVisible
=
false
;
this
.
isVisible
=
false
;
this
.
initForm
();
}
}
}
}
src/main/webapp/app/overAll/basic/basic.component.html
View file @
72775e8f
...
@@ -209,7 +209,7 @@
...
@@ -209,7 +209,7 @@
<td></td>
<td></td>
<td
[
nzIndentSize
]="
item
.
level
*
20
"
nzShowExpand
[
nzExpand
]='
item
.
expand
'
<td
[
nzIndentSize
]="
item
.
level
*
20
"
nzShowExpand
[
nzExpand
]='
item
.
expand
'
(
nzExpandChange
)="
getChildren
(
item
)"
>
(
nzExpandChange
)="
getChildren
(
item
)"
>
<span>
{{item.name}}
<span
style=
"color: #
439d68
; margin-left: 10px"
>
主机数量:{{item.hostcount}}
</span>
</span>
<span>
{{item.name}}
<span
style=
"color: #
1b6b5bcc
; margin-left: 10px"
>
主机数量:{{item.hostcount}}
</span>
</span>
</td>
</td>
</ng-container>
</ng-container>
<!--子集-->
<!--子集-->
...
...
src/main/webapp/app/work/modal/upload/upload.component.ts
View file @
72775e8f
...
@@ -32,7 +32,7 @@ export class UploadComponent implements OnInit {
...
@@ -32,7 +32,7 @@ export class UploadComponent implements OnInit {
beforeUpload
=
(
file
:
UploadFile
):
boolean
=>
{
beforeUpload
=
(
file
:
UploadFile
):
boolean
=>
{
const
isExcel
=
file
.
type
===
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
||
'application/octet-stream'
;
const
isExcel
=
file
.
type
===
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
||
'application/octet-stream'
;
if
(
!
isExcel
)
{
if
(
!
isExcel
)
{
this
.
message
.
error
(
'请上传
excel
文件!'
);
this
.
message
.
error
(
'请上传
正确的
文件!'
);
}
else
{
}
else
{
this
.
fileList
[
0
]
=
file
;
this
.
fileList
[
0
]
=
file
;
}
}
...
...
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