|
@@ -205,28 +205,29 @@ export default {
|
|
|
this.energySavingRate = ''
|
|
|
this.chillerExecuteRateReal = ''
|
|
|
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)
|
|
|
+ console.log('res', 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) {
|
|
@@ -271,9 +272,37 @@ export default {
|
|
|
this.similarDay = {}
|
|
|
this.samples = []
|
|
|
energyDayQuery(date, {}).then(res => {
|
|
|
+ console.log('sssssssssss', res)
|
|
|
if (res.result == 'success') {
|
|
|
// 本日概况
|
|
|
this.current = res.current ? res.current : {}
|
|
|
+ if (Object.keys(res.current).length > 0) {
|
|
|
+ this.energySavingRate = res.current.energySavingRate
|
|
|
+ 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)
|
|
|
+ // 准确率
|
|
|
+ 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)
|
|
|
+ }
|
|
|
console.log('相似度', this.current.similarity)
|
|
|
// 相似日概况
|
|
|
this.similarDay = res.similarDay ? res.similarDay : {}
|