本文整理汇总了TypeScript中common/query/services/rs-query-service.apiQuery函数的典型用法代码示例。如果您正苦于以下问题:TypeScript apiQuery函数的具体用法?TypeScript apiQuery怎么用?TypeScript apiQuery使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了apiQuery函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: loadTilesPreviewNew
/**
* Load tile HTML
* @param {any} dashboardConfig
* @param {IzendaDashboardTileModel} tiles which preview is required
*/
loadTilesPreviewNew(dashboardConfig, tile, size) {
if (!angular.isObject(tile))
throw 'Argument exception: "tile" parameter should be object.';
const dashboardConfigParam = JSON.stringify(dashboardConfig);
return this.$izendaRsQueryService.apiQuery('getDashboardTilePreviewNew',
[dashboardConfigParam, tile.reportFullName, size.width, size.height]);
}
示例2:
return this.$q(resolve => {
this.$izendaRsQueryService.apiQuery('autorefreshintervals', []).then(
result => {
resolve(result);
},
error => {
const errorMessage =
this.$izendaLocaleService.localeText('js_DashboardAutoRefreshError', 'Failed to get auto refresh intervals');
this.$izendaUtilUiService.showErrorDialog(`${errorMessage}: ${error}`);
});
});
示例3: saveReportSet
/**
* Create report set from json and save it.
*/
saveReportSet(reportSetConfig) {
const paramsString = JSON.stringify(reportSetConfig);
return this.$izendaRsQueryService.apiQuery('saveReportSetNew', [paramsString]);
}
示例4: loadReport
/**
* Load report json config
*/
loadReport(reportFullName) {
return this.$izendaRsQueryService.apiQuery('loadReportSetConfigJson', [reportFullName]);
}
示例5: syncFiltersNew
/**
* Deserealize dashboard and return it's filters
* @param {json} dashboardConfig
*/
syncFiltersNew(dashboardConfig) {
const dashboardConfigParam = JSON.stringify(dashboardConfig);
return this.$izendaRsQueryService.apiQuery('syncDashboardFiltersNew', [dashboardConfigParam]);
}
示例6: syncTilesNew
/**
* Deserealize dashboard into CurrentReportSet.
* @param {any} json dashboard json
* @param {IzendaDashboardTileModel} tile
*/
syncTilesNew(json: any, tile?: IzendaDashboardTileModel) {
const dashboardConfigParam = JSON.stringify(json);
return this.$izendaRsQueryService.apiQuery('syncDashboardNew',
[dashboardConfigParam, tile && tile.reportFullName ? tile.reportFullName : '']);
}
示例7: saveDashboardNew
/**
* (new!) Save dashboard.
* @param {any} json dashboard model.
*/
saveDashboardNew(json: any): angular.IPromise<any> {
if (!json)
throw new Error('Dashboard json is empty');
const dashboardConfigParam = JSON.stringify(json);
return this.$izendaRsQueryService.apiQuery('saveReportSetNew', [dashboardConfigParam]);
}
示例8: loadDashboardNavigationNew
/**
* Load dashboard navigation
*/
loadDashboardNavigationNew() {
return this.$izendaRsQueryService.apiQuery('getDashboardCategoriesNew', []);
}
示例9: sendReportViaEmailNew
/**
* Send report via email
*/
sendReportViaEmailNew(dashboardConfig, type, to) {
const dashboardConfigParam = JSON.stringify(dashboardConfig);
return this.$izendaRsQueryService.apiQuery('sendDashboardEmailNew', [dashboardConfigParam, type, to]);
}