|
@@ -29,7 +29,7 @@ const intervalMap = new Map([
|
|
|
]);
|
|
|
|
|
|
export const adaptFormData = (deviceCode: string, deviceInfo: any, formData: any, pagination: PaginationProps) => {
|
|
|
- if (deviceInfo.stationType === 'redis') {
|
|
|
+ if (deviceInfo.stationtype === 'redis') {
|
|
|
return {
|
|
|
pageNum: pagination.current,
|
|
|
pageSize: pagination.pageSize,
|
|
@@ -53,7 +53,7 @@ export const adaptFormData = (deviceCode: string, deviceInfo: any, formData: any
|
|
|
};
|
|
|
|
|
|
export const list = (deviceCode: string, deviceInfo: any, formData: any, pagination: PaginationProps) => {
|
|
|
- if (deviceInfo.stationType === 'redis') {
|
|
|
+ if (deviceInfo.stationtype === 'redis') {
|
|
|
return defHttp.post({
|
|
|
url: Api.getHistoryData,
|
|
|
params: adaptFormData(deviceCode, deviceInfo, formData, pagination),
|
|
@@ -72,7 +72,7 @@ export const list = (deviceCode: string, deviceInfo: any, formData: any, paginat
|
|
|
};
|
|
|
|
|
|
export const getExportUrl = (deviceInfo) => {
|
|
|
- if (deviceInfo.stationType === 'redis') {
|
|
|
+ if (deviceInfo.stationtype === 'redis') {
|
|
|
return Api.exportHistoryData;
|
|
|
} else {
|
|
|
return Api.historydata;
|