Commit 15fe5653 authored by wangqinghua's avatar wangqinghua
parents d605ece0 4a7ec3b5
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
<nz-form-item> <nz-form-item>
<nz-form-label [nzSpan]="6" nzFor="itemtype">监测点分类</nz-form-label> <nz-form-label [nzSpan]="6" nzFor="itemtype">监测点分类</nz-form-label>
<nz-form-control [nzSpan]="14"> <nz-form-control [nzSpan]="14">
<nz-select style="width: 80%;display: inline-block" nzPlaceHolder="选择监测点分类" name="itemtype" [nzSize]="nzSize" nzMode="tags" formControlName="applicationids"> <nz-select style="width: 80%;display: inline-block" nzPlaceHolder="选择监测点分类" name="itemtype" [nzSize]="nzSize" nzMode="tags" formControlName="applications">
<nz-option *ngFor="let item of checkList" nzValue="{{item.applicationid}}" <nz-option *ngFor="let item of checkList" nzValue="{{item.applicationid}}"
nzLabel="{{item.name}}"></nz-option> nzLabel="{{item.name}}"></nz-option>
</nz-select> </nz-select>
......
...@@ -86,7 +86,7 @@ export class BasiCheckComponent implements OnInit { ...@@ -86,7 +86,7 @@ export class BasiCheckComponent implements OnInit {
delay: [null, [Validators.required]], delay: [null, [Validators.required]],
snmp_oid: [null], snmp_oid: [null],
snmp_community: ['public'], snmp_community: ['public'],
applicationids: [null], applications: [null],
}); });
this.triggerObj = { this.triggerObj = {
condition: '', condition: '',
...@@ -222,7 +222,7 @@ export class BasiCheckComponent implements OnInit { ...@@ -222,7 +222,7 @@ export class BasiCheckComponent implements OnInit {
this.message.error('请输入必填信息'); this.message.error('请输入必填信息');
return false; return false;
} }
this.validateForm.value.applicationids = [this.validateForm.value.applicationids]; this.validateForm.value.applications = [this.validateForm.value.applications];
this.validateForm.value.hostid = this.hostId; this.validateForm.value.hostid = this.hostId;
if (this.title == '添加监测点') { if (this.title == '添加监测点') {
this.create(); this.create();
......
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