diff options
author | cyuamber <xuranyjy@chinamobile.com> | 2019-12-17 10:12:04 +0800 |
---|---|---|
committer | cyuamber <xuranyjy@chinamobile.com> | 2019-12-17 10:12:07 +0800 |
commit | 08eb62822a3dc98a20dd504a9780370d1024b5f6 (patch) | |
tree | f669e53638a1af55d64acf7d1ce7a6d98380d799 /usecaseui-portal/src/app/views | |
parent | d62d925c8fe7f27ba897d7ab6d92b197f9668eec (diff) |
fix:Fixed instance creation interface call bug and popup bug
Change-Id: I946b34533a7467fa0f0b83a68c3515e8bcf1f7b7
Issue-ID: USECASEUI-370
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/views')
-rw-r--r-- | usecaseui-portal/src/app/views/services/services-list/services-list.component.html | 14 | ||||
-rw-r--r-- | usecaseui-portal/src/app/views/services/services-list/services-list.component.ts | 15 |
2 files changed, 13 insertions, 16 deletions
diff --git a/usecaseui-portal/src/app/views/services/services-list/services-list.component.html b/usecaseui-portal/src/app/views/services/services-list/services-list.component.html index 216e92df..9bbd7455 100644 --- a/usecaseui-portal/src/app/views/services/services-list/services-list.component.html +++ b/usecaseui-portal/src/app/views/services/services-list/services-list.component.html @@ -205,16 +205,16 @@ <img src="assets/images/execute-inproess.png" alt="instance temination is starting"> </span> <div class="ant-notification-notice-message" - *ngIf="thisCreateService['serviceDomain'] === 'CCVPN' || thisService['serviceDomain'] === 'SOTN'"> - {{ thisService['serviceDomain'] }} {{"i18nTextDefine_InstanceCreationStarting" | + *ngIf="createData['commonParams']['templateType'] === 'CCVPN' || thisService['serviceDomain'] === 'SOTN'"> + {{ createData['commonParams']['templateType'] }} {{"i18nTextDefine_InstanceCreationStarting" | translate}} </div> <div class="ant-notification-notice-message" - *ngIf="thisCreateService['serviceDomain'] == 'E2E Service'">E2E + *ngIf="createData['commonParams']['templateType'] == 'E2E Service'">E2E {{"i18nTextDefine_InstanceCreationStarting" | translate}} </div> <div class="ant-notification-notice-message" - *ngIf="thisCreateService['serviceDomain'] == 'Network Service'">NS + *ngIf="createData['commonParams']['templateType'] == 'Network Service'">NS {{"i18nTextDefine_InstanceCreationStarting" | translate}} </div> <div class="ant-notification-notice-description"> @@ -225,11 +225,11 @@ </div> <div class="notificationlist"> <p> {{"i18nTextDefine_Customer" | translate}} :</p> - <span>{{ customerSelected2.name }}</span> + <span>{{ createData['commonParams']['customer'].name }}</span> </div> <div class="notificationlist"> <p> {{"i18nTextDefine_UseCase" | translate}} :</p> - <span>{{ thisCreateService['serviceDomain'] }}</span> + <span>{{ createData['commonParams']['templateType'] }}</span> </div> </div> <div class="close-icons">{{"i18nTextDefine_Close" | translate}}</div> @@ -280,7 +280,7 @@ </div> <div class="notificationlist"> <p> {{"i18nTextDefine_Customer" | translate}} :</p> - <span>{{ customerSelected2.name }}</span> + <span>{{ createData['commonParams']['customer'].name }}</span> </div> <div class="notificationlist"> <p> {{"i18nTextDefine_UseCase" | translate}} :</p> diff --git a/usecaseui-portal/src/app/views/services/services-list/services-list.component.ts b/usecaseui-portal/src/app/views/services/services-list/services-list.component.ts index da027028..4e57a820 100644 --- a/usecaseui-portal/src/app/views/services/services-list/services-list.component.ts +++ b/usecaseui-portal/src/app/views/services/services-list/services-list.component.ts @@ -53,11 +53,8 @@ export class ServicesListComponent implements OnInit { orchestratorList = []; customerList = []; customerSelected = { name: null, id: null }; - customerSelected2 = { name: null, id: null }; serviceTypeList = []; serviceTypeSelected = { name: '' }; - serviceTypeSelected2 = { name: '' }; - serviceTypeSelectedName = ""; templateTypeSelected = "CCVPN"; orchestratorSelected = { name: null, id: null }; listSortMasters = JSON.parse(sessionStorage.getItem('listSortMasters')); @@ -167,7 +164,7 @@ export class ServicesListComponent implements OnInit { createdModalShow(obj: any): void{ this.createData = obj.createData; - console.log(obj.createData) + console.log(obj,"------obj.createData") if (obj.templateType === "SOTN" || obj.templateType === "CCVPN") { this.ccvpn_temParametersContent = obj.data; this.createshow = true; @@ -518,8 +515,8 @@ export class ServicesListComponent implements OnInit { console.log(obj); let newData; //Newly created service data for the main table - let createParams = "?customerId=" + this.customerSelected2.id + - "&serviceType=" + this.serviceTypeSelected2.name + + let createParams = "?customerId=" + this.createData['commonParams'].customer.id + + "&serviceType=" + this.createData['commonParams'].serviceType.name + "&serviceDomain=" + this.templateTypeSelected; this.createService(obj, createParams, templateCreatestarting, templateCreateSuccessFaild).then((data) => { console.log(data); @@ -584,7 +581,7 @@ export class ServicesListComponent implements OnInit { console.log(obj); let newData; // let createParams = "?customerId=" + this.customerSelected.id + - "&serviceType=" + this.serviceTypeSelected2.name + + "&serviceType=" + this.createData['commonParams'].serviceType.name + "&serviceDomain=" + this.templateTypeSelected + "&parentServiceInstanceId=" + "&uuid=" + obj.service.serviceUuid + @@ -677,8 +674,8 @@ export class ServicesListComponent implements OnInit { return false; } let createParams = "?ns_instance_id=" + data.nsInstanceId + - "&customerId=" + this.customerSelected2.id + - "&serviceType=" + this.serviceTypeSelected2.name + + "&customerId=" + this.createData['commonParams'].customer.id + + "&serviceType=" + this.createData['commonParams'].serviceType.name + "&serviceDomain=" + this.templateTypeSelected + "&parentServiceInstanceId="; // step2 |