diff options
-rw-r--r-- | usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts | 34 |
1 files changed, 13 insertions, 21 deletions
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 635877ce..6409f008 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 @@ -116,26 +116,19 @@ export class BusinessOrderComponent implements OnInit { if (this.validateRulesShow.indexOf(true) > -1) { return; } - for(var i=0;i<this.areaList.length;i++){ - const _item = this.areaList[i] - let str = ""; - for(var j=0;j<_item.length;j++){ - const area = _item[j] - str += area.selected + ";"; - if(!area.selected){ - this.message.error("Please Area the form"); - return; - } - } - coverage_list.push(str.substring(0, str.length - 1)); - } - // this.areaList.forEach((item) => { - // 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 { @@ -149,7 +142,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 = { |