diff options
author | xu ran <xuranyjy@chinamobile.com> | 2020-03-25 12:18:15 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-03-25 12:18:15 +0000 |
commit | b7d48cb394ab3669a360ccc1672bdc196982abfa (patch) | |
tree | b469d45f7e1a01390fa0069488bd9e93bdf3f66b /usecaseui-portal/src/app/views/services/sotn-management/order-service | |
parent | 771dcf4ba2bf90a7da49bbec5d1a80c216c76de7 (diff) | |
parent | dba6524875ebb7c0835d4eace5bc27c03763d4a1 (diff) |
Merge "Service Topology Changes"
Diffstat (limited to 'usecaseui-portal/src/app/views/services/sotn-management/order-service')
-rw-r--r-- | usecaseui-portal/src/app/views/services/sotn-management/order-service/order-service.component.ts | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/usecaseui-portal/src/app/views/services/sotn-management/order-service/order-service.component.ts b/usecaseui-portal/src/app/views/services/sotn-management/order-service/order-service.component.ts index d770eb06..1cfd00fd 100644 --- a/usecaseui-portal/src/app/views/services/sotn-management/order-service/order-service.component.ts +++ b/usecaseui-portal/src/app/views/services/sotn-management/order-service/order-service.component.ts @@ -20,7 +20,6 @@ export class OrderServiceComponent implements OnInit { siteData:object = {}; buttonDisabled:boolean = false; intervalData:any; - // baseUrl:string = '/api/usecaseui-server/v1'; baseUrl = baseUrl.baseUrl expandDataSet = [ { rowIdx: 1, name: 'i18nTextDefine_serviceInformation', expand: true }, @@ -59,6 +58,7 @@ export class OrderServiceComponent implements OnInit { }); } + numberOnly(event): boolean { const charCode = (event.which) ? event.which : event.keyCode; if (charCode > 31 && (charCode < 48 || charCode > 57)) { @@ -121,6 +121,10 @@ export class OrderServiceComponent implements OnInit { this.l2vpn["l2vpn_reroute"] == null) { return false; } + // for (const i in this.validateForm.controls) { + // this.validateForm.controls[i].markAsDirty(); + // this.validateForm.controls[i].updateValueAndValidity(); + // } return true; } @@ -135,13 +139,19 @@ export class OrderServiceComponent implements OnInit { 'Content-Type': 'application/json', }) }; + let url1 = this.baseUrl + '/uui-lcm/Sotnservices_unni'; this.http.post<any>(url1, body, httpOptions).subscribe((data) => { let comp = this; this.message.info('Instantiation In Progress'); this.intervalData = setInterval(() => { + const httpOptions1 = { + headers: new HttpHeaders({ + 'Content-Type': 'application/json', + }) + }; let url2 = this.baseUrl + "/uui-lcm/Sotnservices/serviceStatus/service-instance/" + data.service.serviceId; - this.http.get<any>(url2, {}).subscribe((data) => { + this.http.get<any>(url2, httpOptions1).subscribe((data) => { if (data.status == "1") { clearInterval(comp.intervalData); comp.message.success('Service Created'); |