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
476f114c
Commit
476f114c
authored
Jan 14, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
fdb7ebd7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
alarm-modal.component.html
...n/webapp/app/modal/alarm-modal/alarm-modal.component.html
+2
-3
alarm-modal.component.ts
...ain/webapp/app/modal/alarm-modal/alarm-modal.component.ts
+18
-0
No files found.
src/main/webapp/app/modal/alarm-modal/alarm-modal.component.html
View file @
476f114c
...
...
@@ -190,12 +190,12 @@
<nz-form-item
class=
"form-select"
>
<nz-form-control
class=
"form-select"
>
<div
nz-row
[
nzGutter
]="
12
"
>
<nz-form-control
nz-col
[
nzPush
]="
2
"
[
nzSpan
]="
6
"
>
<nz-form-control
nz-col
[
nzPush
]="
4
"
[
nzSpan
]="
6
"
>
<span
class=
"color-red"
>
*
</span><button
nz-button
nzType=
"primary"
nzSize=
"small"
style=
"margin-right: 10px"
(
click
)="
addOption
()"
>
添加发送对象
</button>
</nz-form-control>
</div>
<div
nz-row
[
nzGutter
]="
12
"
*
ngFor=
"let item of sendInfoList;let i = index;"
>
<nz-form-control
nz-col
[
nzSpan
]="
3
"
></nz-form-control>
<nz-form-control
nz-col
[
nzSpan
]="
4
"
></nz-form-control>
<nz-form-control
nz-col
[
nzSpan
]="
3
"
>
<nz-select
name=
"templates"
style=
"width: 100%"
[(
ngModel
)]="
item
.
mediaType
"
nzPlaceHolder=
"选择发送方式"
>
<ng-container
*
ngFor=
"let option of sendOption"
>
...
...
@@ -213,7 +213,6 @@
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
4
"
nzRequired
nzFor=
"def_longdata"
>
发送信息
</nz-form-label>
<nz-form-control
[
nzSpan
]="
14
"
>
...
...
src/main/webapp/app/modal/alarm-modal/alarm-modal.component.ts
View file @
476f114c
...
...
@@ -62,6 +62,7 @@ export class AlarmModalComponent implements OnInit {
//初始化
initForm
()
{
this
.
tabNum
=
0
;
this
.
isEvent
=
"2"
;
this
.
selectTreeList
=
[];
this
.
sendInfoList
=
[];
this
.
operatorList
=
[];
//负责人列表
...
...
@@ -234,6 +235,7 @@ export class AlarmModalComponent implements OnInit {
this
.
alarmSer
.
getAction
(
id
).
subscribe
(
(
res
)
=>
{
this
.
validateForm
=
res
.
data
;
//事件负责人回显
if
(
res
.
data
.
event
){
this
.
isEvent
=
"1"
;
this
.
operatorList
=
res
.
data
.
event
.
operators
.
map
(
e
=>
{
...
...
@@ -244,6 +246,22 @@ export class AlarmModalComponent implements OnInit {
return
d
;
})
}
//发送方式回显
if
(
res
.
data
.
sendInfos
&&
res
.
data
.
sendInfos
.
length
>
0
){
this
.
sendInfoList
=
res
.
data
.
sendInfos
.
map
(
e
=>
{
const
d
=
{
mediaType
:
e
.
mediaType
,
receiver
:
e
.
receiver
};
return
d
;
})
}
//恢复信息
if
(
res
.
data
.
r_longdata
){
this
.
selectModal
=
true
;
}
}
)
}
...
...
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