本文整理汇总了TypeScript中@nb/core.DataService类的典型用法代码示例。如果您正苦于以下问题:TypeScript DataService类的具体用法?TypeScript DataService怎么用?TypeScript DataService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了DataService类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: resetAssignee
resetAssignee(model: Assignment, entries: AssigneeEntry[]) {
let url = `${WF_URL.API_ASSIGNMENTS}/action/resetAssignee`;
let payload = {
assignment: {
id: model.id,
assigneeEntries: entries.map(it => { return { assignee: { id: it.assignee.id } }; })
}
};
return this.dataService.apiPost(url, {}, payload);
}
示例2: 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
}
};
}));
}
示例3: fetchUrl
fetchUrl(url: string, params: any) {
return this.dataService.apiGet(createApiUrl(url), params);
}
示例4: fetchRecordsCount
fetchRecordsCount() {
return this.dataService.apiGet(`${MONITORING_URL.API_USERS_RECORDS_COUNT}`);
}
示例5: fetchCalendarEvents
fetchCalendarEvents(params: { eventStart: string, eventEnd: string, limit: number }) {
return this.dataService.apiGet(CALENDAR_URL.API_EVENT, params);
}
示例6: fetchService
fetchService(serviceId: string, params: any = {}) {
return this.dataService.apiGet(`${INTEGRATION_URL.API_SERVICES}/${serviceId}`, params);
}