summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/core/services
diff options
context:
space:
mode:
authorcyuamber <xuranyjy@chinamobile.com>2019-09-04 17:54:23 +0800
committerxu ran <xuranyjy@chinamobile.com>2019-09-04 13:37:55 +0000
commit16ea8b7de7d7a51d05c1890144f1799c7e41f8c7 (patch)
treeba009d3ebfd748f4f7c9ee71a43fc46ff97223c1 /usecaseui-portal/src/app/core/services
parentec06b7c5fbaba86c367b7ea6e6c4262e4e50596b (diff)
feat:optimize the mock api of the home page
Change-Id: Ie569f729e23e232446fd3b8db05c41189c088d24 Issue-ID: USECASEUI-307 Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/core/services')
-rw-r--r--usecaseui-portal/src/app/core/services/homes.service.ts16
1 files changed, 3 insertions, 13 deletions
diff --git a/usecaseui-portal/src/app/core/services/homes.service.ts b/usecaseui-portal/src/app/core/services/homes.service.ts
index 218756d4..321642db 100644
--- a/usecaseui-portal/src/app/core/services/homes.service.ts
+++ b/usecaseui-portal/src/app/core/services/homes.service.ts
@@ -23,16 +23,13 @@ export class HomesService {
constructor(private http: HttpClient) { }
baseUrl = baseUrl.baseUrl;
- baseUrlbar = baseUrl.baseUrl + "/uui-lcm/";
url = {
home_serviceData: this.baseUrl + "/uui-lcm/serviceNumByCustomer",
- home_performanceData: this.baseUrl + "/performance/queryAllSourceNames",
home_alarmData: this.baseUrl + "/alarm/statusCount",
home_alarmChartData: this.baseUrl + "/alarm/diagram",
- home_servicebarData: this.baseUrl + "",
- home_servicebarnsData: this.baseUrlbar + "ns-packages",
- home_servicebarvnfData: this.baseUrlbar + "vnf-packages",
- home_servicebarpnfData: this.baseUrlbar + "pnf-packages",
+ home_servicebarnsData: this.baseUrl + "/uui-lcm/ns-packages",
+ home_servicebarvnfData: this.baseUrl + "/uui-lcm/vnf-packages",
+ home_servicebarpnfData: this.baseUrl + "/uui-lcm/pnf-packages",
sourceNames: this.baseUrl + "/alarm/getSourceNames",
listSortMasters: this.baseUrl + "/listSortMasters",
currentLanguage: "/api/portal-auxapi/languageSetting/user/",
@@ -42,9 +39,6 @@ export class HomesService {
getHomeServiceData() {
return this.http.get<any>(this.url.home_serviceData);
}
- getHomePerformanceData() {
- return this.http.get<String[]>(this.url.home_performanceData);
- }
getHomeAlarmData() {
return this.http.get<any>(this.url.home_alarmData);
}
@@ -52,10 +46,6 @@ export class HomesService {
let params = new HttpParams({ fromObject: paramsObj });
return this.http.get<any>(this.url.home_alarmChartData, { params });
}
-
- getHomeServiceBarData() {
- return this.http.get<any>(this.url.home_servicebarData);
- }
getHomeServiceBarNsData() {
return this.http.get<any>(this.url.home_servicebarnsData);
}