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
91f02d33
Commit
91f02d33
authored
Jan 11, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
a8f602b7
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
65 additions
and
37 deletions
+65
-37
send-set.component.html
src/main/webapp/app/alarm/send-set/send-set.component.html
+1
-1
alarm-modal.component.html
...n/webapp/app/modal/alarm-modal/alarm-modal.component.html
+28
-26
alarm-modal.component.ts
...ain/webapp/app/modal/alarm-modal/alarm-modal.component.ts
+12
-1
basic-detail.component.html
...pp/overAll/basic/basic-detail/basic-detail.component.html
+3
-3
basic-detail.component.ts
.../app/overAll/basic/basic-detail/basic-detail.component.ts
+15
-1
basic.component.html
src/main/webapp/app/overAll/basic/basic.component.html
+1
-1
network-check.component.html
...pp/app/overAll/network-check/network-check.component.html
+1
-1
discovery-list.component.ts
...erAll/template/discovery-list/discovery-list.component.ts
+2
-1
user.component.html
src/main/webapp/app/system/modal/user/user.component.html
+1
-1
user.component.ts
src/main/webapp/app/system/modal/user/user.component.ts
+1
-1
No files found.
src/main/webapp/app/alarm/send-set/send-set.component.html
View file @
91f02d33
...
...
@@ -26,7 +26,7 @@
<tr>
<th
nzShowSort
>
名称
</th>
<th>
类型
</th>
<th>
用于告警
中
</th>
<th>
用于告警
推送
</th>
<th>
状态
</th>
<th
nzWidth=
"15%"
>
细节
</th>
<th
style=
"text-align: center"
>
操作
</th>
...
...
src/main/webapp/app/modal/alarm-modal/alarm-modal.component.html
View file @
91f02d33
...
...
@@ -142,40 +142,42 @@
<nz-form-item>
<nz-form-label
[
nzSpan
]="
4
"
nzFor=
"serviceid"
>
生成事件
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-radio-group>
<nz-radio-group
[(
ngModel
)]="
isEvent
"
>
<label
nz-radio
nzValue=
"1"
>
是
</label>
<label
nz-radio
nzValue=
"2"
>
否
</label>
</nz-radio-group>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
4
"
nzFor=
"serviceid"
>
事件分类
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-select
name=
"serviceid"
nzPlaceHolder=
"事件分类"
[(
ngModel
)]="
validateForm
.
event
.
eventTypeId
"
>
<ng-container
*
ngFor=
"let item of eventTypeList"
>
<nz-option
[
nzLabel
]="
item
.
name
"
[
nzValue
]="
item
.
id
"
></nz-option>
</ng-container>
</nz-select>
</nz-form-control>
</nz-form-item>
<ng-container
*
ngIf=
"isEvent == '1'"
>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
4
"
nzFor=
"serviceid"
>
事件分类
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-select
name=
"serviceid"
nzPlaceHolder=
"事件分类"
[(
ngModel
)]="
validateForm
.
event
.
eventTypeId
"
>
<ng-container
*
ngFor=
"let item of eventTypeList"
>
<nz-option
[
nzLabel
]="
item
.
name
"
[
nzValue
]="
item
.
id
"
></nz-option>
</ng-container>
</nz-select>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
4
"
nzFor=
"serviceid"
>
事件负责人
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<button
(
click
)="
selectPerson
()"
nz-button
><span>
选择
</span></button>
<ng-container
*
ngFor=
"let item of operatorList;let i = index;"
>
<span>
{{item.username}}
</span><span
(
click
)="
delete
(
i
)"
>
X
</span>
</ng-container>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
4
"
nzFor=
"serviceid"
>
事件负责人
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<button
(
click
)="
selectPerson
()"
nz-button
><span>
选择
</span></button>
<ng-container
*
ngFor=
"let item of operatorList;let i = index;"
>
<span
style=
"margin-left: 10px"
>
{{item.username}}
</span><span
class=
"main-color"
style=
"margin-left: 5px"
(
click
)="
deleteOperator
(
i
)"
>
X
</span>
</ng-container>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
4
"
nzRequired
nzFor=
"serviceid"
>
详细描述
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<textarea
nz-input
nzPlaceholder=
"事件描述"
[
nzAutosize
]="{
minRows:
4
,
maxRows:
4
}"
[(
ngModel
)]="
validateForm
.
event
.
description
"
></textarea>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
4
"
nzRequired
nzFor=
"serviceid"
>
详细描述
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<textarea
nz-input
nzPlaceholder=
"事件描述"
[
nzAutosize
]="{
minRows:
4
,
maxRows:
4
}"
[(
ngModel
)]="
validateForm
.
event
.
description
"
></textarea>
</nz-form-control>
</nz-form-item>
</ng-container>
</div>
<div
class=
"modal-footer-btn"
>
<button
nz-button
(
click
)="
handleEditCancel
()"
nzType=
"primary"
>
取消
</button>
...
...
src/main/webapp/app/modal/alarm-modal/alarm-modal.component.ts
View file @
91f02d33
...
...
@@ -32,6 +32,7 @@ export class AlarmModalComponent implements OnInit {
nodes
;
nodeList
;
actionid
;
//告警Id
isEvent
=
"2"
;
groupList
;
sendOption
=
[];
...
...
@@ -62,13 +63,19 @@ export class AlarmModalComponent implements OnInit {
initForm
()
{
this
.
tabNum
=
0
;
this
.
selectTreeList
=
[];
this
.
sendInfoList
=
[];
this
.
operatorList
=
[];
//负责人列表
this
.
validateForm
=
{
name
:
null
,
alertGroupId
:
null
,
warn
:
0
,
serious
:
0
,
mediaTypeIds
:[],
def_longdata
:
null
,
def_longdata
:
"问题 {TRIGGER.NAME} 开始于: {EVENT.TIME} {EVENT.DATE}
\
n"
+
"主机: {HOST.NAME}
\
n"
+
"严重程度: {TRIGGER.SEVERITY}
\
n"
+
"
\
n"
+
"原始问题ID: {EVENT.ID}"
,
r_longdata
:
''
+
'问题 {TRIGGER.NAME} 恢复于: {EVENT.TIME} {EVENT.DATE}
\
n'
+
'主机: {HOST.NAME}
\
n'
+
...
...
@@ -261,6 +268,10 @@ export class AlarmModalComponent implements OnInit {
this
.
operatorList
=
arr
;
}
deleteOperator
(
index
){
this
.
operatorList
.
splice
(
index
,
1
);
}
//保存
handEditleOk
()
{
...
...
src/main/webapp/app/overAll/basic/basic-detail/basic-detail.component.html
View file @
91f02d33
...
...
@@ -104,12 +104,12 @@
<nz-collapse>
<nz-collapse-panel
[
nzHeader
]="
panel3
.
name
"
[
nzActive
]="
panel3
.
active
"
[
nzDisabled
]="
panel3
.
disabled
"
>
<div
nz-col
nzSpan=
"
16
"
>
<div
nz-col
nzSpan=
"
20
"
>
<div
echarts
[
options
]="
secondOptionLeft
"
class=
"demo-chart"
></div>
</div>
<
div
nz-col
nzSpan=
"8"
>
<
!--<div nz-col nzSpan="8">--
>
<!--<div echarts [options]="secondOptionRight" class="demo-chart"></div>-->
<
/div
>
<
!--</div>--
>
</nz-collapse-panel>
</nz-collapse>
</div>
...
...
src/main/webapp/app/overAll/basic/basic-detail/basic-detail.component.ts
View file @
91f02d33
...
...
@@ -445,6 +445,12 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
this
.
secondOptionLeft
=
{
grid
:
{
left
:
'8%'
,
right
:
'0'
,
bottom
:
'1%'
,
containLabel
:
true
},
tooltip
:
{
trigger
:
'axis'
,
},
...
...
@@ -453,6 +459,14 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
show
:
false
,
},
yAxis
:
{
axisLabel
:{
interval
:
0
,
margin
:
95
,
textStyle
:
{
align
:
'left'
,
baseline
:
'middle'
}
},
type
:
'category'
,
axisTick
:
{
show
:
false
...
...
@@ -467,7 +481,7 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
data
:
res
.
data
.
disks
.
map
((
item
)
=>
{
const
line
=
item
.
name
.
split
(
'/'
);
return
'/'
+
line
[
line
.
length
-
1
];
})
})
,
},
color
:
[
'#ed7a7b'
,
'#f2f2f2'
],
series
:
[
...
...
src/main/webapp/app/overAll/basic/basic.component.html
View file @
91f02d33
...
...
@@ -100,7 +100,7 @@
<ng-container
*
ngIf=
"item.level"
>
<td
nzShowCheckbox
[
nzIndeterminate
]="
indeterminate
"
(
nzCheckedChange
)="
selectChecked
($
event
,
item
)"
[(
nzChecked
)]="
item
.
checked
"
></td>
<td
class=
"cursor"
[
nzIndentSize
]="
item
.
level
*
20
"
>
<td
class=
"cursor
main-color
"
[
nzIndentSize
]="
item
.
level
*
20
"
>
<span
(
click
)="
goDetail
(
item
)"
>
{{item.name}}
</span>
</td>
</ng-container>
...
...
src/main/webapp/app/overAll/network-check/network-check.component.html
View file @
91f02d33
...
...
@@ -81,7 +81,7 @@
<ng-container
*
ngFor=
"let item of dataSet"
>
<tr>
<td
nzShowCheckbox
(
nzCheckedChange
)="
selectChecked
($
event
,
item
)"
></td>
<td
class=
"cursor"
>
<td
class=
"cursor
main-color
"
>
<span
(
click
)="
goDetail
(
item
)"
>
{{item.name}}
</span>
</td>
<td>
...
...
src/main/webapp/app/overAll/template/discovery-list/discovery-list.component.ts
View file @
91f02d33
...
...
@@ -100,7 +100,8 @@ export class DiscoveryListComponent implements OnInit {
goToCheck
(
data
){
this
.
router
.
navigate
([
'app/main/checkList'
],{
queryParams
:{
id
:
data
.
itemid
,
hostId
:
this
.
templateid
,
discoveryids
:
data
.
itemid
,
name
:
data
.
name
,
tempName
:
this
.
tempName
}
...
...
src/main/webapp/app/system/modal/user/user.component.html
View file @
91f02d33
...
...
@@ -4,7 +4,7 @@
<nz-form-label
[
nzSm
]="
6
"
[
nzXs
]="
24
"
nzRequired
nzFor=
"name"
>
用户姓名
</nz-form-label>
<nz-form-control
[
nzSm
]="
14
"
[
nzXs
]="
24
"
>
<input
nz-input
formControlName=
"name"
id=
"userName"
>
<nz-form-explain
*
ngIf=
"validateForm.get('name').dirty && validateForm.get('name').errors"
>
用户姓名
不能为空
!
</nz-form-explain>
<nz-form-explain
*
ngIf=
"validateForm.get('name').dirty && validateForm.get('name').errors"
>
用户姓名
为6到16个字符
!
</nz-form-explain>
</nz-form-control>
</nz-form-item>
<nz-form-item>
...
...
src/main/webapp/app/system/modal/user/user.component.ts
View file @
91f02d33
...
...
@@ -33,7 +33,7 @@ export class UserComponent implements OnInit {
initForm
(){
this
.
validateForm
=
this
.
fb
.
group
({
name
:[
null
,[
Validators
.
required
,
Validators
.
m
axLength
(
10
)]],
name
:[
null
,[
Validators
.
required
,
Validators
.
m
inLength
(
6
),
Validators
.
maxLength
(
16
)]],
phoneNumber
:[
null
,[
Validators
.
required
,
Validators
.
minLength
(
11
),
Validators
.
maxLength
(
11
)]],
gender
:[
null
,[
Validators
.
required
]],
email
:[
null
,],
...
...
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