diff options
author | 2019-12-17 12:22:15 +0800 | |
---|---|---|
committer | 2019-12-17 12:22:19 +0800 | |
commit | ae24adb337bd7f362c2a5e8fb6ef92e2f02ccd8b (patch) | |
tree | 4fa4ee0250b4e2fe49546b094308c3558e6c4e88 /usecaseui-portal/src/app/views/services/services-list/services-list.component.ts | |
parent | 08eb62822a3dc98a20dd504a9780370d1024b5f6 (diff) |
feat:Optimize service instance creation parameter passing
Change-Id: I0ccf20c574f004f3fd39a223052f002099451560
Issue-ID: USECASEUI-370
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/views/services/services-list/services-list.component.ts')
-rw-r--r-- | usecaseui-portal/src/app/views/services/services-list/services-list.component.ts | 12 |
1 files changed, 6 insertions, 6 deletions
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 4e57a820..6ee5c27d 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 @@ -517,14 +517,14 @@ export class ServicesListComponent implements OnInit { let createParams = "?customerId=" + this.createData['commonParams'].customer.id + "&serviceType=" + this.createData['commonParams'].serviceType.name + - "&serviceDomain=" + this.templateTypeSelected; + "&serviceDomain=" + this.createData['commonParams'].templateType; this.createService(obj, createParams, templateCreatestarting, templateCreateSuccessFaild).then((data) => { console.log(data); this.loadingAnimateShow = false; newData = { //Newly created service data in the main form 'service-instance-id': data["serviceId"], 'service-instance-name': obj.service.name, - serviceDomain: this.templateTypeSelected, + serviceDomain: this.createData['commonParams'].templateType, childServiceInstances: [], status: "In Progress", rate: 0, @@ -582,7 +582,7 @@ export class ServicesListComponent implements OnInit { let newData; // let createParams = "?customerId=" + this.customerSelected.id + "&serviceType=" + this.createData['commonParams'].serviceType.name + - "&serviceDomain=" + this.templateTypeSelected + + "&serviceDomain=" + this.createData['commonParams'].templateType + "&parentServiceInstanceId=" + "&uuid=" + obj.service.serviceUuid + "&invariantUuuid=" + obj.service.serviceInvariantUuid; @@ -592,7 +592,7 @@ export class ServicesListComponent implements OnInit { newData = { // 'service-instance-id': data["serviceId"], 'service-instance-name': obj.service.name, - serviceDomain: this.templateTypeSelected, + serviceDomain: this.createData['commonParams'].templateType, childServiceInstances: [], status: "In Progress", statusClass: 1001, @@ -657,7 +657,7 @@ export class ServicesListComponent implements OnInit { newData = { // 'service-instance-id': data.nsInstanceId, 'service-instance-name': obj.step1.nsName, - serviceDomain: this.templateTypeSelected, + serviceDomain: this.createData['commonParams'].templateType, childServiceInstances: [], status: "In Progress", statusClass: 1001, @@ -676,7 +676,7 @@ export class ServicesListComponent implements OnInit { let createParams = "?ns_instance_id=" + data.nsInstanceId + "&customerId=" + this.createData['commonParams'].customer.id + "&serviceType=" + this.createData['commonParams'].serviceType.name + - "&serviceDomain=" + this.templateTypeSelected + + "&serviceDomain=" + this.createData['commonParams'].templateType + "&parentServiceInstanceId="; // step2 this.createNsService(createParams, obj.step2).then((jobid) => { |