|
@@ -33,26 +33,26 @@
|
|
|
<div class='advice MicrYaHei'>
|
|
|
<span>策略建议</span>
|
|
|
<span>冷机台数</span>
|
|
|
- <span>{{shutDown(item.recommend.chillerNumSetL,true,null)}} 大{{shutDown(item.recommend.chillerNumSetS,true,null)}} 小</span>
|
|
|
+ <span>{{formatterRes(item.recommend.chillerNumSetL,true,0)}} 大{{formatterRes(item.recommend.chillerNumSetS,true,0)}} 小</span>
|
|
|
<span>冷机出水温度</span>
|
|
|
- <span>{{shutDown(item.recommend.chillWaterOutTempSet,false,1)}} °C</span>
|
|
|
+ <span>{{formatterRes(item.recommend.chillWaterOutTempSet,false,1)}} °C</span>
|
|
|
</div>
|
|
|
<div class='advice'>
|
|
|
<span>实际执行</span>
|
|
|
<span>冷机台数</span>
|
|
|
<span>
|
|
|
<font
|
|
|
- :class='shutDown(item.real.chillerNumSetLOrg,true,null)!=shutDown(item.recommend.chillerNumSetL,true,null)?"reds":""'
|
|
|
- >{{shutDown(item.real.chillerNumSetLOrg,true,null)}}</font> 大
|
|
|
+ :class='formatterRes(item.real.chillerNumSetLOrg,true,0)!=formatterRes(item.recommend.chillerNumSetL,true,0)?"reds":""'
|
|
|
+ >{{formatterRes(item.real.chillerNumSetLOrg,true,0)}}</font> 大
|
|
|
<font
|
|
|
- :class='shutDown(item.real.chillerNumSetSOrg,true,null)!=shutDown(item.recommend.chillerNumSetS,true,null)?"reds":""'
|
|
|
- >{{shutDown(item.real.chillerNumSetSOrg,true,null)}}</font> 小
|
|
|
+ :class='formatterRes(item.real.chillerNumSetSOrg,true,0)!=formatterRes(item.recommend.chillerNumSetS,true,0)?"reds":""'
|
|
|
+ >{{formatterRes(item.real.chillerNumSetSOrg,true,0)}}</font> 小
|
|
|
</span>
|
|
|
<span>冷机出水温度</span>
|
|
|
<span>
|
|
|
<font
|
|
|
- :class='shutDown(item.real.chillWaterOutTempSetOrg,false,1)!=shutDown(item.recommend.chillWaterOutTempSet,false,1)?"reds":""'
|
|
|
- >{{shutDown(item.real.chillWaterOutTempSetOrg,false,1)}}</font> °C
|
|
|
+ :class='formatterRes(item.real.chillWaterOutTempSetOrg,false,1)!=formatterRes(item.recommend.chillWaterOutTempSet,false,1)?"reds":""'
|
|
|
+ >{{formatterRes(item.real.chillWaterOutTempSetOrg,false,1)}}</font> °C
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class='remark'>备注:{{item.remarks||'--'}}</div>
|
|
@@ -180,6 +180,24 @@ export default {
|
|
|
this.init()
|
|
|
},
|
|
|
methods: {
|
|
|
+ formatterRes(res, type, num) {
|
|
|
+ if (res == '-9999') {
|
|
|
+ return 'x'
|
|
|
+ } else if (res == '-9998') {
|
|
|
+ if (type) {
|
|
|
+ return 0
|
|
|
+ } else {
|
|
|
+ return '--'
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (res != undefined) {
|
|
|
+ res = res.toFixed(num)
|
|
|
+ } else {
|
|
|
+ return '--'
|
|
|
+ }
|
|
|
+ return res
|
|
|
+ }
|
|
|
+ },
|
|
|
lookQuickData(item) {
|
|
|
this.viewSnapshots = true
|
|
|
this.time = item.recommend.time
|