diff options
author | zhangab <zhanganbing@chinamobile.com> | 2019-01-09 11:41:18 +0800 |
---|---|---|
committer | zhangab <zhanganbing@chinamobile.com> | 2019-01-09 11:41:29 +0800 |
commit | bd4942df4f188a4ec273a5ec95c99acb1ce6bb75 (patch) | |
tree | eedf5c26878e690861f3541123012838da2ffbd4 /usecaseui-portal/src/app/homes.service.ts | |
parent | 2cd40ded13c94a8d44396dda9189716a8964051c (diff) |
Support NS Package Upload for VF-C
Change-Id: Ie41e32ad556719b64b5ab66d0c488cbd65e9c83f
Issue-ID: USECASEUI-156
Signed-off-by: zhangab <zhanganbing@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/homes.service.ts')
-rw-r--r-- | usecaseui-portal/src/app/homes.service.ts | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/usecaseui-portal/src/app/homes.service.ts b/usecaseui-portal/src/app/homes.service.ts index cf47fd73..625c20fc 100644 --- a/usecaseui-portal/src/app/homes.service.ts +++ b/usecaseui-portal/src/app/homes.service.ts @@ -16,14 +16,13 @@ import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders, HttpParams, HttpResponse } from '@angular/common/http'; import { Observable } from 'rxjs/Observable'; -import { homeData, homeVmLineData, servicesSelectData, servicesTableData, creatensData, onboardTableData, onboardDataVNF, onboardDataPNF } from './dataInterface'; +import { homeData, homeVmLineData, servicesSelectData, servicesTableData, creatensData, onboardTableData, onboardDataVNF, onboardDataPNF , baseUrl} from './dataInterface'; @Injectable() export class HomesService { constructor(private http: HttpClient) { } - // baseUrl = 'http://172.19.44.223/api/usecaseui-server/v1'; - baseUrl = '/api/usecaseui-server/v1'; + baseUrl = baseUrl.baseUrl url = { home_serviceData: this.baseUrl + "/uui-lcm/serviceNumByCustomer", home_performanceData: this.baseUrl + "/performance/queryAllSourceNames", @@ -69,36 +68,36 @@ export class HomesService { // alarm data getAlarmFormData(currentPage: number, pageSize: number, sourceName?: string, priority?: string, startTime?: string, endTime?: string, vfStatus?: string) { - return this.http.get<any>('/api/usecaseui-server/v1/alarm/' + '/' + currentPage + '/' + pageSize + '?sourceName=' + sourceName + '&priority=' + priority + '&startTime=' + startTime + '&endTime=' + endTime + '&vfStatus=' + vfStatus); + return this.http.get<any>(this.baseUrl + '/alarm/' + '/' + currentPage + '/' + pageSize + '?sourceName=' + sourceName + '&priority=' + priority + '&startTime=' + startTime + '&endTime=' + endTime + '&vfStatus=' + vfStatus); } getSourceNames() { - return this.http.get<any>('/api/usecaseui-server/v1/alarm/getSourceNames/'); + return this.http.get<any>(this.baseUrl + '/alarm/getSourceNames/'); } getstatuscount() { - let httpurl = '/api/usecaseui-server/v1/alarm/statusCount'; + let httpurl = this.baseUrl + '/alarm/statusCount'; return this.http.get<any>(httpurl); } getAlarmDetailData(id) { - let httpurl = '/api/usecaseui-server/v1/alarm/getAlarmsHeaderDetail/' + id; + let httpurl = this.baseUrl + '/alarm/getAlarmsHeaderDetail/' + id; return this.http.get<any>(httpurl); } // performance data getqueryAllSourceNames() { - let httpurl = this.baseUrl + "/api/usecaseui-server/v1/performance/queryAllSourceNames"; + let httpurl = this.baseUrl + "/performance/queryAllSourceNames"; return this.http.get<any>(httpurl); } getperformanceSourceNames(currentPage: number, pageSize: number, sourceName: string) { - let httpurl = this.baseUrl + "/api/usecaseui-server/v1/performanceSsourceNames" + "/" + currentPage + "/" + pageSize + "?sourceName=" + sourceName; + let httpurl = this.baseUrl + "/performanceSsourceNames" + "/" + currentPage + "/" + pageSize + "?sourceName=" + sourceName; return this.http.get<any>(httpurl); } getPerformanceFormData(currentPage: number, pageSize: number, sourceName?: string, startTime?: string, endTime?: string) { - return this.http.get<any>('/api/usecaseui-server/v1/performance' + '/' + currentPage + '/' + pageSize + '?sourceName=' + sourceName + '&startTime=' + startTime + '&endTime=' + endTime); + return this.http.get<any>(this.baseUrl + '/performance' + '/' + currentPage + '/' + pageSize + '?sourceName=' + sourceName + '&startTime=' + startTime + '&endTime=' + endTime); } getPerformanceHeaderDetail(id) { - let httpurl = '/api/usecaseui-server/v1/performance/getPerformanceHeaderDetail/' + id; + let httpurl = this.baseUrl + '/performance/getPerformanceHeaderDetail/' + id; return this.http.get<any>(httpurl); } |