Browse Source

改bug

wangqin
hui 1 year ago
parent
commit
2dcb6985e3
  1. 13
      ruoyi-ui/src/views/JiHeExpressway/pages/service/board/index.vue

13
ruoyi-ui/src/views/JiHeExpressway/pages/service/board/index.vue

@ -57,9 +57,11 @@
:key="index" :key="index"
> >
<div class="title">{{ itm.deviceName }}</div> <div class="title">{{ itm.deviceName }}</div>
<img src="@/assets/jihe/images/offline.svg" class="wifi" v-if="item.deviceState==0 || item.deviceState==null"> <el-tooltip :content="(item.deviceState == 0 || item.deviceState == null) ? '离线' : '在线'" placement="top">
<img src="@/assets/jihe/images/online.svg" class="wifi" v-else> <img src="@/assets/jihe/images/offline.svg" class="state" v-if="item.deviceState==0 || item.deviceState==null">
<el-tooltip content="回读当前信息" placement="right"> <img src="@/assets/jihe/images/online.svg" class="state" v-else>
</el-tooltip>
<el-tooltip content="回读" placement="top">
<el-button <el-button
class="el-icon-tickets huiduButton" class="el-icon-tickets huiduButton"
@click.stop.prevent="____forkDeviceInfo(itm)" @click.stop.prevent="____forkDeviceInfo(itm)"
@ -528,9 +530,6 @@ export default {
} else { } else {
getBoardList(param).then((res) => { getBoardList(param).then((res) => {
res.data.forEach((item, index) => { res.data.forEach((item, index) => {
if(!item.iotDeviceId){
return
}
if (_.isString(item.otherConfig)) { if (_.isString(item.otherConfig)) {
item.otherConfig = JSON.parse(item.otherConfig); item.otherConfig = JSON.parse(item.otherConfig);
} }
@ -1292,7 +1291,7 @@ export default {
justify-content: space-between; justify-content: space-between;
width: 100%; width: 100%;
.title{ flex:1; width:0; overflow: hidden; text-overflow: ellipsis; word-break: keep-all;} .title{ flex:1; width:0; overflow: hidden; text-overflow: ellipsis; word-break: keep-all;}
.wifi{ width: 18px; height: 18px; margin-right: 4px;} .state{ width: 18px; height: 18px; margin-right: 4px;}
.huiduButton { .huiduButton {
background: transparent; background: transparent;
border: none; border: none;

Loading…
Cancel
Save