bug修复和体验优化

This commit is contained in:
liub
2025-09-16 15:05:41 +08:00
parent 1c61f32cc8
commit a407fb7f7a
2 changed files with 37 additions and 19 deletions

View File

@ -11,10 +11,10 @@
</div>
<div class="treeContent">
<el-tree :data="treeData" :props="defaultProps" accordion @node-click="handleNodeClick">
<el-tree :data="treeData" :props="defaultProps" accordion @node-click="handleNodeClick" :highlight-current="true">
<template #default="{ node, data }">
<div class="custom-tree-node" :class="checkNode.val == data.id ? 'active' : ''">
<div class="custom-tree-node" >
<span :class="data.parentId != null ? '' : 'treeBold'">{{ node.label }}</span>
<div class="iconContent">
@ -613,6 +613,10 @@ var groupDelDevice = (row) => {
}
var showDevice = () => {
if(!checkNode.val){
alert("请先选择分组");
return;
}
Status.dialogDeviceVisible = true;
//获取所有
let promise1 = api.getNodeDevice({
@ -936,7 +940,8 @@ onMounted(() => {
}
.custom-tree-node.active {
background: rgba(228, 234, 240, 0.4) !important;
background: #80bcf966 !important;
color: #FFFFFF;
}