|
@@ -48,7 +48,7 @@
|
|
|
<span class="MicrYaHei">相似度高</span>
|
|
|
</div>
|
|
|
<div class="count-foot-table">
|
|
|
- <ev-energy-table v-if="samples.length>0" :samples="samples"></ev-energy-table>
|
|
|
+ <ev-energy-table v-if="samples.length>=0" :samples="samples"></ev-energy-table>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -71,7 +71,13 @@ import EvCard from "./evCard"; //执行率
|
|
|
import EvRateTitle from "./evRateTitle";
|
|
|
import EvHistory from "./evHistory";
|
|
|
import DateTemp from "./dateTemp";
|
|
|
-import { runDataQury, energyDayQuery } from "@/api/evaluate/evaluate.js";
|
|
|
+import {
|
|
|
+ runDataQury,
|
|
|
+ energyDayQuery,
|
|
|
+ querychiller,
|
|
|
+ querySpace,
|
|
|
+ queryHisdataQueryPeriodData
|
|
|
+} from "@/api/evaluate/evaluate.js";
|
|
|
import { queryChillerExecuteInfo } from "@/api/appeal/appeal.js";
|
|
|
|
|
|
export default {
|
|
@@ -93,7 +99,8 @@ export default {
|
|
|
tindoorFillRate: "", //室内温度满足率
|
|
|
energySavingRate: "", //节能率
|
|
|
cardList: [],
|
|
|
- date: ""
|
|
|
+ date: "",
|
|
|
+ dateVal: ""
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
@@ -107,57 +114,114 @@ export default {
|
|
|
DateTemp
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.start();
|
|
|
- this.queryRunDataQury();
|
|
|
+ this.querychillerMethod();
|
|
|
+ this.querySpaceMethod();
|
|
|
+ this.queryHisdataQueryPeriodDataMethod();
|
|
|
+ this.start(this.dateVal);
|
|
|
+ this.queryRunDataQury(this.dateVal);
|
|
|
this.type = this.$route.query.type;
|
|
|
this.date = this.$route.query.name;
|
|
|
if (this.type == 1) {
|
|
|
this.num = 1;
|
|
|
+ // querychillerMethod();
|
|
|
} else if (this.type == 2) {
|
|
|
this.num = 2;
|
|
|
- this.queryEnergyDayQuery();
|
|
|
+ this.queryEnergyDayQuery(this.dateVal);
|
|
|
} else if (this.type == 3) {
|
|
|
this.num = 3;
|
|
|
- this.queryimplement();
|
|
|
+ this.queryimplement(this.dateVal);
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- queryimplement() {
|
|
|
+ queryHisdataQueryPeriodDataMethod() {
|
|
|
+ let params = {
|
|
|
+ postParams: {
|
|
|
+ projectId: "Pj4413030001",
|
|
|
+ funcids: ["Tdb"], //固定值
|
|
|
+ period: 60, //固定值
|
|
|
+ startTime: "20200225000000", //开始时间 yyyyMMddH24miss
|
|
|
+ endTime: "20200225235959", //结束时间 yyyyMMddH24miss
|
|
|
+ objectId: "Sp4413030001388657a6b77e4605880b85767e4eaddd" //空间id
|
|
|
+ }
|
|
|
+ };
|
|
|
+ queryHisdataQueryPeriodData(params).then(res => {
|
|
|
+ console.log(res);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 查询一天的运行评价-室内温度页面左上角温度满足率
|
|
|
+ querySpaceMethod() {
|
|
|
+ let params = {
|
|
|
+ postParams: {
|
|
|
+ criteria: {
|
|
|
+ projectId: "Pj4413030001"
|
|
|
+ // isChillerMonitor: 1 //是否冷站智控监测 1:是 0:不是
|
|
|
+ }
|
|
|
+ }
|
|
|
+ };
|
|
|
+ querySpace(params).then(res => {
|
|
|
+ console.log(res);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 室内温度位置详情-室内温度页面中间的空间列表
|
|
|
+ querychillerMethod() {
|
|
|
+ this.dataList = [];
|
|
|
let params = {
|
|
|
postParams: {
|
|
|
criteria: {
|
|
|
+ projectId: "Pj4413030001",
|
|
|
date: "20200226"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ };
|
|
|
+ querychiller(params).then(res => {
|
|
|
+ this.tindoorFillRate = res.content[0].tindoorFillRate || 0; //室内温度满足率 = res.content ? res.content : [];
|
|
|
+ console.log(this.dataList);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ queryimplement(date) {
|
|
|
+ let params = {
|
|
|
+ postParams: {
|
|
|
+ criteria: {
|
|
|
+ date: date
|
|
|
// "id":15582 //指令id
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
queryChillerExecuteInfo(params).then(res => {
|
|
|
this.cardList = res.data ? res.data : [];
|
|
|
- console.log(this.cardList);
|
|
|
});
|
|
|
},
|
|
|
change: function(index) {
|
|
|
this.num = index;
|
|
|
- this.start();
|
|
|
+ this.start(this.dateVal);
|
|
|
},
|
|
|
- start() {
|
|
|
+ start(date) {
|
|
|
if (this.num == 1) {
|
|
|
- this.queryRunDataQury();
|
|
|
+ // this.querychillerMethod();
|
|
|
+ // this.queryRunDataQury(date);
|
|
|
} else if (this.num == 2) {
|
|
|
- this.queryEnergyDayQuery();
|
|
|
+ this.queryEnergyDayQuery(date);
|
|
|
} else if (this.num == 3) {
|
|
|
- this.queryimplement();
|
|
|
+ this.queryimplement(date);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ formatterStr(str) {
|
|
|
+ if (str) {
|
|
|
+ return str.substring(0, 4) + str.substring(5, 7) + str.substring(8, 10);
|
|
|
}
|
|
|
},
|
|
|
pickerVal(val) {
|
|
|
- console.log(val);
|
|
|
+ if (val) {
|
|
|
+ this.dateVal = this.formatterStr(val);
|
|
|
+ this.start(this.dateVal);
|
|
|
+ }
|
|
|
},
|
|
|
jumpIndex() {
|
|
|
this.$router.push("/evaluate");
|
|
|
},
|
|
|
- queryRunDataQury() {
|
|
|
+ queryRunDataQury(date) {
|
|
|
this.runDataQuryArr = [];
|
|
|
- runDataQury({}).then(res => {
|
|
|
+ runDataQury(date, {}).then(res => {
|
|
|
if (res.result == "success") {
|
|
|
this.chillerExecuteRate = res.chillerExecuteRate; //略执行率
|
|
|
this.isExecutedNum = res.isExecutedNum; //已执行数量
|
|
@@ -165,33 +229,37 @@ export default {
|
|
|
this.dataList = res.dataList ? res.dataList : []; //室内温度满足率
|
|
|
this.energySaving = res.energySaving; //节能量
|
|
|
this.tindoorOverrunDegree = res.tindoorOverrunDegree; //超限程度
|
|
|
- this.tindoorFillRate = res.tindoorFillRate; //室内温度满足率
|
|
|
+
|
|
|
this.energySavingRate = res.energySavingRate; //节能率
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
// 节能率
|
|
|
- queryEnergyDayQuery() {
|
|
|
- energyDayQuery({}).then(res => {
|
|
|
- // 本日概况
|
|
|
- this.current = res.current ? res.current : {};
|
|
|
- // 相似日概况
|
|
|
- this.similarDay = res.similarDay ? res.similarDay : {};
|
|
|
- // 相似日列表
|
|
|
- this.samples = res.samples ? res.samples : [];
|
|
|
- if (this.samples.length > 0) {
|
|
|
- var outsiteTemp = [],
|
|
|
- indoorTemp = [],
|
|
|
- energy = [];
|
|
|
- for (var i in this.samples) {
|
|
|
- outsiteTemp.push(this.samples[i].outsiteTemp);
|
|
|
- indoorTemp.push(this.samples[i].indoorTemp);
|
|
|
- energy.push(this.samples[i].energy);
|
|
|
+ queryEnergyDayQuery(date) {
|
|
|
+ energyDayQuery(date, {}).then(res => {
|
|
|
+ if (res.result == "success") {
|
|
|
+ // 本日概况
|
|
|
+ this.current = res.current ? res.current : {};
|
|
|
+ // 相似日概况
|
|
|
+ this.similarDay = res.similarDay ? res.similarDay : {};
|
|
|
+ // 相似日列表
|
|
|
+ this.samples = res.samples ? res.samples : [];
|
|
|
+ if (this.samples.length > 0) {
|
|
|
+ var outsiteTemp = [],
|
|
|
+ indoorTemp = [],
|
|
|
+ energy = [];
|
|
|
+ for (var i in this.samples) {
|
|
|
+ outsiteTemp.push(this.samples[i].outsiteTemp);
|
|
|
+ indoorTemp.push(this.samples[i].indoorTemp);
|
|
|
+ energy.push(this.samples[i].energy);
|
|
|
+ }
|
|
|
+ let maxOutsiteTemp = this.maxMethod(this.sortMethod(outsiteTemp)),
|
|
|
+ maxIndoorTemp = this.maxMethod(this.sortMethod(indoorTemp)),
|
|
|
+ maxEnergy = this.maxMethod(this.sortMethod(energy));
|
|
|
+ this.maxArr.push(maxOutsiteTemp, maxIndoorTemp, maxEnergy);
|
|
|
}
|
|
|
- let maxOutsiteTemp = this.maxMethod(this.sortMethod(outsiteTemp)),
|
|
|
- maxIndoorTemp = this.maxMethod(this.sortMethod(indoorTemp)),
|
|
|
- maxEnergy = this.maxMethod(this.sortMethod(energy));
|
|
|
- this.maxArr.push(maxOutsiteTemp, maxIndoorTemp, maxEnergy);
|
|
|
+ } else {
|
|
|
+ this.$message.error("申诉失败: " + res.message);
|
|
|
}
|
|
|
});
|
|
|
},
|