riku
2023-11-24 dd5fbe2e6cacffa0ff67f0f68c262d14ddfce3cc
src/api/historyApi.js
@@ -1,5 +1,28 @@
import { $http } from './index';
import { $http } from './index'
export default {
  // 查询历史数据 不分页
  queryHistoryData({ siteName, mnCode, beginTime, endTime, scenarioType }) {
    const params = {
      beginTime: beginTime,
      endTime: endTime
    }
    if (siteName) {
      params.siteName = siteName
    }
    if (mnCode) {
      params.mnCode = mnCode
    }
    if (scenarioType) {
      params.scenarioType = scenarioType
    }
    return $http.get('/dust/historyall', {
      params: params
    })
  },
  
};
}