Commit 476f114c authored by wangqinghua's avatar wangqinghua

update

parent fdb7ebd7
......@@ -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">
......
......@@ -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;
}
}
)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment