diff options
author | 2020-02-25 10:50:45 +0800 | |
---|---|---|
committer | 2020-02-25 10:50:51 +0800 | |
commit | c6b270f19596b513d4a855d40c55ac754b726955 (patch) | |
tree | 7046cd6c7bc157c9135cb15b5636c3943c457bcb /usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order | |
parent | ddb1fd59f02c706a4eac5450ede97c996110a494 (diff) |
feat:Optimize the code of CSMF slicing page
Change-Id: I1643dc7522678c66a6baf1e493daf6a3f29a2b57
Issue-ID: USECASEUI-368
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order')
-rw-r--r-- | usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order/business-order.component.ts | 10 |
1 files changed, 5 insertions, 5 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 5320a064..99cbde98 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 @@ -48,7 +48,7 @@ export class BusinessOrderComponent implements OnInit { let areaList = ['Beijing;Beijing;Haidian District;Wanshoulu Street']; this.areaList = areaList.map((item: any) => { let arr = item.split(';'); - item = arr.map((ite, index) => { + item = arr.map((it, index) => { let key: string; if (!index) { key = 'province'; @@ -61,8 +61,8 @@ export class BusinessOrderComponent implements OnInit { } const obj: any = {}; obj.key = key; - obj.selected = ite; - obj.options = [{name: ite, id: ite}] + obj.selected = it; + obj.options = [{name: it, id: it}] return obj }) return item; @@ -156,7 +156,7 @@ export class BusinessOrderComponent implements OnInit { }; } - changeTooltipText(title): void { + changeTooltipText(title: string): void { if (title === 'Max Number of UEs') { this.tooltipText = 'Scope: 1-100000' } else if (title === 'Data Rate Downlink (Mbps)' || title === 'Data Rate Uplink (Mbps)') { @@ -196,7 +196,7 @@ export class BusinessOrderComponent implements OnInit { console.log(paramsObj, "-----paramsObj"); this.isSpinning = true; this.myhttp.csmfSlicingPurchase(paramsObj).subscribe(res => { - const {result_header: {result_code, result_message}, result_body: {service_id, operation_id}} = res; + const {result_header: {result_code}} = res; if (+result_code === 200) { this.isSpinning = false; this.handleCancel(); |