From 43e39a785c3871a1b403b04b1085179fb95a00b2 Mon Sep 17 00:00:00 2001 From: cyuamber Date: Fri, 20 Dec 2019 13:25:29 +0800 Subject: feat: Front-end analog address data Change-Id: I753779657d6d9bde485b3b3b65109827ca2a4d46 Issue-ID: USECASEUI-368 Signed-off-by: cyuamber --- .../check-process-model/check-process-model.component.ts | 9 +++++++-- .../slicing-task-model/slicing-task-model.component.ts | 14 +++++++++++--- 2 files changed, 18 insertions(+), 5 deletions(-) (limited to 'usecaseui-portal/src/app/views') diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/check-process-model/check-process-model.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/check-process-model/check-process-model.component.ts index 308c19ba..797165f6 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/check-process-model/check-process-model.component.ts +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/check-process-model/check-process-model.component.ts @@ -61,10 +61,15 @@ export class CheckProcessModelComponent implements OnInit { this.checkDetail = [{ task_id, task_name, create_time, processing_status, service_snssai }]; // 业务需求信息数据 business_demand_info.area = coverage_area_ta_list.map(item => { - item = item.split(';').join('-') + item = item.split(';').join(' - ') return item }) - this.businessRequirement = [business_demand_info]; + // 前端模拟数据 + let area = ["北京;北京市;海淀区", "北京;北京市;西城区", "北京;北京市;昌平区"].map(item => { + item = item.split(';').join(' - ') + return item + }) + this.businessRequirement = [{...business_demand_info, area}]; // 匹配NST信息 this.NSTinfo = [nst_info]; } else { diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/slicing-task-model.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/slicing-task-model.component.ts index 33dec995..4bf55dde 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/slicing-task-model.component.ts +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/slicing-task-model.component.ts @@ -130,10 +130,15 @@ export class SlicingTaskModelComponent implements OnInit { this.checkDetail = [{ task_id, task_name, create_time, processing_status, service_snssai }]; // 业务需求信息数据 business_demand_info.area = coverage_area_ta_list.map(item => { - item = item.split(';').join('-') + item = item.split(';').join(' - ') + return item + }) + // 前端模拟数据 + let areaList = ["北京;北京市;海淀区", "北京;北京市;西城区", "北京;北京市;昌平区"].map(item => { + item = item.split(';').join(' - ') return item }) - this.businessRequirement = [business_demand_info]; + this.businessRequirement = [{...business_demand_info, area: areaList}]; // 匹配NST信息 this.NSTinfo = [nst_info]; // 共享切片实例 @@ -153,7 +158,10 @@ export class SlicingTaskModelComponent implements OnInit { // 子网实例 let subnetData = { an_suggest_nssi_id, an_suggest_nssi_name, tn_suggest_nssi_id, tn_suggest_nssi_name, cn_suggest_nssi_id, cn_suggest_nssi_name}; this.subnetDataFormatting(subnetData, 0); - this.slicingSubnet[0].params = { an_latency, an_5qi, an_coverage_area_ta_list } + // 前端模拟数据 + let area = ["北京;北京市;海淀区", "北京;北京市;西城区", "北京;北京市;昌平区"] + // this.slicingSubnet[0].params = { an_latency, an_5qi, an_coverage_area_ta_list } + this.slicingSubnet[0].params = { an_latency, an_5qi, an_coverage_area_ta_list:area } this.slicingSubnet[1].params = { tn_latency, tn_bandwidth }; this.slicingSubnet[2].params = { cn_service_snssai, -- cgit 1.2.3-korg