|
@@ -1,13 +1,14 @@
|
|
|
import httputils from '@/api/httputils'
|
|
|
+import store from '@/store'
|
|
|
//查询当前运行策略
|
|
|
export function queryCommand({getParams}) {
|
|
|
- return httputils.getJson(`/duoduo-service/transfer/chiller/command/queryData?projectId=Pj4413030001`, getParams)
|
|
|
+ return httputils.getJson(`/duoduo-service/transfer/chiller/command/queryData?projectId=${store.state.projectId}`, getParams)
|
|
|
}
|
|
|
//查询当日运行策略列表
|
|
|
export function getCommand({postParams}) {
|
|
|
- return httputils.postJson(`/duoduo-service/transfer/chiller/command/query?projectId=Pj4413030001`, postParams)
|
|
|
+ return httputils.postJson(`/duoduo-service/transfer/chiller/command/query?projectId=${store.state.projectId}`, postParams)
|
|
|
}
|
|
|
//修改策略备注
|
|
|
export function updateCommand({postParams}) {
|
|
|
- return httputils.postJson(`/duoduo-service/transfer/chiller/command/update?projectId=Pj4413030001`, postParams)
|
|
|
+ return httputils.postJson(`/duoduo-service/transfer/chiller/command/update?projectId=${store.state.projectId}`, postParams)
|
|
|
}
|