diff options
author | 2019-12-02 15:38:13 +0800 | |
---|---|---|
committer | 2019-12-02 15:38:22 +0800 | |
commit | 1bc1fb969373be3e8e12ad9af099eb6d70286c48 (patch) | |
tree | b27032209f0fa1e7929288a5742f2a5587692adc /usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts | |
parent | ebaac93a6ddb4516d711f89b9413fb9a27c8c44d (diff) |
feat: Encapsulates the common parameter dialog components and completes the initial display
Change-Id: I11b6e8f5c21345c7eb7f31c4101f7db424e7a525
Issue-ID: USECASEUI-352
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/subnet-params-model.component.ts')
-rw-r--r-- | usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts | 29 |
1 files changed, 27 insertions, 2 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.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 ec8790ab..1a3a194e 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 } from '../.../../../../../../../../constants/constants' +import { WIRELESS_FORM_ITEMS, TRANSFRER_FORM_ITEMS, CORE_FORM_ITEMS } from '../.../../../../../../../../constants/constants' @Component({ selector: 'app-subnet-params-model', @@ -14,11 +14,36 @@ export class SubnetParamsModelComponent implements OnInit { @Output() cancel = new EventEmitter<boolean>(); transferFormItems = TRANSFRER_FORM_ITEMS; + coreFormItems = CORE_FORM_ITEMS; + wirelessFormItems = WIRELESS_FORM_ITEMS; + areaList: any[] = []; constructor() { } - ngOnInit() { + ngOnInit() { } + ngOnChanges() { + if (this.title === '无线域') { + this.AreaFormatting(); + } + } + + AreaFormatting () { + let areaList = [...this.detailData.an_coverage_area_ta_list]; + this.areaList = areaList.map ( (item: any) => { + let arr = item.split(';'); + item = arr.map( ite => { + let obj: any = {}; + obj.selected = ite + obj.options = [{name: ite, id: ite}] + return obj + }) + return item; + }) + } + + creatAreaList () { + } handleCancel() { |