本文整理匯總了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);
}