diff options
-rw-r--r-- | docs/release-notes.rst | 2 | ||||
-rw-r--r-- | usecaseui-portal/src/app/views/management/customer/customer.component.ts | 36 |
2 files changed, 20 insertions, 18 deletions
diff --git a/docs/release-notes.rst b/docs/release-notes.rst index 2cc84b1a..232aa687 100644 --- a/docs/release-notes.rst +++ b/docs/release-notes.rst @@ -18,6 +18,8 @@ Version: 3.0.1 **New Features** - 5G network GUI : In F release, we support the whole flow of creating 5G network slicing service. We provide CSMF portal for the network slicing customers and NSMF portal for the network slicing operators. What's more, we enhance the *Monitor* Module for monitoring 5G network slicing. - CCVPN GUI : In F release, UUI supports CCVPN-E-LINE over OTN Inter Domain Links, as well as the Multi-domain multi-layer Optical Service Orchestration. + - Https: In F release, we update the frontend and backend service to https + **Released Components** - usecase-ui 3.0.1 - usecase-ui-server 3.0.1 diff --git a/usecaseui-portal/src/app/views/management/customer/customer.component.ts b/usecaseui-portal/src/app/views/management/customer/customer.component.ts index 20cebccb..b470adf8 100644 --- a/usecaseui-portal/src/app/views/management/customer/customer.component.ts +++ b/usecaseui-portal/src/app/views/management/customer/customer.component.ts @@ -25,7 +25,7 @@ import { Observable } from 'rxjs'; export class CustomerComponent implements OnInit { @ViewChild('chart') chart; @ViewChild('pie') pie; - @ViewChild('notification')notification:any; + @ViewChild('notification') notification: any; public chose = ''; resizeMark; @@ -36,19 +36,19 @@ export class CustomerComponent implements OnInit { ngOnInit() { this.getAllCustomers(); - this.resizeMark = Observable.fromEvent(window,'resize') + this.resizeMark = Observable.fromEvent(window, 'resize') .subscribe((event) => { - this.pie.resize(this.chart.nativeElement.offsetHeight,210) + this.pie.resize(this.chart.nativeElement.offsetHeight, 210) }) } - ngAfterViewInit(){ - this.pie.resize(this.chart.nativeElement.offsetHeight,210) + ngAfterViewInit() { + this.pie.resize(this.chart.nativeElement.offsetHeight, 210) } - ngOnDestroy(){ + ngOnDestroy() { this.resizeMark.unsubscribe() - } + } AllCustomersdata = []; AllServiceTypes = []; @@ -170,7 +170,7 @@ export class CustomerComponent implements OnInit { serviceChart = true; getCustomersPie() { this.managemencs.getCustomersPie().subscribe((data) => { - this.serviceChart =data.serviceTotalNum > 0 ? true : false + this.serviceChart = data.serviceTotalNum > 0 ? true : false this.CUChartData = { series: [{ data: data.customerServiceList @@ -369,17 +369,17 @@ export class CustomerComponent implements OnInit { createNewCustomer(): void { let createParams = { - customerId: this.addNewCustomer, + // customerId: this.addNewCustomer, 'global-customer-id': this.addNewCustomer, 'subscriber-name': this.addNewCustomer, 'subscriber-type': 'INFRA' }; this.managemencs.createCustomer(this.addNewCustomer, createParams).subscribe((data) => { if (data["status"] == 'SUCCESS') { - this.notification.notificationSuccess('Customer','Create',this.addNewCustomer); + this.notification.notificationSuccess('Customer', 'Create', this.addNewCustomer); this.getAllCustomers(); } else { - this.notification.notificationFailed('Customer','Create',this.addNewCustomer); + this.notification.notificationFailed('Customer', 'Create', this.addNewCustomer); } }) } @@ -398,7 +398,7 @@ export class CustomerComponent implements OnInit { } deleteCustomerOk() { this.deleteCustomerModelVisible = false; - this.getCustomerVersion(this.thisdeleteCustomer,); + this.getCustomerVersion(this.thisdeleteCustomer); } getCustomerVersion(thisdeleteCustomer) { this.managemencs.getdeleteCustomerVersion(thisdeleteCustomer).subscribe((data) => { @@ -416,10 +416,10 @@ export class CustomerComponent implements OnInit { deleteCustomer(paramsObj) { this.managemencs.deleteSelectCustomer(paramsObj).subscribe((data) => { if (data["status"] == 'SUCCESS') { - this.notification.notificationSuccess('Customer','delete',this.thisdeleteCustomer.name); + this.notification.notificationSuccess('Customer', 'delete', this.thisdeleteCustomer.name); this.getAllCustomers(); } else { - this.notification.notificationFailed('Customer','delete',this.thisdeleteCustomer.name); + this.notification.notificationFailed('Customer', 'delete', this.thisdeleteCustomer.name); } }) } @@ -433,10 +433,10 @@ export class CustomerComponent implements OnInit { }; this.managemencs.createServiceType(createParams).subscribe((data) => { if (data["status"] == 'SUCCESS') { - this.notification.notificationSuccess('ServiceType','Create',this.addNewServiceType); + this.notification.notificationSuccess('ServiceType', 'Create', this.addNewServiceType); this.getAllCustomers(); } else { - this.notification.notificationFailed('ServiceType','Create',this.addNewServiceType); + this.notification.notificationFailed('ServiceType', 'Create', this.addNewServiceType); } }) } @@ -477,10 +477,10 @@ export class CustomerComponent implements OnInit { deleteServiceType(params) { this.managemencs.deleteSelectServiceType(params).subscribe((data) => { if (data["status"] == 'SUCCESS') { - this.notification.notificationSuccess('ServiceType','delete',this.thisdeleteServiceType["type"]); + this.notification.notificationSuccess('ServiceType', 'delete', this.thisdeleteServiceType["type"]); this.getAllCustomers(); } else { - this.notification.notificationFailed('ServiceType','delete',this.thisdeleteServiceType["type"]); + this.notification.notificationFailed('ServiceType', 'delete', this.thisdeleteServiceType["type"]); } }) } |