Commit 95a1666f authored by xuke's avatar xuke

瞬时热量接口调用完成

parent de026362
...@@ -6,7 +6,7 @@ export const postEnergyManage = params => { ...@@ -6,7 +6,7 @@ export const postEnergyManage = params => {
}) })
} }
<<<<<<< HEAD
// 瞬时热量-获取列表 // 瞬时热量-获取列表
export const postInstantHeat = params => { export const postInstantHeat = params => {
return http.post(`api/Scheduling/BizInstantaneousHeat/Get`).then(res => res).catch(function (error) { return http.post(`api/Scheduling/BizInstantaneousHeat/Get`).then(res => res).catch(function (error) {
...@@ -34,7 +34,7 @@ export const postEnergyManageSave = params => { ...@@ -34,7 +34,7 @@ export const postEnergyManageSave = params => {
} }
=======
export const getWeatherMagData = () => { // 获取气象干预数据 export const getWeatherMagData = () => { // 获取气象干预数据
return http.get(`/api/cusweather/getData`) return http.get(`/api/cusweather/getData`)
} }
...@@ -54,4 +54,4 @@ export const getAnnualParam = ()=>{ // 获取年度参数列表 ...@@ -54,4 +54,4 @@ export const getAnnualParam = ()=>{ // 获取年度参数列表
export const alterAnnualParam = params =>{ export const alterAnnualParam = params =>{
return http.post('/api/Scheduling/BizHeatSet/Update',params) return http.post('/api/Scheduling/BizHeatSet/Update',params)
} }
>>>>>>> ddf8f5e185594dc0e6e809967cda5d8f5acc4157
...@@ -119,11 +119,12 @@ const getInstanceHeat = async () => { ...@@ -119,11 +119,12 @@ const getInstanceHeat = async () => {
} }
const onSave = async() => { const onSave = async() => {
// await postInstantHeatUpdate(List.value) // await postInstantHeatUpdate(List.value)
// ElMessage.success('修改成功')
http.post("/api/Scheduling/BizInstantaneousHeat/Update",{...List.value},false).then((result)=>{ await http.post("/api/Scheduling/BizInstantaneousHeat/Update",{...List.value},false).then((result)=>{
}).catch((error)=>{ }).catch((error)=>{
console.log(error) console.log(error)
}) })
ElMessage.success('修改成功')
getInstanceHeat() getInstanceHeat()
} }
onMounted(() => { onMounted(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment