diff options
author | cyuamber <xuranyjy@chinamobile.com> | 2020-11-13 08:40:32 +0800 |
---|---|---|
committer | cyuamber <xuranyjy@chinamobile.com> | 2020-11-13 08:40:43 +0800 |
commit | d912f9b4921ef21e92e7b8c12263c7b13958a8bf (patch) | |
tree | 57ddce54bdf365609320d1b406c1c42982158ade /usecaseui-portal | |
parent | 4ff4da8bc12735ebcd404588fc56ba0144365c05 (diff) |
fix: Repair the fault-tolerant processing of front-end interface data
Change-Id: I585b9a3c9f44a36181e60d3bf0064f6c054fbff9
Issue-ID: USECASEUI-444
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal')
2 files changed, 16 insertions, 8 deletions
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 843cf512..75759abb 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 @@ -58,10 +58,14 @@ 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(' - ') - return item - }) + if(coverage_area_ta_list !== null){ + business_demand_info.area = coverage_area_ta_list.map(item => { + item = item.split(';').join(' - ') + return item + }) + }else{ + business_demand_info.area = [] + } // 前端模拟数据 let area = ["Beijing;Beijing;Haidian District", "Beijing;Beijing;Xicheng District", "Beijing;Beijing;Changping District"].map(item => { item = item.split(';').join(' - ') 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 4e80de03..e902cda3 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 @@ -115,10 +115,14 @@ export class SlicingTaskModelComponent implements OnInit { // 处理配置审核详情数据 this.checkDetail = [{...checkInfo, 'service_snssai': business_demand_info.service_snssai}]; // 业务需求信息数据 - business_demand_info.area = business_demand_info.coverage_area_ta_list.map(item => { - item = item.split(';').join(' - ') - return item - }) + if(business_demand_info.coverage_area_ta_list !== null){ + business_demand_info.area = business_demand_info.coverage_area_ta_list.map(item => { + item = item.split(';').join(' - ') + return item + }) + }else{ + business_demand_info.area = [] + } // 前端模拟数据 let areaList = ["Haidian District;Beijing;Beijing", "Xicheng District;Beijing;Beijing", "Changping District;Beijing;Beijing"].map(item => { item = item.split(';').join(' - ') |