diff options
author | xu ran <xuranyjy@chinamobile.com> | 2021-03-17 07:16:55 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-03-17 07:16:55 +0000 |
commit | 7832aa34160fdc816fb822f423ab11b6de716492 (patch) | |
tree | c29e4e556d8b2ada66b84aeaa31fe51f08c06a79 /usecaseui-portal | |
parent | 820d9dc0e17e9c59580abc198727e9a988172e3a (diff) | |
parent | 194ec0c04c4e4218969546350ebf8eeb51bd02a0 (diff) |
Merge "feat:Fix bug"
Diffstat (limited to 'usecaseui-portal')
2 files changed, 22 insertions, 7 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 693d6487..635877ce 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 @@ -101,9 +101,8 @@ export class BusinessOrderComponent implements OnInit { handleOk(): void { const coverage_list: string[] = []; let coverageAreas; - COMMUNICATION_FORM_ITEMS.forEach((item, index) => { - if (item.required && item.type === "input") { + if (item.required && item.type === "input" ) { this.Util.validator( item.title, item.key, @@ -117,14 +116,26 @@ export class BusinessOrderComponent implements OnInit { if (this.validateRulesShow.indexOf(true) > -1) { return; } - - this.areaList.forEach((item) => { + for(var i=0;i<this.areaList.length;i++){ + const _item = this.areaList[i] let str = ""; - item.forEach((area) => { + 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)); + // }); if (coverage_list.length > 1) { coverageAreas = coverage_list.join("|"); } else { @@ -138,6 +149,7 @@ 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 = { @@ -146,6 +158,7 @@ export class BusinessOrderComponent implements OnInit { const csmfSlicingPurchaseFailedCallback = () => { this.handleCancel(); }; + this.myhttp .csmfSlicingPurchase(paramsObj, csmfSlicingPurchaseFailedCallback) .then((res) => { diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-model/slicing-business-model.component.less b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-model/slicing-business-model.component.less index 687cd8f9..b577fd9e 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-model/slicing-business-model.component.less +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-resource-management/slicing-business-management/slicing-business-model/slicing-business-model.component.less @@ -77,6 +77,7 @@ a{ } .ran_text{ width: 200px; + padding:0 6px; height:auto; background: rgba(0, 0, 0, .8); line-height: 40px; @@ -106,6 +107,7 @@ a{ } .cor_text{ width: 200px; + padding:0 6px; height:auto; background: rgba(0, 0, 0, .8); line-height: 40px; |