|
|
@@ -36,7 +36,7 @@
|
|
|
<template v-if="isOnline">
|
|
|
<i
|
|
|
v-if="loadingTimeline"
|
|
|
- class="l-flex__none el-icon-loading"
|
|
|
+ class="l-flex__auto l-flex--row el-icon-loading"
|
|
|
/>
|
|
|
<template v-else-if="current">
|
|
|
<auto-text
|
|
|
@@ -65,9 +65,7 @@
|
|
|
</span>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
- <span class="l-flex__auto l-flex--row u-bold">
|
|
|
- 当前设备离线了
|
|
|
- </span>
|
|
|
+ <span class="l-flex__auto l-flex--row u-bold">{{ lastOnline }}</span>
|
|
|
</template>
|
|
|
</div>
|
|
|
<div class="l-flex__none o-device__next">
|
|
|
@@ -126,6 +124,11 @@ export default {
|
|
|
address () {
|
|
|
return this.device.address
|
|
|
},
|
|
|
+ lastOnline () {
|
|
|
+ return this.device.lastOnline
|
|
|
+ ? `${this.device.lastOnline} 离线`
|
|
|
+ : '当前设备离线了'
|
|
|
+ },
|
|
|
isOnline () {
|
|
|
return this.device.onlineStatus === 1
|
|
|
},
|