|
@@ -21,7 +21,7 @@
|
|
|
</ul>
|
|
|
<div class="count-bottom">
|
|
|
<div v-show="num == 1">
|
|
|
- <ev-rate-title :tab="1" :rate="tindoorFillRate"></ev-rate-title>
|
|
|
+ <ev-rate-title :tab="1" :rate="tindoorFillRate" :accuracy="null"></ev-rate-title>
|
|
|
<div class="count-bottom-switch">
|
|
|
<span class="switchSpan">只显示不满足的点位</span>
|
|
|
<el-switch v-model="value2"></el-switch>
|
|
@@ -30,11 +30,11 @@
|
|
|
<ev-two-table v-if="dataList.length>=0" :switch="value2" :dataList="dataList"></ev-two-table>
|
|
|
</div>
|
|
|
<div class="count-bottom-foot">
|
|
|
- <ev-stacked-line></ev-stacked-line>
|
|
|
+ <ev-stacked-line v-if="stackArr.length>0" :stackArr="stackArr"></ev-stacked-line>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-show="num == 2">
|
|
|
- <ev-rate-title :tab="2" :rate="energySavingRate"></ev-rate-title>
|
|
|
+ <ev-rate-title :tab="2" :rate="energySavingRate" :accuracy="accuracy"></ev-rate-title>
|
|
|
<div class="count-historical-data">
|
|
|
<ev-history
|
|
|
v-if="Object.keys(current).length>0||Object.keys(similarDay).length>0||Object.keys(maxArr).length>0"
|
|
@@ -54,7 +54,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-show="num == 3">
|
|
|
- <ev-rate-title :tab="3"></ev-rate-title>
|
|
|
+ <ev-rate-title :tab="3" :rate="null" :accuracy="null"></ev-rate-title>
|
|
|
<ev-card v-if="cardList.length>0" :cardList="cardList"></ev-card>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -97,7 +97,9 @@ export default {
|
|
|
tindoorFillRate: "", //室内温度满足率@
|
|
|
energySavingRate: "", //节能率
|
|
|
cardList: [], //执行率@
|
|
|
- dateVal: "" //@
|
|
|
+ dateVal: "", //@
|
|
|
+ stackArr: [], //@
|
|
|
+ accuracy: "" //准确率
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
@@ -117,6 +119,7 @@ export default {
|
|
|
init() {
|
|
|
this.type = this.$route.query.type;
|
|
|
this.date = this.$route.query.name;
|
|
|
+ console.log(this.date);
|
|
|
if (this.type) {
|
|
|
this.num = this.type;
|
|
|
}
|
|
@@ -124,11 +127,26 @@ export default {
|
|
|
this.date = this.formatterStr3(
|
|
|
new Date().getFullYear() + this.formatterStr2(this.date)
|
|
|
);
|
|
|
+ this.querychillerMethods(this.date);
|
|
|
}
|
|
|
if (this.num && this.date) {
|
|
|
this.changeNumMethod();
|
|
|
}
|
|
|
},
|
|
|
+ querychillerMethods(date) {
|
|
|
+ let params = {
|
|
|
+ postParams: {
|
|
|
+ criteria: {
|
|
|
+ projectId: this.$store.state.projectId,
|
|
|
+ date: date
|
|
|
+ }
|
|
|
+ }
|
|
|
+ };
|
|
|
+ querychiller(params).then(res => {
|
|
|
+ console.log(res);
|
|
|
+ this.accuracy = res.content[0].accuracy;
|
|
|
+ });
|
|
|
+ },
|
|
|
// @
|
|
|
formatterStr2(str) {
|
|
|
if (str) {
|
|
@@ -146,6 +164,13 @@ export default {
|
|
|
let content = res.content;
|
|
|
if (content.length > 0) {
|
|
|
content.forEach(item => {
|
|
|
+ if (item.spaceDayRpt.isSatisfy == false) {
|
|
|
+ let obj2 = {
|
|
|
+ name: item.spaceDayRpt.spaceLocalName,
|
|
|
+ data: item.tdbList.data
|
|
|
+ };
|
|
|
+ this.stackArr.push(obj2);
|
|
|
+ }
|
|
|
arr1.push(item.spaceDayRpt.floorLocalName);
|
|
|
});
|
|
|
arr1 = Array.from(new Set(arr1));
|
|
@@ -165,7 +190,6 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
this.dataList = arr2;
|
|
|
- console.log(this.dataList);
|
|
|
});
|
|
|
},
|
|
|
// @
|
|
@@ -212,7 +236,8 @@ export default {
|
|
|
// @
|
|
|
pickerVal(val) {
|
|
|
if (val) {
|
|
|
- this.dateVal = this.formatterStr(val);
|
|
|
+ this.date = this.formatterStr(val);
|
|
|
+ this.changeNumMethod();
|
|
|
}
|
|
|
},
|
|
|
// @
|