1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
//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);
})
}