diff options
author | 2020-08-27 12:22:31 +0800 | |
---|---|---|
committer | 2020-08-27 12:22:53 +0800 | |
commit | 3e5274bb7d0e5c9abf5aed9a6e6d82a28da5ec7e (patch) | |
tree | 08951e384a23980bd480e3a183124afbf18a5a05 /usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model | |
parent | e24d9ece44459166d1f77e0f582e2122512b6ff2 (diff) |
feat: Modify the parameters of an/cn 5Gslicing tast
Change-Id: I42b8457276e2f22269a8d044d63e6d3cd42619ba
Issue-ID: USECASEUI-442
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model')
2 files changed, 4 insertions, 37 deletions
diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.html b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.html index 990e5638..552523c0 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.html +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.html @@ -1,39 +1,6 @@ <nz-modal [(nzVisible)]="showModel" [nzTitle]="title + 'Parameter'" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOk()" nzWidth="700px"> <div class="subnet_params_container"> - <!--<form nz-form *ngIf="title === 'An'">--> - <!--<nz-form-item *ngFor="let item of wirelessFormItems">--> - <!--<nz-form-label [nzSpan]="6" nzRequired [nzFor]="item.key">--> - <!--{{ item.title }}--> - <!--</nz-form-label>--> - <!--<nz-form-control [nzSpan]="10" *ngIf="item.key !== 'an_coverage_area_ta_list'">--> - <!--<input nz-input [(ngModel)]="detailData[item.key]" [name]="item.key" [id]="item.key" />--> - <!--</nz-form-control>--> - <!--<div *ngIf="item.key === 'an_coverage_area_ta_list'">--> - <!--<div *ngFor="let area of areaList; let i = index">--> - <!--<nz-form-control [nzSpan]="!ind ? 4 : 5" [nzOffset]="i && !ind ? 6 : 0" class="subnet_params_area"--> - <!--*ngFor="let item of area; let ind = index">--> - <!--<nz-select [(ngModel)]="item.selected" [name]="'area' + i + ind"--> - <!--(nzOpenChange)="handleChange(area, item)"--> - <!--(ngModelChange)=" handleChangeSelected(area, item) ">--> - <!--<nz-option [nzValue]="op.name" [nzLabel]="op.name" *ngFor="let op of item.options">--> - <!--</nz-option>--> - <!--</nz-select>--> - <!--</nz-form-control>--> - <!--<nz-form-control [nzSpan]="1" [nzOffset]="1">--> - <!--<button nz-button nzType="primary" nzSize="small" class="subnet_params_button" *ngIf="!i"--> - <!--(click)="creatAreaList()">--> - <!--<i nz-icon class="anticon anticon-plus subnet_params_icon"></i>--> - <!--</button>--> - <!--<button nz-button nzType="primary" nzSize="small" class="subnet_params_button" *ngIf="i"--> - <!--(click)="deleteAreaList(i)">--> - <!--<i nz-icon class="anticon anticon-minus subnet_params_icon"></i>--> - <!--</button>--> - <!--</nz-form-control>--> - <!--</div>--> - <!--</div>--> - <!--</nz-form-item>--> - <!--</form>--> <form nz-form *ngIf="title === 'Tn'"> <nz-form-item *ngFor="let item of transferFormItems"> <nz-form-label [nzSpan]="7" nzRequired [nzFor]="item.key"> @@ -52,7 +19,7 @@ </form> <form nz-form *ngIf="title === 'An' || title === 'Cn'"> <nz-form-item *ngFor="let item of coreFormItems"> - <nz-form-label [nzSpan]="(item.key === 'an_coverage_area_ta_list' && title === 'An')?7:13" nzRequired *ngIf="!(item.key === 'an_coverage_area_ta_list' && title === 'Cn')"> + <nz-form-label [nzSpan]="(item.key === 'an_coverage_area_ta_list' && title === 'An')?7:13" nzRequired> {{ item.title }} </nz-form-label> <nz-form-control [nzSpan]="8" *ngIf="item.key !== 'an_coverage_area_ta_list'"> diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts index a0b5df21..d279d037 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts @@ -1,5 +1,5 @@ import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core'; -import { WIRELESS_FORM_ITEMS, TRANSFRER_FORM_ITEMS, CORE_FORM_ITEMS, ADDRESS } from '@src/constants/constants' +import { TRANSFRER_FORM_ITEMS, CORE_FORM_ITEMS, ADDRESS } from '@src/constants/constants' @Component({ selector: 'app-subnet-params-model', @@ -15,8 +15,7 @@ export class SubnetParamsModelComponent implements OnInit { @Output() paramsDataChange = new EventEmitter<any>(); transferFormItems = TRANSFRER_FORM_ITEMS; - coreFormItems = CORE_FORM_ITEMS; - wirelessFormItems = WIRELESS_FORM_ITEMS; + coreFormItems :object ={}; areaList: any[] = []; constructor() { } @@ -24,6 +23,7 @@ export class SubnetParamsModelComponent implements OnInit { ngOnInit() { } ngOnChanges() { + this.coreFormItems = this.title === 'An'?CORE_FORM_ITEMS.An:CORE_FORM_ITEMS.Cn; if (this.title === 'An') { this.AreaFormatting(); } |