视频监控

This commit is contained in:
yanran200730
2022-04-21 16:11:45 +08:00
parent 49dabf912c
commit a01d79fe2f
2 changed files with 37 additions and 8 deletions

View File

@@ -221,9 +221,16 @@
},
renderTreeItem: function (h, {node, data}) {
let show = data.deviceStatus == 1 ? 'show' : ''
const ids = this.ids.split(',')
const index = ids.indexOf(data.id) + 1
console.log(index, ids, data.id)
if (node.isLeaf) {
return (
<div class="flexRow">
{index > 0 ?
<span>{ index }</span>
: ''
}
<i class={['iconfont', 'iconshipinjiankong', show]}/>
<div>{node.label}</div>
</div>
@@ -466,6 +473,17 @@
font-size: 14px;
color: #fff;
span {
width: 16px;
height: 16px;
line-height: 16px;
text-align: center;
color: #fff;
font-size: 12px;
border-radius: 1px;
background: #2266FF;
}
.iconfont {
color: #89b;