|
@@ -23,8 +23,8 @@
|
|
|
<div v-if="num == 1">
|
|
|
<ev-rate-title :tab="1" :rate="tindoorFillRate"></ev-rate-title>
|
|
|
<div class="count-bottom-switch">
|
|
|
- <span class="switchSpan">只显示不满足的点位</span>
|
|
|
- <el-switch v-model="value2"></el-switch>
|
|
|
+ <span class="switchSpan" >只显示不满足的点位</span>
|
|
|
+ <el-switch v-model="value2" @change="changeNum('1')"></el-switch>
|
|
|
</div>
|
|
|
<div class="count-bottom-content">
|
|
|
<ev-two-table v-if="dataList.length>0" :switch="value2" :dataList="dataList"></ev-two-table>
|
|
@@ -117,6 +117,14 @@ export default {
|
|
|
this.init();
|
|
|
},
|
|
|
methods: {
|
|
|
+ // changeSwitch(){
|
|
|
+ // let getParams = {
|
|
|
+ // isSatisfy:this.value2
|
|
|
+ // }
|
|
|
+ // queryTdbDay({getParams}).then(res=>{
|
|
|
+
|
|
|
+ // })
|
|
|
+ // },
|
|
|
init() {
|
|
|
this.type = this.$route.query.type;
|
|
|
this.date = this.$route.query.name;
|
|
@@ -148,7 +156,11 @@ export default {
|
|
|
// children: []
|
|
|
// }
|
|
|
};
|
|
|
- queryTdbDay(date, {}).then(res => {
|
|
|
+ // isSatisfy:this.value2
|
|
|
+ let getParams={
|
|
|
+ isSatisfy:this.value2
|
|
|
+ }
|
|
|
+ queryTdbDay(date, {getParams}).then(res => {
|
|
|
this.tindoorFillRate = res.tindoorFillRate;
|
|
|
console.log("室内温度满足率", res);
|
|
|
let content = res.content;
|