screenDisplay.js 2.72 KB
//import {axios, base} from './request'
import http from './http'

//登录获取token
// export const getToken = params => {
//     return axios.get(`${base}/api/user/login`, {params: params}).then(res => res.data).catch(function (error) {
//         console.log(error);
//     })
//   }

// //登录获取token
// export const getToken = params => {
//   return http.post(`/api/user/login`, params).then(res => res.data).catch(function (error) {
//       console.log(error);
//   })
// }

//Gis获取服务中心列表
export const postServicCenterList = params => {
  var url = "/api/gis/home/ServicCenterList";
  return http.post(url).then(res => res).catch(function (error) {
      console.log(error);
  })
}

//Gis获取供热站列表
export const postSupplylist = params => {
  return http.post(`/api/gis/home/supplylist`, params).then(res => res).catch(function (error) {
      console.log(error);
  })
}

//Gis获取换热站列表
export const postTransferList = params => {
  return http.post(`/api/gis/home/TransferList`, params).then(res => res).catch(function (error) {
      console.log(error);
  })
}

//获取室外温度
export const getForecast = params => {
  return http.get(`/api/weather/Forecast`).then(res => res).catch(function (error) {
      console.log(error);
  })
}

//获取实时数据接口
export const postGYPipeReal = params => {
  return http.post(`/api/gis/GYPipeReal`).then(res => res).catch(function (error) {
      console.log(error);
  })
}

//获取换热站工况数据接口1 -- 阀门开度
export const postGYTransferValue = params => {
  return http.post(`/api/gis/GYTransferValue`).then(res => res).catch(function (error) {
      console.log(error);
  })
}

//获取换热站工况数据接口2 -- 热单耗
export const postGYTransferHeatUC = params => {
  return http.post(`/api/gis/GYTransferHeatUC`, params).then(res => res).catch(function (error) {
      console.log(error);
  })
}

//获取智慧调控面积
export const postAreaList = params => {
  return http.post(`/api/gis/home/area`, params).then(res => res).catch(function (error) {
      console.log(error);
  })
}

//获取前12小时一次补水量曲线
export const postGYSupplyWater = params => {
  return http.post(`/api/gis/GYSupplyWater`).then(res => res).catch(function (error) {
      console.log(error);
  })
}

//获取换热站机组一网电调阀开度分布
export const postTransferOpenValue = params => {
  return http.post(`/api/gis/TransferOpenValue`).then(res => res).catch(function (error) {
      console.log(error);
  })
}

//供热站度日热耗偏移量接口
export const postGYSupplyHeatUCDeviation = params => {
  return http.post(`/api/gis/GYSupplyHeatUCDeviation`).then(res => res).catch(function (error) {
      console.log(error);
  })
}