Skip to content

Commit

Permalink
feat(projects): 修复在线离线状态不正确
Browse files Browse the repository at this point in the history
修复dgiot-amis 组件在切换账号后,认证仍为上一次的信息
  • Loading branch information
h7ml committed Jun 21, 2022
1 parent 65c70a7 commit 7ea7404
Showing 1 changed file with 12 additions and 29 deletions.
41 changes: 12 additions & 29 deletions src/views/DeviceCloud/manage/devicelist.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
v-model="topoFlag"
footer-hide
:query="routerInfo.query"
width="90%"
width="1200"
@on-cancel="closeModal"
>
<span slot="title" v-if="false"></span>
Expand Down Expand Up @@ -331,33 +331,9 @@
width="80"
>
<template #default="{ row }">
<span v-if="row.status == 'ONLINE'" :class="row.status">
{{ $translateTitle('product.online') }}
</span>
<el-tooltip
v-if="row.status == 'ONLINE'"
:content="$translateTitle('equipment.thedeviceisonline')"
placement="top"
>
<i class="el-icon-question" />
</el-tooltip>
<span v-if="row.status == 'OFFLINE'" :class="row.status">
{{ $translateTitle('product.offline') }}
</span>
<el-tooltip
v-if="row.status == 'OFFLINE'"
:content="$translateTitle('equipment.thedeviceisoffline')"
placement="top"
>
<i class="el-icon-question" />
</el-tooltip>
<span
v-if="row.status != 'OFFLINE' && row.status != 'ONLINE'"
:class="row.status"
>
<!-- 未注册 -->
{{ $translateTitle('product.unregistered') }}
</span>
<el-tag :type="row.status == 'ONLINE' ? 'success' : 'warning'">
{{ row.status == 'ONLINE' ? '在线' : '离线' }}
</el-tag>
</template>
</el-table-column>
<el-table-column
Expand Down Expand Up @@ -1134,7 +1110,14 @@
},
}
</script>

<style>
.ivu-modal-body {
padding: 0;
}
.el-main {
padding: 0;
}
</style>
<style lang="scss" scoped>
.xinmahe-container {
width: 100%;
Expand Down

0 comments on commit 7ea7404

Please sign in to comment.