本文整理匯總了TypeScript中@nb/core.DataService.apiGet方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript DataService.apiGet方法的具體用法?TypeScript DataService.apiGet怎麽用?TypeScript DataService.apiGet使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類@nb/core.DataService
的用法示例。
在下文中一共展示了DataService.apiGet方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: fetchData
fetchData(filter: any) {
return this.dataService.apiGet('/Projects/api/dashboard', filter).pipe(map(data => {
return {
id: data.id,
title: data.title,
data: {
chart: data.payload.chart ? this.convertChartPayloadData(data.payload.chart) : null,
taskStatusStats: data.payload.taskStatusStats,
exportFormatType: data.payload.exportFormatType,
isProjectSupervisor: data.payload.isProjectSupervisor
}
};
}));
}
示例2: fetchUrl
fetchUrl(url: string, params: any) {
return this.dataService.apiGet(createApiUrl(url), params);
}
示例3: fetchRecordsCount
fetchRecordsCount() {
return this.dataService.apiGet(`${MONITORING_URL.API_USERS_RECORDS_COUNT}`);
}
示例4: fetchCalendarEvents
fetchCalendarEvents(params: { eventStart: string, eventEnd: string, limit: number }) {
return this.dataService.apiGet(CALENDAR_URL.API_EVENT, params);
}
示例5: fetchService
fetchService(serviceId: string, params: any = {}) {
return this.dataService.apiGet(`${INTEGRATION_URL.API_SERVICES}/${serviceId}`, params);
}