summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/views
diff options
context:
space:
mode:
authorwangyuerg <wangyuerg@chinamobile.com>2021-03-17 16:51:32 +0800
committerwangyuerg <wangyuerg@chinamobile.com>2021-03-17 16:51:50 +0800
commit0c46f110575a64ccf9807ceeecbcaf9fe221e238 (patch)
tree23564bb024c5139f181f77019cabd40fcea25228 /usecaseui-portal/src/app/views
parent194ec0c04c4e4218969546350ebf8eeb51bd02a0 (diff)
feat:Modify grammar
Signed-off-by: wangyuerg <wangyuerg@chinamobile.com> Change-Id: I9dac0324789af5c6ccbe6fca17b6533b82df15ac Issue-ID: USECASEUI-527
Diffstat (limited to 'usecaseui-portal/src/app/views')
-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 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<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 {
@@ -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 = {