|
|
@@ -52,7 +52,7 @@
|
|
|
class="el-icon-loading u-color--white"
|
|
|
/>
|
|
|
<i
|
|
|
- v-if="isOnline && hasStatus"
|
|
|
+ v-if="isOnline && hasPower && hasPowerRealStatus"
|
|
|
class="o-device__status"
|
|
|
:class="switchStatusClass"
|
|
|
/>
|
|
|
@@ -124,7 +124,7 @@ export default {
|
|
|
return 'u-color--info light'
|
|
|
},
|
|
|
statusTip () {
|
|
|
- return this.hasPowerRealStatus
|
|
|
+ return this.hasPower && this.hasPowerRealStatus
|
|
|
? this.powerStatus === Status.WARNING
|
|
|
? `电源状态异常,${this.switchStatus === Power.LOADING ? '检测' : '最后上报'}时间 ${this.timestamp}`
|
|
|
: this.isPowerOpened
|