guoxiaohuan 5 years ago
parent
commit
a59b992cc5
2 changed files with 17 additions and 10 deletions
  1. 3 0
      src/views/evaluate/evHistory.vue
  2. 14 10
      src/views/evaluate/evTwoLevelMenu.vue

+ 3 - 0
src/views/evaluate/evHistory.vue

@@ -103,6 +103,9 @@ export default {
 }
 </script>
 <style lang="scss" scoped>
+.red {
+    color: #f54e45;
+}
 p {
     margin: 0;
     margin-top: 20px;

+ 14 - 10
src/views/evaluate/evTwoLevelMenu.vue

@@ -45,7 +45,7 @@
                             <div class='count-foot'>
                                 <div class='count-foot-title'>
                                     <span class='Micbold'>相似日概况</span>
-                                    <span class='MicrYaHei'>相似度</span>
+                                    <span class='MicrYaHei'>相似度{{current.similarity||'--'}}</span>
                                 </div>
                                 <div class='count-foot-table'>
                                     <ev-energy-table v-if='samples.length>=0' :samples='samples'></ev-energy-table>
@@ -151,9 +151,10 @@ export default {
             let getParams = {
                 isSatisfy: this.value2
             }
+            this.tindoorFillRate = ''
             queryTdbDay(date, { getParams }).then(res => {
-                this.tindoorFillRate = res.tindoorFillRate
-                console.log('室内温度满足率', res)
+                this.tindoorFillRate = res.tindoorFillRate != undefined ? res.tindoorFillRate.toFixed(1) : '--'
+                // console.log('室内温度满足率', res)
                 let content = res.content
                 this.stackArr = content
                 content.forEach(({ spaceDayRpt }) => {
@@ -173,7 +174,6 @@ export default {
                     i.isExpand = i.children.some(c => c.isSatisfy == false)
                     return i
                 })
-                console.log(this.dataList)
             })
         },
         // @
@@ -194,7 +194,7 @@ export default {
             }
             queryChillerExecuteInfo(params).then(res => {
                 this.cardList = res.data ? res.data : []
-                console.log('执行率', res)
+                // console.log('执行率', res)
             })
         },
         // 根据tab @
@@ -218,14 +218,16 @@ export default {
                     }
                 }
             }
+            this.accuracy = ''
+            this.energySavingRate = ''
             querychiller(params).then(res => {
-                console.log(res)
                 // 节能率
-                this.energySavingRate = res.content[0].energySavingRate ? res.content[0].energySavingRate : '--'
+                this.energySavingRate = res.content[0].energySavingRate != undefined ? res.content[0].energySavingRate.toFixed(1) : '--'
                 // 准确率
-                this.accuracy = res.content[0].accuracy ? res.content[0].accuracy : '--'
+                this.accuracy = res.content[0].accuracy != undefined ? res.content[0].accuracy.toFixed(1) : '--'
                 //执行率
-                this.chillerExecuteRateReal = res.content[0] ? res.content[0].chillerExecuteRateReal : ''
+                this.chillerExecuteRateReal =
+                    res.content[0].chillerExecuteRateReal != undefined ? res.content[0].chillerExecuteRateReal.toFixed(1) : ''
             })
         },
         // 点击tab @
@@ -254,8 +256,10 @@ export default {
         // 节能率@
         queryEnergyDayQuery(date) {
             this.maxArr = []
+            this.current = {}
+            this.similarDay = {}
+            this.samples = []
             energyDayQuery(date, {}).then(res => {
-                console.log(res)
                 if (res.result == 'success') {
                     // 本日概况
                     this.current = res.current ? res.current : {}