summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/views/services
diff options
context:
space:
mode:
authorxu ran <xuranyjy@chinamobile.com>2021-03-17 09:27:22 +0000
committerGerrit Code Review <gerrit@onap.org>2021-03-17 09:27:22 +0000
commitae329058b29ef8e4cb6ed0132f7e949a5269a51f (patch)
treedaa9f5859dd4f6de22eb8d631e8c4507b79955b4 /usecaseui-portal/src/app/views/services
parent7832aa34160fdc816fb822f423ab11b6de716492 (diff)
parent0c46f110575a64ccf9807ceeecbcaf9fe221e238 (diff)
Merge "feat:Modify grammar"
Diffstat (limited to 'usecaseui-portal/src/app/views/services')
-rw-r--r--usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts34
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 = {