|
|
@@ -5,7 +5,10 @@
|
|
|
v-for="(tag, index) in tags"
|
|
|
:key="index"
|
|
|
class="tag-item"
|
|
|
- :class="{ 'active': selectedIndex === index }"
|
|
|
+ :class="{
|
|
|
+ 'active': selectedIndex === index,
|
|
|
+ 'alarm-red': tag.ifAlarm === 'alarm' // 新增的条件类
|
|
|
+ }"
|
|
|
@click="selectTag(index)"
|
|
|
>
|
|
|
<span class="property">{{ tag.modelName }}</span>
|
|
|
@@ -109,4 +112,7 @@ const selectTag = (index) => {
|
|
|
cursor: not-allowed;
|
|
|
filter: grayscale(0.8);
|
|
|
}
|
|
|
+.tag-item.alarm-red {
|
|
|
+ background-color: #f3afaf;
|
|
|
+}
|
|
|
</style>
|