diff options
author | 2021-03-12 09:37:57 +0800 | |
---|---|---|
committer | 2021-03-12 09:38:17 +0800 | |
commit | d85c34f8701efd21b2189380afb12ba94e193d9e (patch) | |
tree | 49553c2a293ccbbe6e4c8b463919026e49f9e6c9 /usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-model/slicing-business-model.component.ts | |
parent | 2ddfe6c8f2c8f2d472a1e1756bd3491cb6550149 (diff) |
feat:Add a hint
Signed-off-by: wangyuerg <wangyuerg@chinamobile.com>
Change-Id: I569a0776ccb3e225079b8b62d552c43a2d375288
Issue-ID: USECASEUI-527
Diffstat (limited to 'usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-model/slicing-business-model.component.ts')
-rw-r--r-- | usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-model/slicing-business-model.component.ts | 50 |
1 files changed, 19 insertions, 31 deletions
diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-model/slicing-business-model.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-model/slicing-business-model.component.ts index f48deea6..6d477e4a 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-model/slicing-business-model.component.ts +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-model/slicing-business-model.component.ts @@ -27,49 +27,37 @@ export class SlicingBusinessModelComponent implements OnInit { status: string = ""; businessDetailInfo : any = {} rantext: string = "RAN Network Edge IP address"; - + isshowcore: boolean = false; isshowran: boolean = false; ngOnInit() { this.status = this.outerData.orchestration_status - console.log('status',this.status) this.getDetail() } detailFn(flag,form){ this.rantext = form =='ran'? "RAN Network Edge IP address" : "Core Network Edge IP address"; - this.isshowran = !this.isshowran + if(form =='ran'){ + this.isshowran = !this.isshowran + }else{ + this.isshowcore = !this.isshowcore + } } getDetail() { this.myhttp.getSlicingBusinessDetail(this.businessId).then(res => { this.isSpinning = false; - const { business_demand_info, business_demand_info: { coverage_area_ta_list }, nst_info, nsi_info ,connection_link: { tn_bh_slice_task_info }} = res.result_body; - console.log(JSON.stringify(tn_bh_slice_task_info),11111) - // tn_bh_slice_task_info = {"suggestNssiId":null,"suggestNSSIName":null,"progress":null,"status":null,"statusDescription":null,"scriptName":null,"enableNSSISelection":null,"sliceProfile":null,"lantency":null,"max_bandWidth":null,"link_type":null} + const { business_demand_info, business_demand_info: { coverage_area_ta_list }, nst_info, nsi_info ,connection_link: { an_slice_task_info,cn_slice_task_info,tn_bh_slice_task_info }} = res.result_body; + const connect_info = { + an_ip_adrress: an_slice_task_info.ip_adrress, + an_interface_id: an_slice_task_info.interface_id, + an_nextHop_info: an_slice_task_info.nextHop_info, + cn_interface_id: cn_slice_task_info.interface_id, + cn_ip_adrress: cn_slice_task_info.ip_adrress, + cn_nextHop_info: cn_slice_task_info.nextHop_info, + max_bandWidth: tn_bh_slice_task_info.max_bandWidth, + link_type: tn_bh_slice_task_info.link_type, + lantency: tn_bh_slice_task_info.lantency + } + this.businessDetailInfo = connect_info - this.businessDetailInfo = { - "suggestNssiId": '', - "suggestNSSIName": '11111', - "progress": 'active', - "status": 'active', - "statusDescription": 'p2p/mp2p', - "scriptName": '10.1.1.1', - "enableNSSISelection": '11', - "sliceProfile": '10.1.1.1', - "lantency": '10.2.3.4.5', - "max_bandWidth": '1111', - "link_type": '333' - } - // this.businessDetailInfo = { - // "anVersion":"10.2.3.4.5", - // "vLanText":"11111", - // "tnVersion":"10.0.1.1.1", - // "mbps":"11111", - // "msText":"11111", - // "linkType":"p2p/mp2p", - // "tnEndVersion":"10.1.1.1", - // "cnVlan":"11", - // "cnVersion":"1.1.2.3", - // "orchestration_status":"active" - // } business_demand_info.area = coverage_area_ta_list.map(item => { item = item.split(';').join('-'); return item |