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
0fdd9f98
Commit
0fdd9f98
authored
Jan 02, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
6a2598a2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
alarm-modal.component.html
...n/webapp/app/modal/alarm-modal/alarm-modal.component.html
+3
-3
alarm-modal.component.ts
...ain/webapp/app/modal/alarm-modal/alarm-modal.component.ts
+10
-0
child-assets.component.html
.../work/asset-part/child-assets/child-assets.component.html
+1
-1
No files found.
src/main/webapp/app/modal/alarm-modal/alarm-modal.component.html
View file @
0fdd9f98
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
4
"
nzFor=
"groupIds"
>
告警分组
</nz-form-label>
<nz-form-label
[
nzSpan
]="
4
"
nz
Required
nz
For=
"groupIds"
>
告警分组
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-select
name=
"groupIds"
nzPlaceHolder=
"告警分组"
[(
ngModel
)]="
validateForm
.
alertGroupId
"
>
<nz-select
name=
"groupIds"
nzPlaceHolder=
"告警分组"
[(
ngModel
)]="
validateForm
.
alertGroupId
"
>
<ng-container
*
ngFor=
"let item of groupList;let i = index;"
>
<ng-container
*
ngFor=
"let item of groupList;let i = index;"
>
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
<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"
>
<nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
4
"
nzFor=
"host"
>
监测点状态
</nz-form-label>
<nz-form-label
[
nzSpan
]="
4
"
nz
Required
nz
For=
"host"
>
监测点状态
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-form-control
[
nzSpan
]="
14
"
>
<label
nz-checkbox
[(
ngModel
)]="
validateForm
.
serious
"
>
严重
</label>
<label
nz-checkbox
[(
ngModel
)]="
validateForm
.
serious
"
>
严重
</label>
<label
nz-checkbox
[(
ngModel
)]="
validateForm
.
warn
"
>
告警
</label>
<label
nz-checkbox
[(
ngModel
)]="
validateForm
.
warn
"
>
告警
</label>
...
@@ -204,7 +204,7 @@
...
@@ -204,7 +204,7 @@
<nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
4
"
nzFor=
"def_longdata"
>
发送信息
</nz-form-label>
<nz-form-label
[
nzSpan
]="
4
"
nz
Required
nz
For=
"def_longdata"
>
发送信息
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
<nz-form-control
[
nzSpan
]="
14
"
>
<textarea
nz-input
placeholder=
"发送信息"
[
nzAutosize
]="{
minRows:
2
,
maxRows:
6
}"
[(
ngModel
)]="
validateForm
.
def_longdata
"
></textarea>
<textarea
nz-input
placeholder=
"发送信息"
[
nzAutosize
]="{
minRows:
2
,
maxRows:
6
}"
[(
ngModel
)]="
validateForm
.
def_longdata
"
></textarea>
</nz-form-control>
</nz-form-control>
...
...
src/main/webapp/app/modal/alarm-modal/alarm-modal.component.ts
View file @
0fdd9f98
...
@@ -262,6 +262,16 @@ export class AlarmModalComponent implements OnInit {
...
@@ -262,6 +262,16 @@ export class AlarmModalComponent implements OnInit {
return
false
;
return
false
;
}
}
if
(
!
this
.
validateForm
.
alertGroupId
){
this
.
message
.
error
(
"请选择告警分组"
);
return
false
;
}
if
(
!
this
.
validateForm
.
def_longdata
){
this
.
message
.
error
(
"请输入发送信息"
);
return
false
;
}
let
number
=
true
;
let
number
=
true
;
this
.
sendInfoList
.
map
(
e
=>
{
this
.
sendInfoList
.
map
(
e
=>
{
if
(
!
e
.
mediaType
){
if
(
!
e
.
mediaType
){
...
...
src/main/webapp/app/work/asset-part/child-assets/child-assets.component.html
View file @
0fdd9f98
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
<td>
<td>
{{data.scrapcount}}
{{data.scrapcount}}
</td>
</td>
<td>
关联事件
</td>
<td>
{{data.eventSum}}
</td>
<td
class=
"handle text-center"
>
<td
class=
"handle text-center"
>
<span
(
click
)="
goToDetail
(
data
)"
>
查看
</span>
<span
(
click
)="
goToDetail
(
data
)"
>
查看
</span>
<span
(
click
)="
deleteInVentory
(
data
)"
>
删除
</span>
<span
(
click
)="
deleteInVentory
(
data
)"
>
删除
</span>
...
...
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