Commit 4bb13c74a9f5273a8cbc40eb3972f986705425da

Authored by fengtao
1 parent 886c0dab

feat:报表导出 新增报表查看(可查看多个设备属性)

Showing 1 changed file with 15 additions and 0 deletions
@@ -4,6 +4,7 @@ import { ExportQueryParam } from './model/exportModel'; @@ -4,6 +4,7 @@ import { ExportQueryParam } from './model/exportModel';
4 enum ReportManagerApi { 4 enum ReportManagerApi {
5 GET_EXPORT_API = '/report/generate/record', 5 GET_EXPORT_API = '/report/generate/record',
6 DELETE_EXPORT_API = '/report/generate/record', 6 DELETE_EXPORT_API = '/report/generate/record',
  7 + GET_TELEMETRY_API = '/plugins/telemetry/',
7 } 8 }
8 9
9 //报表导出分页 10 //报表导出分页
@@ -23,3 +24,17 @@ export const deleteExportManage = (ids: string[]) => { @@ -23,3 +24,17 @@ export const deleteExportManage = (ids: string[]) => {
23 }, 24 },
24 }); 25 });
25 }; 26 };
  27 +
  28 +//报表查看趋势图
  29 +export const exportViewChartApi = (entityId, params) => {
  30 + return defHttp.get<ExportQueryParam>(
  31 + {
  32 + url:
  33 + ReportManagerApi.GET_TELEMETRY_API + 'DEVICE' + '/' + entityId + '/values' + '/timeseries',
  34 + params,
  35 + },
  36 + {
  37 + joinPrefix: false,
  38 + }
  39 + );
  40 +};