Commit a0e76e82 authored by 朱超's avatar 朱超

换热站趋势图

parent 1d10a0e1
...@@ -78,6 +78,20 @@ export const postSecTrafficUc = params => { ...@@ -78,6 +78,20 @@ export const postSecTrafficUc = params => {
}) })
} }
//板换效率趋势一
export const postFirEffiTrendUc = params => {
return http.post(`/api/analysis/external/FirEffiTrendUc`, params).then(res => res).catch(function (error) {
console.log(error);
})
}
//板换效率趋势二
export const postSecEffiTrendUc = params => {
return http.post(`/api/analysis/external/SecEffiTrendUc`, params).then(res => res).catch(function (error) {
console.log(error);
})
}
//热量分析报表 //热量分析报表
export const postHeatAnalysis = params => { export const postHeatAnalysis = params => {
return http.post(`/api/analysis/report/HeatAnalysis`, params).then(res => res).catch(function (error) { return http.post(`/api/analysis/report/HeatAnalysis`, params).then(res => res).catch(function (error) {
......
...@@ -88,28 +88,11 @@ ...@@ -88,28 +88,11 @@
<el-option label="换热站板换效率" :value="7" /> <el-option label="换热站板换效率" :value="7" />
<el-option label="换热站二网均温" :value="8" /> <el-option label="换热站二网均温" :value="8" />
<el-option label="二网温差" :value="9" /> <el-option label="二网温差" :value="9" />
<el-option label="二网均温" :value="8" />
<el-option label="二网万平米流量" :value="11" /> <el-option label="二网万平米流量" :value="11" />
<el-option label="板换效率趋势一" :value="12" />
<el-option label="板换效率趋势二" :value="13" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- <el-form-item label="用量环比类型" v-show="energyTypeDis">
<el-select
v-model="enertyInfo.energyType"
placeholder="请选择"
>
<el-option label="耗水" :value="2" />
<el-option label="耗热" :value="3" />
<el-option label="耗电" :value="4" />
</el-select>
</el-form-item> -->
<!-- <el-form-item>
<el-button type="primary" @click="sendClick" style="margin: 15px 0 0 0;">查询</el-button>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="exportTableToExcel" style="margin: 15px 0 0 0;"
>导出表格</el-button
>
</el-form-item> -->
<div style="position: absolute; right: 2%"> <div style="position: absolute; right: 2%">
<el-button <el-button
type="primary" type="primary"
...@@ -168,6 +151,8 @@ import { ...@@ -168,6 +151,8 @@ import {
postSecAvgTUc, postSecAvgTUc,
postSecAbsTUc, postSecAbsTUc,
postSecTrafficUc, postSecTrafficUc,
postFirEffiTrendUc,
postSecEffiTrendUc,
} from "../../api/analysis"; } from "../../api/analysis";
const options = reactive([]); const options = reactive([]);
const enterpriseId = ref(); const enterpriseId = ref();
...@@ -260,7 +245,7 @@ function exportTableToExcel() { ...@@ -260,7 +245,7 @@ function exportTableToExcel() {
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8", type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8",
}); });
const downloadUrl = URL.createObjectURL(dataBlob); const downloadUrl = URL.createObjectURL(dataBlob);
saveAs(dataBlob, "tableData.xlsx"); saveAs(dataBlob, "换热站趋势图.xlsx");
ElMessage.success("导出成功!请稍后。。。"); ElMessage.success("导出成功!请稍后。。。");
} }
...@@ -410,6 +395,12 @@ function sendClick() { ...@@ -410,6 +395,12 @@ function sendClick() {
case 11: case 11:
postSecTrafficUcFun(); //二网万平米流量 postSecTrafficUcFun(); //二网万平米流量
break; break;
case 12:
postFirEffiTrendUcFun();
break;
case 13:
postSecEffiTrendUcFun();
break;
} }
enertyTab.value = "能耗值(" + company.value + ")"; enertyTab.value = "能耗值(" + company.value + ")";
} else { } else {
...@@ -621,6 +612,36 @@ function postSecTrafficUcFun() { ...@@ -621,6 +612,36 @@ function postSecTrafficUcFun() {
}); });
} }
function postFirEffiTrendUcFun() {
tabloading.value = true;
postFirEffiTrendUc(enertyInfo).then((res) => {
echarts.dispose(document.getElementById("echartsLayer"));
if (res.success === true) {
pageInitFun(res);
} else if (res.status == 9) {
setInterval(function () {
tabloading.value = false;
this.postFirEffiTrendUcFun();
}, 600000);
}
});
}
function postSecEffiTrendUcFun() {
tabloading.value = true;
postSecEffiTrendUc(enertyInfo).then((res) => {
echarts.dispose(document.getElementById("echartsLayer"));
if (res.success === true) {
pageInitFun(res);
} else if (res.status == 9) {
setInterval(function () {
tabloading.value = false;
this.postFirEffiTrendUcFun();
}, 600000);
}
});
}
function pageInitFun(res) { function pageInitFun(res) {
tableData.length = 0; tableData.length = 0;
res.data.hourWater.forEach((element) => { res.data.hourWater.forEach((element) => {
......
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