diff options
author | guochuyicmri <guochuyi@chinamobile.com> | 2019-05-05 17:58:02 +0800 |
---|---|---|
committer | guochuyicmri <guochuyi@chinamobile.com> | 2019-05-05 17:58:08 +0800 |
commit | de1a4c6aa7a596e45028f67435866152c6f5b496 (patch) | |
tree | d2e6b2ca8d13ddf96191601caae01a71faa136c0 /usecaseui-portal/src/app/services/services-list/services-list.component.ts | |
parent | e1ec8dd3eb366b23f82d6ef3fb2c912da9da8fc9 (diff) |
Service instance lifecycle management
Change-Id: If957774ba3cfaa65493efc7c376d4382d46a16dc
Issue-ID: USECASEUI-218
Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/services/services-list/services-list.component.ts')
-rw-r--r-- | usecaseui-portal/src/app/services/services-list/services-list.component.ts | 48 |
1 files changed, 26 insertions, 22 deletions
diff --git a/usecaseui-portal/src/app/services/services-list/services-list.component.ts b/usecaseui-portal/src/app/services/services-list/services-list.component.ts index 0c5c26a9..38fa7e23 100644 --- a/usecaseui-portal/src/app/services/services-list/services-list.component.ts +++ b/usecaseui-portal/src/app/services/services-list/services-list.component.ts @@ -54,17 +54,23 @@ export class ServicesListComponent implements OnInit { serviceMunber = [ { "serviceDomain": "E2E", - "number": 10, + "Success": 16, + "failed": 4, + "InProgress": 11, "detailName":"End To End service" }, { "serviceDomain": "NS", - "number": 20, + "Success": 21, + "failed": 2, + "InProgress": 17, "detailName":"Network Service" }, { "serviceDomain": "CCVPN", - "number": 40, + "Success": 36, + "failed": 15, + "InProgress": 6, "detailName":"Cross Domain and Cross Layer VPN" } ]; @@ -92,21 +98,17 @@ export class ServicesListComponent implements OnInit { console.log("customerList.length == 0",this.customerList); return false; } - this.customerList2 = data.map((item) => { - return {name: item["subscriber-name"], id: item["global-customer-id"]} - }); - if (this.customerList2.length == 0) { - console.log("customerList2.length == 0", this.customerList2); - return false; - } - this.customerSelected = this.customerList[0]; - this.customerSelected2 = this.customerList2[0]; - this.choseCustomer(this.customerSelected); - this.getServiceType(this.customerSelected2); - - // console.log(this.customers) - }) - } + this.customerList2 = data.map((item) => { + return {name: item["subscriber-name"], id: item["global-customer-id"]} + }); + if (this.customerList2.length == 0) { + console.log("customerList2.length == 0", this.customerList2); + return false; + } + this.customerSelected = this.customerList[0]; + this.choseCustomer(this.customerSelected); + }) + } getallOrchestrators(){ this.myhttp.getAllOrchestrators() @@ -160,16 +162,18 @@ export class ServicesListComponent implements OnInit { console.log("serviceTypeList.length == 0", this.serviceTypeList2); return false; } - this.serviceTypeSelected2 = this.serviceTypeList2[0]; + this.serviceTypeSelected2 = this.serviceTypeSelected; this.serviceTypeSelectedName = this.serviceTypeSelected2.name; - console.log(this.serviceTypeList2); + console.log(this.customerSelected2); + console.log(this.serviceTypeSelected2); this.getAlltemplates(); }) } createModal(): void { this.isVisible = true; - this.getallOrchestrators(); - + this.getallOrchestrators(); + this.customerSelected2 = this.customerSelected; + this.getServiceType(this.customerSelected2); } // |