From 0c46f110575a64ccf9807ceeecbcaf9fe221e238 Mon Sep 17 00:00:00 2001 From: wangyuerg Date: Wed, 17 Mar 2021 16:51:32 +0800 Subject: feat:Modify grammar Signed-off-by: wangyuerg Change-Id: I9dac0324789af5c6ccbe6fca17b6533b82df15ac Issue-ID: USECASEUI-527 --- .../business-order/business-order.component.ts | 34 +++++++++------------- 1 file changed, 13 insertions(+), 21 deletions(-) (limited to 'usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order') diff --git a/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts index f6372031..78d7195e 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts +++ b/usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts @@ -108,26 +108,19 @@ export class BusinessOrderComponent implements OnInit { if (this.validateRulesShow.indexOf(true) > -1) { return; } - for(var i=0;i { - // let str = ""; - // item.forEach((area) => { - // str += area.selected + ";"; - // }); - // coverage_list.push(str.substring(0, str.length - 1)); - // }); + for(const key in this.areaList){ + const value = this.areaList[key] + let str = ""; + for(const val of value){ + const area = val + str += area.selected + ";"; + if(!area.selected){ + this.message.error("Please complete the form"); + return; + } + } + coverage_list.push(str.substring(0, str.length - 1)); + } if (coverage_list.length > 1) { coverageAreas = coverage_list.join("|"); } else { @@ -141,7 +134,6 @@ export class BusinessOrderComponent implements OnInit { } else { this.slicing_order_info.coverageArea = `${coverageAreas}`; } - console.log('jjjjkkk',this.slicing_order_info.coverageArea) delete this.slicing_order_info.coverageAreaNumber; const paramsObj = { -- cgit 1.2.3-korg