From c6b270f19596b513d4a855d40c55ac754b726955 Mon Sep 17 00:00:00 2001 From: cyuamber Date: Tue, 25 Feb 2020 10:50:45 +0800 Subject: feat:Optimize the code of CSMF slicing page Change-Id: I1643dc7522678c66a6baf1e493daf6a3f29a2b57 Issue-ID: USECASEUI-368 Signed-off-by: cyuamber --- .../business-order/business-order.component.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'usecaseui-portal/src/app/views/services/slicing-management/csmf-slicing-business-management/business-order') 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(); -- cgit 1.2.3-korg