去掉普通设备选中时高亮

This commit is contained in:
2025-09-20 17:34:18 +08:00
parent 983b929d90
commit 02e9f9b9a3

View File

@@ -37,7 +37,7 @@
default-expand-all
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
:row-class-name="tableRowClassName"
highlight-current-row>
:highlight-current-row="false">
<el-table-column width="40"></el-table-column>
<el-table-column prop="id" label="设备ID" min-width="80" />
<el-table-column prop="name" label="设备名称" min-width="120" />
@@ -210,7 +210,7 @@ export default {
await this.loadDevices();
},
// 为区域主控设备添加高亮
// 为区域主控设备添加静态高亮样式
tableRowClassName({ row, rowIndex }) {
if (row.type === 'area_controller') {
return 'current-row';
@@ -258,6 +258,11 @@ export default {
margin-top: 15px;
}
/* 确保区域主控设备始终高亮显示 */
:deep(.current-row) {
background-color: #f5f7fa !important;
}
@media (max-width: 768px) {
.device-list {
padding: 10px;