|
@@ -84,6 +84,7 @@
|
|
|
:key="b"
|
|
|
@mouseover="sethover(index, i, b)"
|
|
|
@click="clickEquipItem(a)"
|
|
|
+ v-bind:class="[a.selected ? 'li-active' : '']"
|
|
|
>
|
|
|
<div class="left">
|
|
|
<div class="showEyes">
|
|
@@ -140,6 +141,7 @@
|
|
|
:key="b"
|
|
|
@mouseover="sethover(10000, 10000, b)"
|
|
|
@click="clickEquipItem(a)"
|
|
|
+ v-bind:class="[a.selected ? 'li-active' : '']"
|
|
|
>
|
|
|
<div class="left">
|
|
|
<div class="showEyes">
|
|
@@ -341,6 +343,7 @@ export default {
|
|
|
},
|
|
|
// 点击设备实例
|
|
|
clickEquipItem(item) {
|
|
|
+ console.log("item", item);
|
|
|
// 选中 item
|
|
|
bus.$emit("chioceItem", item);
|
|
|
},
|
|
@@ -464,6 +467,9 @@ li {
|
|
|
height: 28px;
|
|
|
}
|
|
|
}
|
|
|
+ .li-active {
|
|
|
+ background: #f5f6f7;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|