Commit 2fc187b3 authored by 朱超's avatar 朱超

热量分析

parent 1ca0b19b
import http from './http'
//热量分析报表
export const postHeatAnalysis = params => {
return http.post(`/api/analysis/report/HeatAnalysis`, params).then(res => res).catch(function (error) {
console.log(error);
})
}
...@@ -56,63 +56,63 @@ ...@@ -56,63 +56,63 @@
> >
<tr> <tr>
<th>预测室外平均温度(℃)</th> <th>预测室外平均温度(℃)</th>
<td>-1.10</td> <td>{{ predictionTemp.avgTemp ? predictionTemp.avgTemp : "-" }}</td>
</tr> </tr>
<tr> <tr>
<th>天津气象局反馈温度(℃)</th> <th>天津气象局反馈温度(℃)</th>
<td>-1.10</td> <td>{{ realTemp.avgTemp ? realTemp.avgTemp : "-" }}</td>
</tr> </tr>
<tr> <tr>
<th>综合气象温度(℃)</th> <th>综合气象温度(℃)</th>
<td>-1.10</td> <td>{{ comprehensiveTemp.avgTemp ? comprehensiveTemp.avgTemp : "-" }}</td>
</tr> </tr>
</table> </table>
</th> </th>
</tr> </tr>
<tr> <tr>
<td>室外预测值(℃)</td> <td>室外预测值(℃)</td>
<td>01:00</td> <td>{{ predictionTemp.temp1 }}</td>
<td>02:00</td> <td>{{ predictionTemp.temp2 }}</td>
<td>03:00</td> <td>{{ predictionTemp.temp3 }}</td>
<td>04:00</td> <td>{{ predictionTemp.temp4 }}</td>
<td>05:00</td> <td>{{ predictionTemp.temp5 }}</td>
<td>06:00</td> <td>{{ predictionTemp.temp6 }}</td>
<td>07:00</td> <td>{{ predictionTemp.temp7 }}</td>
<td>08:00</td> <td>{{ predictionTemp.temp8 }}</td>
<td>09:00</td> <td>{{ predictionTemp.temp9 }}</td>
<td>10:00</td> <td>{{ predictionTemp.temp10 }}</td>
<td>11:00</td> <td>{{ predictionTemp.temp11 }}</td>
<td>12:00</td> <td>{{ predictionTemp.temp12 }}</td>
</tr> </tr>
<tr> <tr>
<td>天津气象局反馈温度(℃)</td> <td>天津气象局反馈温度(℃)</td>
<td>01:00</td> <td>{{ realTemp.temp1 }}</td>
<td>02:00</td> <td>{{ realTemp.temp2 }}</td>
<td>03:00</td> <td>{{ realTemp.temp3 }}</td>
<td>04:00</td> <td>{{ realTemp.temp4 }}</td>
<td>05:00</td> <td>{{ realTemp.temp5 }}</td>
<td>06:00</td> <td>{{ realTemp.temp6 }}</td>
<td>07:00</td> <td>{{ realTemp.temp7 }}</td>
<td>08:00</td> <td>{{ realTemp.temp8 }}</td>
<td>09:00</td> <td>{{ realTemp.temp9 }}</td>
<td>10:00</td> <td>{{ realTemp.temp10 }}</td>
<td>11:00</td> <td>{{ realTemp.temp11 }}</td>
<td>12:00</td> <td>{{ realTemp.temp12 }}</td>
</tr> </tr>
<tr> <tr>
<td>综合气象温度(℃)</td> <td>综合气象温度(℃)</td>
<td>01:00</td> <td>{{ comprehensiveTemp.temp1 }}</td>
<td>02:00</td> <td>{{ comprehensiveTemp.temp2 }}</td>
<td>03:00</td> <td>{{ comprehensiveTemp.temp3 }}</td>
<td>04:00</td> <td>{{ comprehensiveTemp.temp4 }}</td>
<td>05:00</td> <td>{{ comprehensiveTemp.temp5 }}</td>
<td>06:00</td> <td>{{ comprehensiveTemp.temp6 }}</td>
<td>07:00</td> <td>{{ comprehensiveTemp.temp7 }}</td>
<td>08:00</td> <td>{{ comprehensiveTemp.temp8 }}</td>
<td>09:00</td> <td>{{ comprehensiveTemp.temp9 }}</td>
<td>10:00</td> <td>{{ comprehensiveTemp.temp10 }}</td>
<td>11:00</td> <td>{{ comprehensiveTemp.temp11 }}</td>
<td>12:00</td> <td>{{ comprehensiveTemp.temp12 }}</td>
</tr> </tr>
<tr> <tr>
<th>夜间</th> <th>夜间</th>
...@@ -131,48 +131,48 @@ ...@@ -131,48 +131,48 @@
</tr> </tr>
<tr> <tr>
<td>室外预测值(℃)</td> <td>室外预测值(℃)</td>
<td>01:00</td> <td>{{ predictionTemp.temp13 }}</td>
<td>02:00</td> <td>{{ predictionTemp.temp14 }}</td>
<td>03:00</td> <td>{{ predictionTemp.temp15 }}</td>
<td>04:00</td> <td>{{ predictionTemp.temp16 }}</td>
<td>05:00</td> <td>{{ predictionTemp.temp17 }}</td>
<td>06:00</td> <td>{{ predictionTemp.temp18 }}</td>
<td>07:00</td> <td>{{ predictionTemp.temp19 }}</td>
<td>08:00</td> <td>{{ predictionTemp.temp20 }}</td>
<td>09:00</td> <td>{{ predictionTemp.temp21 }}</td>
<td>10:00</td> <td>{{ predictionTemp.temp22 }}</td>
<td>11:00</td> <td>{{ predictionTemp.temp23 }}</td>
<td>12:00</td> <td>{{ predictionTemp.temp24 }}</td>
</tr> </tr>
<tr> <tr>
<td>天津气象局反馈温度(℃)</td> <td>天津气象局反馈温度(℃)</td>
<td>01:00</td> <td>{{ realTemp.temp13 }}</td>
<td>02:00</td> <td>{{ realTemp.temp14 }}</td>
<td>03:00</td> <td>{{ realTemp.temp15 }}</td>
<td>04:00</td> <td>{{ realTemp.temp16 }}</td>
<td>05:00</td> <td>{{ realTemp.temp17 }}</td>
<td>06:00</td> <td>{{ realTemp.temp18 }}</td>
<td>07:00</td> <td>{{ realTemp.temp19 }}</td>
<td>08:00</td> <td>{{ realTemp.temp20 }}</td>
<td>09:00</td> <td>{{ realTemp.temp21 }}</td>
<td>10:00</td> <td>{{ realTemp.temp22 }}</td>
<td>11:00</td> <td>{{ realTemp.temp23 }}</td>
<td>12:00</td> <td>{{ realTemp.temp24 }}</td>
</tr> </tr>
<tr> <tr>
<td>综合气象温度(℃)</td> <td>综合气象温度(℃)</td>
<td>01:00</td> <td>{{ comprehensiveTemp.temp13 }}</td>
<td>02:00</td> <td>{{ comprehensiveTemp.temp14 }}</td>
<td>03:00</td> <td>{{ comprehensiveTemp.temp15 }}</td>
<td>04:00</td> <td>{{ comprehensiveTemp.temp16 }}</td>
<td>05:00</td> <td>{{ comprehensiveTemp.temp17 }}</td>
<td>06:00</td> <td>{{ comprehensiveTemp.temp18 }}</td>
<td>07:00</td> <td>{{ comprehensiveTemp.temp19 }}</td>
<td>08:00</td> <td>{{ comprehensiveTemp.temp20 }}</td>
<td>09:00</td> <td>{{ comprehensiveTemp.temp21 }}</td>
<td>10:00</td> <td>{{ comprehensiveTemp.temp22 }}</td>
<td>11:00</td> <td>{{ comprehensiveTemp.temp23 }}</td>
<td>12:00</td> <td>{{ comprehensiveTemp.temp24 }}</td>
</tr> </tr>
</table> </table>
<table <table
...@@ -190,10 +190,10 @@ ...@@ -190,10 +190,10 @@
<th colspan="2">16:00-20:00</th> <th colspan="2">16:00-20:00</th>
<th colspan="2">20:00-24:00</th> <th colspan="2">20:00-24:00</th>
</tr> </tr>
<tr> <tr v-for="(item, key) in analysisSupplys" :key="key">
<th>小王庄</th> <th>{{ item.name }}</th>
<td>0.1131</td> <td>{{ item.part1.measurement }}</td>
<td>0.1131</td> <td>{{ item.part1.reality }}</td>
<td>0.1131</td> <td>0.1131</td>
<td>0.1131</td> <td>0.1131</td>
<td>0.1131</td> <td>0.1131</td>
...@@ -207,7 +207,7 @@ ...@@ -207,7 +207,7 @@
<td>0.1131</td> <td>0.1131</td>
<td>0.1131</td> <td>0.1131</td>
</tr> </tr>
<tr> <!-- <tr>
<th>港东</th> <th>港东</th>
<td>0.1131</td> <td>0.1131</td>
<td>0.1131</td> <td>0.1131</td>
...@@ -308,7 +308,7 @@ ...@@ -308,7 +308,7 @@
<td>0.1131</td> <td>0.1131</td>
<td>0.1131</td> <td>0.1131</td>
<td>0.1131</td> <td>0.1131</td>
</tr> </tr> -->
</table> </table>
</el-card> </el-card>
</div> </div>
...@@ -319,6 +319,15 @@ import { ref, reactive, onMounted, onUnmounted } from "vue"; ...@@ -319,6 +319,15 @@ import { ref, reactive, onMounted, onUnmounted } from "vue";
import http from "../../api/http"; import http from "../../api/http";
import zhCn from "element-plus/dist/locale/zh-cn.mjs"; import zhCn from "element-plus/dist/locale/zh-cn.mjs";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
import { saveAs } from "file-saver";
import XLSX from "xlsx-js-style";
import {
postHeatAnalysis,
} from "../../api/report";
const predictionTemp = ref([]);
const realTemp = ref([]);
const comprehensiveTemp = ref([]);
const analysisSupplys = ref([]);
const enertyInfo = reactive({ const enertyInfo = reactive({
endTime: null, endTime: null,
}); });
...@@ -361,7 +370,24 @@ function timeFun() { ...@@ -361,7 +370,24 @@ function timeFun() {
enertyInfo.endTime = endTimes; enertyInfo.endTime = endTimes;
} }
function postHeatAnalysisFun() {
let params = {
"QueryTime":"2024-1-1 09:00:00"
}
postHeatAnalysis(params).then((res) => {
if (res.success === true) {
predictionTemp.value = res.data.predictionTemp;
realTemp.value = res.data.realTemp;
comprehensiveTemp.value = res.data.comprehensiveTemp;
analysisSupplys.value = res.data.analysisSupplys;
} else {
ElMessage.error(res.message);
}
});
}
onMounted(() => { onMounted(() => {
postHeatAnalysisFun();
timeFun(); timeFun();
}); });
onUnmounted(() => { onUnmounted(() => {
...@@ -394,7 +420,7 @@ table { ...@@ -394,7 +420,7 @@ table {
width: 100%; width: 100%;
} }
table th { table th {
background-color: #f5f7fa; background-color: rgb(181, 230, 255);
text-align: center; text-align: center;
padding: 5px 10px; padding: 5px 10px;
} }
......
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