Commit b1443579 authored by 王亚晖's avatar 王亚晖
parents 792cb272 85880238
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
style="min-width: 150px" style="min-width: 150px"
@change="selTypeChange" @change="selTypeChange"
> >
<el-option label="用量环比" :value="0" /> <!-- <el-option label="用量环比" :value="0" /> -->
<el-option label="热单耗" :value="1" /> <el-option label="热单耗" :value="1" />
<el-option label="电单耗" :value="2" /> <el-option label="电单耗" :value="2" />
<el-option label="水单耗" :value="3" /> <el-option label="水单耗" :value="3" />
...@@ -169,6 +169,7 @@ const tableHeight = ref(500); ...@@ -169,6 +169,7 @@ const tableHeight = ref(500);
const computedWidth = ref("1200px"); const computedWidth = ref("1200px");
const computedHeight = ref("500px"); const computedHeight = ref("500px");
const formRef = ref(null); const formRef = ref(null);
const company = ref("W/㎡");
const enertyInfo = reactive({ const enertyInfo = reactive({
supplyId: null, supplyId: null,
transferId: [], transferId: [],
...@@ -248,21 +249,27 @@ function sendClick() { ...@@ -248,21 +249,27 @@ function sendClick() {
postQOQlistFun(); postQOQlistFun();
break; //用量环比 break; //用量环比
case 1: case 1:
company.value = "W/㎡";
postHeatUctFun(); postHeatUctFun();
break; //热单耗 break; //热单耗
case 2: case 2:
company.value = "Kwh/㎡";
postElecUcFun(); //电单耗 postElecUcFun(); //电单耗
break; break;
case 3: case 3:
company.value = "Kg/㎡";
postWaterUcFun(); //电单耗 postWaterUcFun(); //电单耗
break; break;
case 4: case 4:
company.value = "W/(㎡×℃)";
postDayHeatFun(); //度日数热耗 postDayHeatFun(); //度日数热耗
break; break;
case 5: case 5:
company.value = "℃";
postFirBackTFun(); //一网回温 postFirBackTFun(); //一网回温
break; break;
case 6: case 6:
company.value = "t/h/万㎡";
postWPMLLFun(); //一网万平米流量 postWPMLLFun(); //一网万平米流量
break; break;
case 7: case 7:
...@@ -282,7 +289,6 @@ function sendClick() { ...@@ -282,7 +289,6 @@ function sendClick() {
function delJson() {} function delJson() {}
function selTypeChange() { function selTypeChange() {
console.log(energyTypeDis);
if (enertyInfo.type == 0) { if (enertyInfo.type == 0) {
energyTypeDis.value = true; energyTypeDis.value = true;
} else { } else {
...@@ -461,7 +467,7 @@ function pageInitFun(res) { ...@@ -461,7 +467,7 @@ function pageInitFun(res) {
echartData.value = dataDeal(res.data.hourWater); echartData.value = dataDeal(res.data.hourWater);
echartData.value[0].listInfo.forEach((element) => { echartData.value[0].listInfo.forEach((element) => {
if (element.gatherTime) { if (element.gatherTime) {
echartDataTime.push(element.gatherTime.split(" 00:00:00")[0]); echartDataTime.push(element.gatherTime);
} }
}); });
echartData.value.forEach((element) => { echartData.value.forEach((element) => {
...@@ -567,7 +573,7 @@ function echartInit() { ...@@ -567,7 +573,7 @@ function echartInit() {
var myChart = echarts.init(chartDom); var myChart = echarts.init(chartDom);
var option; var option;
myChart.resize({ width: computedWidth.value, height: computedHeight.value }); myChart.resize({ width: computedWidth.value, height: computedHeight.value });
var company = "T"; // var company = "T";
option = { option = {
title: { title: {
...@@ -618,7 +624,7 @@ function echartInit() { ...@@ -618,7 +624,7 @@ function echartInit() {
name: "能耗", name: "能耗",
position: "right", position: "right",
axisLabel: { axisLabel: {
formatter: "{value} " + company, formatter: "{value} " + company.value,
}, },
}, },
], ],
...@@ -632,7 +638,7 @@ function changeFun() { ...@@ -632,7 +638,7 @@ function changeFun() {
var divWidth = document.getElementById("contentBlock").offsetWidth; var divWidth = document.getElementById("contentBlock").offsetWidth;
var divHeight = document.getElementById("contentBlock").scrollHeight; var divHeight = document.getElementById("contentBlock").scrollHeight;
computedWidth.value = divWidth + "px"; computedWidth.value = divWidth + "px";
computedHeight.value = divHeight * 0.7 + "px"; computedHeight.value = divHeight * 0.6 + "px";
echartInit(); echartInit();
} }
......
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