|
|
|
@ -63,7 +63,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="special-div" style="width: 100%; margin-top: 20px"> |
|
|
|
<div class="special-div" style="width: 100%; margin-top: 20px"> |
|
|
|
<div class="special-top"> |
|
|
|
<div class="special-top"> |
|
|
|
<div class="special-title">中央空调能耗总览</div> |
|
|
|
<div class="special-title">中央空调能效总览</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- 冷源系统 --> |
|
|
|
<!-- 冷源系统 --> |
|
|
|
<div class="home"> |
|
|
|
<div class="home"> |
|
|
|
@ -81,8 +81,8 @@ |
|
|
|
alt="" |
|
|
|
alt="" |
|
|
|
/> |
|
|
|
/> |
|
|
|
<div class="img-word"> |
|
|
|
<div class="img-word"> |
|
|
|
<div>瞬时电量(kwh)</div> |
|
|
|
<div>瞬时电量(kw)</div> |
|
|
|
<div class="word-color1">{{ this.totalEle }}22222</div> |
|
|
|
<div class="word-color1">{{ this.totalEle }}</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="data-content"> |
|
|
|
<div class="data-content"> |
|
|
|
@ -92,8 +92,8 @@ |
|
|
|
alt="" |
|
|
|
alt="" |
|
|
|
/> |
|
|
|
/> |
|
|
|
<div class="img-word"> |
|
|
|
<div class="img-word"> |
|
|
|
<div>瞬时冷量(kwr)</div> |
|
|
|
<div>瞬时冷量(kw)</div> |
|
|
|
<div class="word-color2">{{ this.totalCap }}3333333</div> |
|
|
|
<div class="word-color2">{{ this.totalCap }}</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -108,7 +108,7 @@ |
|
|
|
/> |
|
|
|
/> |
|
|
|
<div class="img-word"> |
|
|
|
<div class="img-word"> |
|
|
|
<div>运行天数</div> |
|
|
|
<div>运行天数</div> |
|
|
|
<div class="word-color3">{{ this.runTime }}322天</div> |
|
|
|
<div class="word-color3">{{ this.runTime }}天</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="data-content"> |
|
|
|
<div class="data-content"> |
|
|
|
@ -119,7 +119,7 @@ |
|
|
|
/> |
|
|
|
/> |
|
|
|
<div class="img-word"> |
|
|
|
<div class="img-word"> |
|
|
|
<div>湿球温度</div> |
|
|
|
<div>湿球温度</div> |
|
|
|
<div class="word-color4">{{ this.wetBulbTem }}32℃</div> |
|
|
|
<div class="word-color4">{{ this.wetBulbTem }}℃</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="data-content"> |
|
|
|
<div class="data-content"> |
|
|
|
@ -130,7 +130,7 @@ |
|
|
|
/> |
|
|
|
/> |
|
|
|
<div class="img-word"> |
|
|
|
<div class="img-word"> |
|
|
|
<div>室外湿度</div> |
|
|
|
<div>室外湿度</div> |
|
|
|
<div class="word-color5">{{ this.humidity }}22%</div> |
|
|
|
<div class="word-color5">{{ this.humidity }}%</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="data-content"> |
|
|
|
<div class="data-content"> |
|
|
|
@ -141,7 +141,7 @@ |
|
|
|
/> |
|
|
|
/> |
|
|
|
<div class="img-word"> |
|
|
|
<div class="img-word"> |
|
|
|
<div>室外温度</div> |
|
|
|
<div>室外温度</div> |
|
|
|
<div class="word-color6">{{ this.temperature }}33℃</div> |
|
|
|
<div class="word-color6">{{ this.temperature }}℃</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -157,8 +157,8 @@ |
|
|
|
src="../assets/images/home-icon7.png" |
|
|
|
src="../assets/images/home-icon7.png" |
|
|
|
alt="" |
|
|
|
alt="" |
|
|
|
/> |
|
|
|
/> |
|
|
|
<div>日EER</div> |
|
|
|
<div>日EER(kwh/kwh)</div> |
|
|
|
<div class="eep-data">{{ this.homeStatical.dayEER }}20</div> |
|
|
|
<div class="eep-data">{{ this.homeStatical.dayEER }}</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="eep-li"> |
|
|
|
<div class="eep-li"> |
|
|
|
<img |
|
|
|
<img |
|
|
|
@ -166,9 +166,9 @@ |
|
|
|
src="../assets/images/home-icon7.png" |
|
|
|
src="../assets/images/home-icon7.png" |
|
|
|
alt="" |
|
|
|
alt="" |
|
|
|
/> |
|
|
|
/> |
|
|
|
<div>月EER</div> |
|
|
|
<div>月EER(kwh/kwh)</div> |
|
|
|
<div class="eep-data"> |
|
|
|
<div class="eep-data"> |
|
|
|
{{ this.homeStatical.monthEER }}24 |
|
|
|
{{ this.homeStatical.monthEER }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="eep-li"> |
|
|
|
<div class="eep-li"> |
|
|
|
@ -177,9 +177,9 @@ |
|
|
|
src="../assets/images/home-icon7.png" |
|
|
|
src="../assets/images/home-icon7.png" |
|
|
|
alt="" |
|
|
|
alt="" |
|
|
|
/> |
|
|
|
/> |
|
|
|
<div>年EER</div> |
|
|
|
<div>年EER(kwh/kwh)</div> |
|
|
|
<div class="eep-data"> |
|
|
|
<div class="eep-data"> |
|
|
|
{{ this.homeStatical.yearEER }}12 |
|
|
|
{{ this.homeStatical.yearEER }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="eep-li"> |
|
|
|
<div class="eep-li"> |
|
|
|
@ -188,9 +188,9 @@ |
|
|
|
src="../assets/images/home-icon7.png" |
|
|
|
src="../assets/images/home-icon7.png" |
|
|
|
alt="" |
|
|
|
alt="" |
|
|
|
/> |
|
|
|
/> |
|
|
|
<div>累计EER</div> |
|
|
|
<div>累计EER(kwh/kwh)</div> |
|
|
|
<div class="eep-data"> |
|
|
|
<div class="eep-data"> |
|
|
|
{{ this.homeStatical.totalEER }}12 |
|
|
|
{{ this.homeStatical.totalEER }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -199,33 +199,33 @@ |
|
|
|
<div class="clod-left"> |
|
|
|
<div class="clod-left"> |
|
|
|
<div class="cold-li"> |
|
|
|
<div class="cold-li"> |
|
|
|
<div class="cold-data"> |
|
|
|
<div class="cold-data"> |
|
|
|
{{ this.homeStatical.dayColdCap }}32 |
|
|
|
{{ this.homeStatical.dayColdCap }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="cold-number">日供冷量(kwr)</div> |
|
|
|
<div class="cold-number">日供冷量(kwh)</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="cold-li"> |
|
|
|
<div class="cold-li"> |
|
|
|
<div class="cold-data"> |
|
|
|
<div class="cold-data"> |
|
|
|
{{ this.homeStatical.monthColdCap }}232 |
|
|
|
{{ this.homeStatical.monthColdCap }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="cold-number">当月供冷量(kwr)</div> |
|
|
|
<div class="cold-number">当月供冷量(kwh)</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="cold-li"> |
|
|
|
<div class="cold-li"> |
|
|
|
<div class="cold-data">{{ yearColdCapValue }}3211</div> |
|
|
|
<div class="cold-data">{{ yearColdCapValue }}</div> |
|
|
|
<div class="cold-number"> |
|
|
|
<div class="cold-number"> |
|
|
|
{{ |
|
|
|
{{ |
|
|
|
this.homeStatical.yearColdCap > 100000 |
|
|
|
this.homeStatical.yearColdCap > 100000 |
|
|
|
? "年供冷量(Mwr)" |
|
|
|
? "年供冷量(Mwh)" |
|
|
|
: "年供冷量(kwr)" |
|
|
|
: "年供冷量(kwh)" |
|
|
|
}} |
|
|
|
}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="cold-li"> |
|
|
|
<div class="cold-li"> |
|
|
|
<div class="cold-data">{{ totalColdCapValue }}324443</div> |
|
|
|
<div class="cold-data">{{ totalColdCapValue }}</div> |
|
|
|
<div class="cold-number"> |
|
|
|
<div class="cold-number"> |
|
|
|
{{ |
|
|
|
{{ |
|
|
|
this.homeStatical.totalColdCap > 100000 |
|
|
|
this.homeStatical.totalColdCap > 100000 |
|
|
|
? "累计供冷量(Mwr)" |
|
|
|
? "累计供冷量(Mwh)" |
|
|
|
: "累计供冷量(kwr)" |
|
|
|
: "累计供冷量(kwh)" |
|
|
|
}} |
|
|
|
}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -295,11 +295,12 @@ import { |
|
|
|
introduction, |
|
|
|
introduction, |
|
|
|
changeLogo, |
|
|
|
changeLogo, |
|
|
|
ersDatas, |
|
|
|
ersDatas, |
|
|
|
homeRunTime, |
|
|
|
|
|
|
|
getCurrentRate, |
|
|
|
getCurrentRate, |
|
|
|
getCoe, |
|
|
|
getCoe, |
|
|
|
homeStatical, |
|
|
|
homeStatical, |
|
|
|
|
|
|
|
getLocalWeatherData, |
|
|
|
} from "@/api/index"; |
|
|
|
} from "@/api/index"; |
|
|
|
|
|
|
|
import { runTime } from "@/api/centerairC/sysMonitor"; |
|
|
|
import SysEnergy from "./components/sysEnergy.vue"; |
|
|
|
import SysEnergy from "./components/sysEnergy.vue"; |
|
|
|
import ChartsData from "./components/chartsData.vue"; |
|
|
|
import ChartsData from "./components/chartsData.vue"; |
|
|
|
import viewEnergy from "./components/viewEnergy.vue"; |
|
|
|
import viewEnergy from "./components/viewEnergy.vue"; |
|
|
|
@ -307,7 +308,7 @@ export default { |
|
|
|
components: { |
|
|
|
components: { |
|
|
|
SysEnergy, |
|
|
|
SysEnergy, |
|
|
|
ChartsData, |
|
|
|
ChartsData, |
|
|
|
viewEnergy |
|
|
|
viewEnergy, |
|
|
|
}, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
@ -365,7 +366,6 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
mounted() { |
|
|
|
this.getProject(); |
|
|
|
this.getProject(); |
|
|
|
this.getErsData(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.getRunTime(); |
|
|
|
this.getRunTime(); |
|
|
|
this.getCurrentRate(); |
|
|
|
this.getCurrentRate(); |
|
|
|
@ -493,99 +493,13 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 查询数据 |
|
|
|
|
|
|
|
getErsData() { |
|
|
|
|
|
|
|
let data = { |
|
|
|
|
|
|
|
systemType: "7", |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
ersDatas(data).then((res) => { |
|
|
|
|
|
|
|
if (res.code == 200) { |
|
|
|
|
|
|
|
console.log("首页返回数据----------", res.rows[0]); |
|
|
|
|
|
|
|
this.heatData = res.rows[0].heatData; |
|
|
|
|
|
|
|
this.systemData = res.rows[0].systemData; |
|
|
|
|
|
|
|
this.valveData = res.rows[0].valveData; |
|
|
|
|
|
|
|
this.outWaterTemperature = res.rows[0].outWaterTemperature; |
|
|
|
|
|
|
|
this.applicationData = res.rows[0].applicationData; |
|
|
|
|
|
|
|
this.heatRecoveryData = res.rows[0].heatRecoveryData; |
|
|
|
|
|
|
|
// 计算并添加离心机压差 |
|
|
|
|
|
|
|
this.addCentrifugePressureDiff(); |
|
|
|
|
|
|
|
console.log("deviceName-1", this.systemData); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 计算离心机压差并添加到systemData |
|
|
|
|
|
|
|
addCentrifugePressureDiff() { |
|
|
|
|
|
|
|
// 查找进水压力和出水压力对象 |
|
|
|
|
|
|
|
const inletPressure = this.systemData.find( |
|
|
|
|
|
|
|
(item) => item.deviceTypeName === "离心机进水压力" |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const outletPressure = this.systemData.find( |
|
|
|
|
|
|
|
(item) => item.deviceTypeName === "离心机出水压力" |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 如果两个对象都存在 |
|
|
|
|
|
|
|
if (inletPressure && outletPressure) { |
|
|
|
|
|
|
|
// 计算压差(出水压力 - 进水压力) |
|
|
|
|
|
|
|
const pressureDiff = |
|
|
|
|
|
|
|
parseFloat(outletPressure.curValue) - |
|
|
|
|
|
|
|
parseFloat(inletPressure.curValue); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 判断状态:如果进水或出水压力任一状态为1,则压差状态为1(异常) |
|
|
|
|
|
|
|
const status = |
|
|
|
|
|
|
|
inletPressure.status === 1 || outletPressure.status === 1 ? 1 : 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 创建压差对象 |
|
|
|
|
|
|
|
const pressureDiffObj = { |
|
|
|
|
|
|
|
paramType: "14", // 可以设置为压差类型,如果没有特定值可以设一个默认 |
|
|
|
|
|
|
|
curTime: null, |
|
|
|
|
|
|
|
orderNum: this.systemData.length + 1, // 顺序号设为数组长度+1 |
|
|
|
|
|
|
|
deviceTypeName: "离心机压差", |
|
|
|
|
|
|
|
otherName: "压差计算值", |
|
|
|
|
|
|
|
deviceName: "离心机压差", |
|
|
|
|
|
|
|
curValue: parseFloat(pressureDiff.toFixed(2)), // 保留两位小数 |
|
|
|
|
|
|
|
status: status, |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 将压差对象添加到systemData中 |
|
|
|
|
|
|
|
this.systemData.push(pressureDiffObj); |
|
|
|
|
|
|
|
console.log("添加离心机压差对象:", pressureDiffObj); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
console.warn("找不到进水压力或出水压力数据"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 处理系统数据 |
|
|
|
|
|
|
|
getTempDisplay(deviceName, data) { |
|
|
|
|
|
|
|
// console.log("this.systemData",this.systemData) |
|
|
|
|
|
|
|
// console.log("deviceName",deviceName) |
|
|
|
|
|
|
|
const item = data.find((item) => item.deviceTypeName === deviceName); |
|
|
|
|
|
|
|
// console.log("item", item); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!item) return "--℃"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (item.status === 1) { |
|
|
|
|
|
|
|
return '<span style="color: red">异常</span>'; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return `${item.curValue}℃`; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 处理系统数据-仪表盘 |
|
|
|
|
|
|
|
getDeviceData(deviceTypeName) { |
|
|
|
|
|
|
|
return ( |
|
|
|
|
|
|
|
this.systemData.find( |
|
|
|
|
|
|
|
(item) => item.deviceTypeName === deviceTypeName |
|
|
|
|
|
|
|
) || {} |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
goEnergy() { |
|
|
|
|
|
|
|
// this.$router.push("/comprehensiveEnergy/systemEnergy"); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取运行天数 |
|
|
|
// 获取运行天数 |
|
|
|
getRunTime() { |
|
|
|
getRunTime() { |
|
|
|
homeRunTime().then((res) => { |
|
|
|
runTime().then((res) => { |
|
|
|
console.log("运行天数返回", res); |
|
|
|
console.log("运行天数返回", res); |
|
|
|
if (res.code == 200) { |
|
|
|
if (res.code == 200) { |
|
|
|
this.runTime = res.rows; |
|
|
|
this.runTime = res.data.runTime; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
@ -594,8 +508,8 @@ export default { |
|
|
|
getCurrentRate().then((res) => { |
|
|
|
getCurrentRate().then((res) => { |
|
|
|
console.log("实时总功率总冷量返回", res); |
|
|
|
console.log("实时总功率总冷量返回", res); |
|
|
|
if (res.code == 200) { |
|
|
|
if (res.code == 200) { |
|
|
|
this.totalEle = res.rows.totalEle; |
|
|
|
this.totalEle = res.rows[0].totalEle; |
|
|
|
this.totalCap = res.rows.totalCap; |
|
|
|
this.totalCap = res.rows[0].totalCap; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
@ -604,7 +518,7 @@ export default { |
|
|
|
homeStatical().then((res) => { |
|
|
|
homeStatical().then((res) => { |
|
|
|
console.log("处理前日月年供冷量、日月年EER返回", res); |
|
|
|
console.log("处理前日月年供冷量、日月年EER返回", res); |
|
|
|
if (res.code == 200) { |
|
|
|
if (res.code == 200) { |
|
|
|
this.homeStatical = this.formatObjectProperties(res.rows); |
|
|
|
this.homeStatical = this.formatObjectProperties(res.rows[0]); |
|
|
|
console.log("处理后日月年供冷量、日月年EER返回", this.homeStatical); |
|
|
|
console.log("处理后日月年供冷量、日月年EER返回", this.homeStatical); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
@ -627,8 +541,8 @@ export default { |
|
|
|
console.log("返回本地的温湿度 <== ", res); |
|
|
|
console.log("返回本地的温湿度 <== ", res); |
|
|
|
debugger; |
|
|
|
debugger; |
|
|
|
if (res.code == 200) { |
|
|
|
if (res.code == 200) { |
|
|
|
this.humidity = res.rows.humidity; |
|
|
|
this.humidity = res.rows[0].humidity; |
|
|
|
this.temperature = res.rows.temperature; |
|
|
|
this.temperature = res.rows[0].temperature; |
|
|
|
this.minHumidity = (parseFloat(this.humidity) / 100).toFixed(3); |
|
|
|
this.minHumidity = (parseFloat(this.humidity) / 100).toFixed(3); |
|
|
|
// 以下代码计算湿球温度 |
|
|
|
// 以下代码计算湿球温度 |
|
|
|
class z_ambient { |
|
|
|
class z_ambient { |
|
|
|
@ -1225,7 +1139,7 @@ export default { |
|
|
|
color: #4595f1; |
|
|
|
color: #4595f1; |
|
|
|
position: absolute; |
|
|
|
position: absolute; |
|
|
|
top: 0.13rem; |
|
|
|
top: 0.13rem; |
|
|
|
left: 3.44rem; |
|
|
|
left: 3.34rem; |
|
|
|
font-weight: bold; |
|
|
|
font-weight: bold; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|