|
@@ -1,22 +1,22 @@
|
|
|
<template>
|
|
|
<div class='count-card-box'>
|
|
|
<div class='count-card' v-for='(item,index) in cardList' :key='index'>
|
|
|
- <div class='card-div1' v-if="item.recommend.onTime">执行时间:{{item.recommend?formatterStr2(item.recommend.onTime):'--'}}</div>
|
|
|
- <div class='card-div1' v-else-if="item.recommend.offTime">执行时间:{{item.recommend?formatterStr2(item.recommend.offTime):'--'}}</div>
|
|
|
+ <div class='card-div1' v-if='item.recommend.onTime'>执行时间:{{item.recommend?formatterStr2(item.recommend.onTime):'--'}}</div>
|
|
|
+ <div class='card-div1' v-else-if='item.recommend.offTime'>执行时间:{{item.recommend?formatterStr2(item.recommend.offTime):'--'}}</div>
|
|
|
<div class='card-div1' v-else>执行时间:{{item.recommend?formatterStr2(item.recommend.time):'--'}}</div>
|
|
|
<div class='card-div2 MicrYaHei'>
|
|
|
<span>策略建议</span>
|
|
|
<span>冷机台数</span>
|
|
|
<span>
|
|
|
- <b style='width:50px;display: inline-block;text-align: center;'>{{shutDown(item.recommend.chillerNumSetL,true,null)}}</b>
|
|
|
+ <b style='width:50px;display: inline-block;text-align: center;'>{{formatterRes(item.recommend.chillerNumSetL,true,0)}}</b>
|
|
|
大
|
|
|
<b
|
|
|
style='width:50px;display: inline-block;text-align: center;'
|
|
|
- >{{shutDown(item.recommend.chillerNumSetS,true,null)}}</b>小
|
|
|
+ >{{formatterRes(item.recommend.chillerNumSetS,true,0)}}</b>小
|
|
|
</span>
|
|
|
<span>冷机出水温度</span>
|
|
|
<span>
|
|
|
- <b style='width:50px;display: inline-block;text-align: center;'>{{shutDown(item.recommend.chillWaterOutTempSet,false,1)}}</b> °C
|
|
|
+ <b style='width:50px;display: inline-block;text-align: center;'>{{formatterRes(item.recommend.chillWaterOutTempSet,false,1)}}</b> °C
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class='card-div3 MicrYaHei'>
|
|
@@ -27,12 +27,12 @@
|
|
|
v-if='item.real'
|
|
|
style='width:50px;display: inline-block;text-align: center;'
|
|
|
:class='item.recommend.chillerNumSetL==item.real.chillerNumSetLOrg?"":"red"'
|
|
|
- >{{shutDown(item.real.chillerNumSetLOrg,true,null)}}</b>大
|
|
|
+ >{{formatterRes(item.real.chillerNumSetLOrg,true,0)}}</b>大
|
|
|
<b
|
|
|
v-if='item.real'
|
|
|
style='width:50px;display: inline-block;text-align: center;'
|
|
|
:class='item.recommend.chillerNumSetS==item.real.chillerNumSetSOrg?"":"red"'
|
|
|
- >{{shutDown(item.real.chillerNumSetSOrg,true,null)}}</b> 小
|
|
|
+ >{{formatterRes(item.real.chillerNumSetSOrg,true,0)}}</b> 小
|
|
|
</span>
|
|
|
<span>冷机出水温度</span>
|
|
|
<span>
|
|
@@ -40,7 +40,7 @@
|
|
|
v-if='item.real'
|
|
|
style='width:50px;display: inline-block;text-align: center;'
|
|
|
:class='item.recommend.chillWaterOutTempSet==item.real.chillWaterOutTempSetOrg?"":"red"'
|
|
|
- >{{shutDown(item.real.chillWaterOutTempSetOrg,false,1)}}</b>°C
|
|
|
+ >{{formatterRes(item.real.chillWaterOutTempSetOrg,false,1)}}</b>°C
|
|
|
</span>
|
|
|
</div>
|
|
|
|
|
@@ -50,7 +50,7 @@
|
|
|
<img src='../../assets/completed.png' alt />
|
|
|
已按策略执行
|
|
|
</span>
|
|
|
- <template v-else-if="item.recommend.appealId" v-for='(item1,index) in titles'>
|
|
|
+ <template v-else-if='item.recommend.appealId' v-for='(item1,index) in titles'>
|
|
|
<template v-if='item1.id==item.recommend.appealId'>
|
|
|
<span class='card-div8' v-if='item1.status==302' :key='"l"+index'>
|
|
|
<img src='../../assets/processing.png' alt />
|
|
@@ -100,7 +100,6 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
lookQuickData(item) {
|
|
|
- console.log(item)
|
|
|
this.time = item.recommend.time
|
|
|
this.viewSnapshots = true
|
|
|
},
|
|
@@ -119,13 +118,29 @@ export default {
|
|
|
this.titles = res.content
|
|
|
})
|
|
|
},
|
|
|
+ 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
|
|
|
+ }
|
|
|
+ },
|
|
|
getAppealId() {
|
|
|
this.cardList.forEach(el => {
|
|
|
if (!el.recommend.isExecuted) {
|
|
|
- console.log(el)
|
|
|
this.ids.push(el.recommend.appealId)
|
|
|
}
|
|
|
- console.log(this.ids)
|
|
|
})
|
|
|
this.queryFlow(this.ids)
|
|
|
}
|