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 | +}; |