|
@@ -9,11 +9,9 @@
|
|
<span>单日运行评价</span>
|
|
<span>单日运行评价</span>
|
|
</div>
|
|
</div>
|
|
<ul class='MicrYaHei'>
|
|
<ul class='MicrYaHei'>
|
|
- <div style='min-width:300px;min-height:30px;cursor: pointer;' @click='jumpIndex'></div>
|
|
|
|
|
|
+ <router-link style='display: inline-block;min-width:300px;min-height:30px;cursor: pointer;' :to='{path:"/evaluate"}'></router-link>
|
|
<div>
|
|
<div>
|
|
- <li :class='{current: num == 1}' @click='changeNum(1)'>室内温度</li>
|
|
|
|
- <li :class='{current: num==2}' @click='changeNum(2)'>节能率</li>
|
|
|
|
- <li :class='{current: num==3}' @click='changeNum(3)'>执行率</li>
|
|
|
|
|
|
+ <li v-for='(item,index) in tabArr' :key='index' :class='{current:num==`${index+1}`}' @click='changeNum(`${index+1}`)'>{{item}}</li>
|
|
</div>
|
|
</div>
|
|
<div class='count-top-right'>
|
|
<div class='count-top-right'>
|
|
<date-temp v-if='date' @pickerVal='pickerVal' :date='date'></date-temp>
|
|
<date-temp v-if='date' @pickerVal='pickerVal' :date='date'></date-temp>
|
|
@@ -27,10 +25,10 @@
|
|
<el-switch v-model='value2' @change='changeNum("1")'></el-switch>
|
|
<el-switch v-model='value2' @change='changeNum("1")'></el-switch>
|
|
</div>
|
|
</div>
|
|
<div class='count-bottom-content'>
|
|
<div class='count-bottom-content'>
|
|
- <ev-two-table v-if='dataList.length>=0' :switch='value2' :dataList='dataList' :value2='value2'></ev-two-table>
|
|
|
|
|
|
+ <ev-two-table v-if='dataList.length>0' :switch='value2' :dataList='dataList' :value2='value2'></ev-two-table>
|
|
</div>
|
|
</div>
|
|
<div class='count-bottom-foot'>
|
|
<div class='count-bottom-foot'>
|
|
- <ev-stacked-line v-if='stackArr.length>=0' :stackArr='stackArr'></ev-stacked-line>
|
|
|
|
|
|
+ <ev-stacked-line v-if='stackArr.length>0' :stackArr='stackArr'></ev-stacked-line>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div v-show='num == 2'>
|
|
<div v-show='num == 2'>
|
|
@@ -73,10 +71,13 @@ import EvHistory from './evHistory'
|
|
import DateTemp from './dateTemp'
|
|
import DateTemp from './dateTemp'
|
|
import { energyDayQuery, querychiller, queryTdbDay } from '@/api/evaluate/evaluate.js'
|
|
import { energyDayQuery, querychiller, queryTdbDay } from '@/api/evaluate/evaluate.js'
|
|
import { queryChillerExecuteInfo } from '@/api/appeal/appeal.js'
|
|
import { queryChillerExecuteInfo } from '@/api/appeal/appeal.js'
|
|
|
|
+import { formatterRes } from '@/utils/moment.js'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ formatterRes,
|
|
|
|
+ tabArr: ['室内温度', '节能率', '执行率'],
|
|
headText: '运行评价',
|
|
headText: '运行评价',
|
|
num: 1, //tab @
|
|
num: 1, //tab @
|
|
date: '', // 传过来的日期@
|
|
date: '', // 传过来的日期@
|
|
@@ -111,19 +112,14 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
init() {
|
|
init() {
|
|
- this.type = this.$route.query.type
|
|
|
|
- this.date = this.$route.query.name
|
|
|
|
- if (this.type) {
|
|
|
|
- this.num = this.type
|
|
|
|
- }
|
|
|
|
- if (this.date) {
|
|
|
|
- this.date = this.formatterStr3(new Date().getFullYear() + this.formatterStr2(this.date))
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- // @
|
|
|
|
- formatterStr2(str) {
|
|
|
|
- if (str) {
|
|
|
|
- return str.substring(0, 2) + '' + str.substring(3, 5)
|
|
|
|
|
|
+ this.type = this.$route.params.name
|
|
|
|
+ this.date = this.$route.params.date
|
|
|
|
+ if (this.type == '室内温度满足率') {
|
|
|
|
+ this.num = 1
|
|
|
|
+ } else if (this.type == '节能率') {
|
|
|
|
+ this.num = 2
|
|
|
|
+ } else {
|
|
|
|
+ this.num = 3
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 室内温度table @
|
|
// 室内温度table @
|
|
@@ -138,17 +134,8 @@ export default {
|
|
}
|
|
}
|
|
this.tindoorFillRate = ''
|
|
this.tindoorFillRate = ''
|
|
queryTdbDay(date, { getParams }).then(res => {
|
|
queryTdbDay(date, { getParams }).then(res => {
|
|
- if (res.tindoorFillRate != undefined) {
|
|
|
|
- if (res.tindoorFillRate == -9999) {
|
|
|
|
- this.tindoorFillRate = 'x'
|
|
|
|
- } else if (res.tindoorFillRate == -9998) {
|
|
|
|
- this.tindoorFillRate = '--'
|
|
|
|
- } else {
|
|
|
|
- this.tindoorFillRate = Number(this.tindoorFillRate).toFixed(1)
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- this.tindoorFillRate = '--'
|
|
|
|
- }
|
|
|
|
|
|
+ this.tindoorFillRate = this.formatterRes(res.tindoorFillRate, 0, 1)
|
|
|
|
+ console.log('室内温度满足率', this.tindoorFillRate)
|
|
let content = res.content
|
|
let content = res.content
|
|
this.stackArr = content
|
|
this.stackArr = content
|
|
if (content && content.length > 0) {
|
|
if (content && content.length > 0) {
|
|
@@ -172,12 +159,6 @@ export default {
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- // @
|
|
|
|
- formatterStr3(str) {
|
|
|
|
- if (str) {
|
|
|
|
- return str.substring(0, 4) + str.substring(4, 6) + str.substring(6, 8)
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
// 执行率@
|
|
// 执行率@
|
|
queryimplement(date) {
|
|
queryimplement(date) {
|
|
let params = {
|
|
let params = {
|
|
@@ -199,7 +180,6 @@ export default {
|
|
this.queryTdbDayMethod(date)
|
|
this.queryTdbDayMethod(date)
|
|
} else if (this.num == 2) {
|
|
} else if (this.num == 2) {
|
|
this.queryEnergyDayQuery(date)
|
|
this.queryEnergyDayQuery(date)
|
|
- this.querychillerMethod(date)
|
|
|
|
} else if (this.num == 3) {
|
|
} else if (this.num == 3) {
|
|
this.queryimplement(date)
|
|
this.queryimplement(date)
|
|
this.querychillerMethod(date)
|
|
this.querychillerMethod(date)
|
|
@@ -214,43 +194,10 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- this.accuracy = ''
|
|
|
|
- this.energySavingRate = ''
|
|
|
|
this.chillerExecuteRateReal = ''
|
|
this.chillerExecuteRateReal = ''
|
|
querychiller(params).then(res => {
|
|
querychiller(params).then(res => {
|
|
- // // 节能率
|
|
|
|
- // if (res.content[0].energySavingRate != undefined) {
|
|
|
|
- // if (res.content[0].energySavingRate == -9999) {
|
|
|
|
- // this.energySavingRate = 'x'
|
|
|
|
- // } else {
|
|
|
|
- // this.energySavingRate = res.content[0].energySavingRate.toFixed(1)
|
|
|
|
- // }
|
|
|
|
- // } else {
|
|
|
|
- // this.energySavingRate = '--'
|
|
|
|
- // }
|
|
|
|
- // console.log('节能率', this.energySavingRate)
|
|
|
|
- // // 准确率
|
|
|
|
- // if (res.content[0].accuracy != undefined) {
|
|
|
|
- // if (res.content[0].accuracy == -9999) {
|
|
|
|
- // this.accuracy = 'x'
|
|
|
|
- // } else {
|
|
|
|
- // this.accuracy = res.content[0].accuracy.toFixed(1)
|
|
|
|
- // }
|
|
|
|
- // } else {
|
|
|
|
- // this.accuracy = '--'
|
|
|
|
- // }
|
|
|
|
- // console.log('准确率', this.accuracy)
|
|
|
|
-
|
|
|
|
//执行率
|
|
//执行率
|
|
- if (res.content[0].chillerExecuteRateReal != undefined) {
|
|
|
|
- if (res.content[0].chillerExecuteRateReal == -9999) {
|
|
|
|
- this.chillerExecuteRateReal = 'x'
|
|
|
|
- } else {
|
|
|
|
- this.chillerExecuteRateReal = res.content[0].chillerExecuteRateReal.toFixed(1)
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- this.chillerExecuteRateReal = '--'
|
|
|
|
- }
|
|
|
|
|
|
+ this.chillerExecuteRateReal = this.formatterRes(res.content[0].chillerExecuteRateReal, 0, 1)
|
|
console.log('执行率', this.chillerExecuteRateReal)
|
|
console.log('执行率', this.chillerExecuteRateReal)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -270,13 +217,9 @@ export default {
|
|
if (val) {
|
|
if (val) {
|
|
this.dateVal = this.formatterStr(val)
|
|
this.dateVal = this.formatterStr(val)
|
|
this.changeNumMethod(this.dateVal)
|
|
this.changeNumMethod(this.dateVal)
|
|
- // console.log(this.dateVal);
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- // @
|
|
|
|
- jumpIndex() {
|
|
|
|
- this.$router.push('/evaluate')
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
// 节能率@
|
|
// 节能率@
|
|
queryEnergyDayQuery(date) {
|
|
queryEnergyDayQuery(date) {
|
|
this.maxArr = []
|
|
this.maxArr = []
|
|
@@ -290,31 +233,11 @@ export default {
|
|
if (Object.keys(res.current).length > 0) {
|
|
if (Object.keys(res.current).length > 0) {
|
|
this.energySavingRate = res.current.energySavingRate
|
|
this.energySavingRate = res.current.energySavingRate
|
|
this.accuracy = res.current.accuracy
|
|
this.accuracy = res.current.accuracy
|
|
-
|
|
|
|
// 节能率
|
|
// 节能率
|
|
- if (this.energySavingRate != undefined) {
|
|
|
|
- if (this.energySavingRate == -9999) {
|
|
|
|
- this.energySavingRate = 'x'
|
|
|
|
- } else {
|
|
|
|
- this.energySavingRate = this.energySavingRate.toFixed(1)
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- this.energySavingRate = '--'
|
|
|
|
- }
|
|
|
|
- console.log('节能率', this.energySavingRate)
|
|
|
|
|
|
+ this.energySavingRate = this.formatterRes(this.energySavingRate, 0, 1)
|
|
// 准确率
|
|
// 准确率
|
|
- if (this.accuracy != undefined) {
|
|
|
|
- if (this.accuracy == -9999) {
|
|
|
|
- this.accuracy = 'x'
|
|
|
|
- } else {
|
|
|
|
- this.accuracy = this.accuracy.toFixed(1)
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- this.accuracy = '--'
|
|
|
|
- }
|
|
|
|
- console.log('准确率', this.accuracy)
|
|
|
|
|
|
+ this.accuracy = this.formatterRes(this.accuracy, 0, 1)
|
|
}
|
|
}
|
|
- console.log('相似度', this.current.similarity)
|
|
|
|
// 相似日概况
|
|
// 相似日概况
|
|
this.similarDay = res.similarDay ? res.similarDay : {}
|
|
this.similarDay = res.similarDay ? res.similarDay : {}
|
|
// 相似日列表
|
|
// 相似日列表
|
|
@@ -333,35 +256,26 @@ export default {
|
|
maxEnergy = this.maxMethod(this.sortMethod(energy))
|
|
maxEnergy = this.maxMethod(this.sortMethod(energy))
|
|
this.maxArr.push(maxOutsiteTemp, maxIndoorTemp, maxEnergy)
|
|
this.maxArr.push(maxOutsiteTemp, maxIndoorTemp, maxEnergy)
|
|
} else {
|
|
} else {
|
|
- if (this.current.tempOutdoor == '-9999') {
|
|
|
|
- this.maxArr[0] = 'x'
|
|
|
|
- } else if (this.current.tempOutdoor == '-9998') {
|
|
|
|
- this.maxArr[0] = '--'
|
|
|
|
- } else {
|
|
|
|
- this.maxArr[0] = this.current.tempOutdoor * 1.2
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- if (this.current.tempIndoor == '-9999') {
|
|
|
|
- this.maxArr[1] = 'x'
|
|
|
|
- } else if (this.current.tempIndoor == '-9998') {
|
|
|
|
- this.maxArr[1] = '--'
|
|
|
|
- } else {
|
|
|
|
- this.maxArr[1] = this.current.tempIndoor * 1.2
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- if (this.current.energy == '-9999') {
|
|
|
|
- this.maxArr[2] = 'x'
|
|
|
|
- } else if (this.current.energy == '-9998') {
|
|
|
|
- this.maxArr[2] = '--'
|
|
|
|
- } else {
|
|
|
|
- this.maxArr[2] = this.current.energy * 1.2
|
|
|
|
- }
|
|
|
|
|
|
+ this.maxArr[0] = this.currentN(this.current.tempOutdoor, 0, 1)
|
|
|
|
+ this.maxArr[1] = this.currentN(this.current.tempIndoor, 0, 1)
|
|
|
|
+ this.maxArr[2] = this.currentN(this.current.energy, 0, 1)
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
this.$message.error(res.message)
|
|
this.$message.error(res.message)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ currentN(data) {
|
|
|
|
+ let num
|
|
|
|
+ if (data == '-9999') {
|
|
|
|
+ num = 'x'
|
|
|
|
+ } else if (data == '-9998') {
|
|
|
|
+ num = '--'
|
|
|
|
+ } else {
|
|
|
|
+ num = data * 1.2
|
|
|
|
+ }
|
|
|
|
+ return num
|
|
|
|
+ },
|
|
// @
|
|
// @
|
|
sortMethod(arr) {
|
|
sortMethod(arr) {
|
|
if (arr instanceof Array) {
|
|
if (arr instanceof Array) {
|