| | |
| | | <div class="modal-header"> |
| | | <div class="modal-title">{{ data.id != null ? '编辑' : '添加'}} - 组织</div> |
| | | <div class="modal-title">{{ data.id != null ? '编辑' : '添加'}} - 监控站点</div> |
| | | </div> |
| | | <form [formGroup]="validateForm" (ngSubmit)="save($event,validateForm.value,validateForm.valid)" nz-form [nzType]="'horizontal'"> |
| | | <div nz-form-item nz-row class="mb-sm"> |
| | |
| | | <label nz-form-item-required>名称</label> |
| | | </div> |
| | | <div nz-form-control nz-col [nzSpan]="7" nzHasFeedback> |
| | | <nz-input formControlName="name" maxlength="20" [nzPlaceHolder]="'监控点名称'"> |
| | | <nz-input formControlName="name" maxlength="20" [nzPlaceHolder]="'监控站点名称'"> |
| | | </nz-input> |
| | | </div> |
| | | <div nz-form-label nz-col [nzSm]="4" [nzXs]="24"> |
| | |
| | | </div> |
| | | <div nz-form-control nz-col [nzSpan]="6" nzHasFeedback> |
| | | <nz-select formControlName="organizationId" [nzPlaceHolder]="'选择 组织(输入名称搜索)'" |
| | | nzAllowClear [nzFilter]="false" nzShowSearch |
| | | formControlName="organizationId" (nzSearchChange)="OrgSelectChange($event)" [nzNotFoundContent]="'无法找到'" > |
| | | nzAllowClear [nzFilter]="false" nzShowSearch (nzSearchChange)="orgSelectChange($event)" [nzNotFoundContent]="'无法找到'" > |
| | | <nz-option *ngFor="let option of orgOptions" [nzLabel]="option.name" [nzValue]="option.id" [nzDisabled]="option.disabled"> |
| | | </nz-option> |
| | | </nz-select> |
| | |
| | | <label nz-form-item-required>省/市/区</label> |
| | | </div> |
| | | <div nz-form-control nz-col [nzSpan]="7" nzHasFeedback> |
| | | <nz-cascader [class.class123]="true" (nzChange)="setAreaCodes($event)" formControlName="_areas" (nzLoad)="areaLazyLoad($event)" |
| | | <nz-cascader [class.class123]="true" (nzChange)="setAreaCodes($event)" formControlName="_areas" (nzLoad)="areaLazyLoad($event)" [nzChangeOnSelect]="true" |
| | | [nzPlaceHolder]="'选择 省/市/区'" > |
| | | </nz-cascader> |
| | | </div> |
| | |
| | | </div> |
| | | <div nz-form-control nz-col [nzSpan]="5" nzHasFeedback> |
| | | <nz-input-number [ngStyle]="{'width': '100%' }" formControlName="longitude" [nzMin]="-180" [nzMax]="180" [nzStep]="0.000001"> |
| | | </nz-input-number> |
| | | </nz-input-number> |
| | | </div> |
| | | <div nz-form-control nz-col [nzSpan]="2" nzHasFeedback></div> |
| | | <div nz-form-label nz-col [nzSm]="4" [nzXs]="24"> |