4d8e54b2deeb114f087a68e214b4e194e60dc9fb
[usecase-ui.git] /
1 <nz-modal [(nzVisible)]="showModel" [nzTitle]="title + '参数'" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOk()" nzWidth="700px">
2     <div class="subnet_params_container">
3         <form nz-form *ngIf="title === '无线域'">
4             <nz-form-item *ngFor="let item of wirelessFormItems">
5                 <nz-form-label  [nzSpan]="5" nzRequired [nzFor]="item.key">{{item.title}}</nz-form-label>
6                 <nz-form-control [nzSpan]="10"  *ngIf="item.key !== 'an_coverage_area_ta_list'">
7                     <input nz-input [(ngModel)]="detailData[item.key]" [name]="item.key" [id]="item.key"/>
8                 </nz-form-control>
9                 <div *ngIf="item.key === 'an_coverage_area_ta_list'">
10                     <div *ngFor="let area of areaList; let i = index">
11                         <nz-form-control [nzSpan]="4" [nzOffset]=" i && !ind ? 5 : 0"  class="subnet_params_area" *ngFor="let item of area; let ind = index">
12                             <nz-select [(ngModel)]="item.selected" [name]="'areaList'+i+'_'+ind"> 
13                                 <nz-option [nzValue]="op.name" *ngFor="let op of item.options" [nzLabel]="op.name" ></nz-option>
14                             </nz-select>
15                         </nz-form-control>
16                         <button nz-button nzType="primary" nzSize="small" *ngIf="!i && !ind" class="subnet_params_button" (click)="creatAreaList()">
17                             <i nz-icon class="anticon anticon-plus subnet_params_icon"></i>
18                         </button>
19                     </div>
20                     
21                 </div>
22             </nz-form-item>
23         </form>
24         <form nz-form *ngIf="title === '传输域'">
25             <nz-form-item *ngFor="let item of transferFormItems">
26                 <nz-form-label  [nzSpan]="7" nzRequired [nzFor]="item.key">{{item.title}}</nz-form-label>
27                 <nz-form-control [nzSpan]="12">
28                     <input nz-input [(ngModel)]="detailData[item.key]" [name]="item.key" [id]="item.key"/>
29                 </nz-form-control>
30             </nz-form-item>
31         </form>
32         <form nz-form *ngIf="title === '核心域'">
33                 <nz-form-item *ngFor="let item of coreFormItems">
34                     <nz-form-label  [nzSpan]="10" nzRequired [nzFor]="item.key">{{item.title}}</nz-form-label>
35                     <nz-form-control [nzSpan]="10">
36                         <input nz-input [(ngModel)]="detailData[item.key]" [name]="item.key" [id]="item.key"/>
37                     </nz-form-control>
38                 </nz-form-item>
39             </form>
40
41     </div>
42 </nz-modal>