|
|
@@ -17,19 +17,11 @@
|
|
|
class="l-flex__fill c-sibling-item nearest u-color--black u-font-size--sm u-bold"
|
|
|
:text="name"
|
|
|
/>
|
|
|
- <template v-if="hasStatus">
|
|
|
- <el-tooltip
|
|
|
- v-if="isOnline && hasPower"
|
|
|
- placement="top"
|
|
|
- >
|
|
|
- <template #content>{{ powerStatusTip }}</template>
|
|
|
- <i
|
|
|
- class="l-flex__none c-sibling-item near o-device__power"
|
|
|
- :class="switchStatusClass"
|
|
|
- @click.stop
|
|
|
- />
|
|
|
- </el-tooltip>
|
|
|
- </template>
|
|
|
+ <i
|
|
|
+ v-if="hasStatus && isOnline && hasPower"
|
|
|
+ class="l-flex__none c-sibling-item near o-device__power"
|
|
|
+ :class="switchStatusClass"
|
|
|
+ />
|
|
|
</div>
|
|
|
<div class="l-flex__none l-flex--row c-sibling-item--v nearest o-device__block u-relative u-color--blue">
|
|
|
<i class="l-flex__none c-sibling-item el-icon-location-outline u-font-size" />
|
|
|
@@ -76,15 +68,6 @@ export default {
|
|
|
name: 'DeviceCardSimple',
|
|
|
mixins: [deviceMixin],
|
|
|
computed: {
|
|
|
- powerStatusTip () {
|
|
|
- return this.hasPower && this.hasPowerRealStatus
|
|
|
- ? this.powerStatus === Status.WARNING
|
|
|
- ? `电源状态异常,${this.powerSwitchStatus === Power.LOADING ? '检测' : '最后上报'}时间 ${this.timestamp}`
|
|
|
- : this.isPowerOpened
|
|
|
- ? '屏幕已开启'
|
|
|
- : '屏幕未开启'
|
|
|
- : ''
|
|
|
- },
|
|
|
switchStatusClass () {
|
|
|
return this.powerStatus === Status.WARNING
|
|
|
? 'el-icon-warning u-color--warning u-font-size--xl'
|