commit
This commit is contained in:
@@ -299,7 +299,7 @@ public class SysUnitController {
|
|||||||
)
|
)
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
List<Tree<String>> treeList = TreeUtil.build(nodeList, StrUtil.blankToDefault(pid, "J"));
|
List<Tree<String>> treeList = TreeUtil.build(nodeList, StrUtil.blankToDefault(pid, "0"));
|
||||||
return Result.success(treeList);
|
return Result.success(treeList);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return Result.error();
|
return Result.error();
|
||||||
|
|||||||
@@ -6,21 +6,21 @@ layout("/layouts/platform.html"){
|
|||||||
background: transparent;
|
background: transparent;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 节点行高调整 */
|
/* 节点行高调整 */
|
||||||
.custom-tree .el-tree-node {
|
.custom-tree .el-tree-node {
|
||||||
margin: 2px 0;
|
margin: 2px 0;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* 选中状态 */
|
/* 选中状态 */
|
||||||
.custom-tree .el-tree-node.is-current > .el-tree-node__content {
|
.custom-tree .el-tree-node.is-current > .el-tree-node__content {
|
||||||
background: #e8f4ff;
|
background: #e8f4ff;
|
||||||
border-left: 3px solid #409eff;
|
border-left: 3px solid #409eff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 节点内容区域 */
|
/* 节点内容区域 */
|
||||||
.custom-tree .el-tree-node__content {
|
.custom-tree .el-tree-node__content {
|
||||||
height: 36px;
|
height: 36px;
|
||||||
@@ -29,7 +29,7 @@ layout("/layouts/platform.html"){
|
|||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 自定义节点内容 */
|
/* 自定义节点内容 */
|
||||||
.custom-tree-node {
|
.custom-tree-node {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -37,8 +37,8 @@ layout("/layouts/platform.html"){
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* 文件夹图标颜色优化 */
|
/* 文件夹图标颜色优化 */
|
||||||
.el-icon-folder {
|
.el-icon-folder {
|
||||||
color: #909399;
|
color: #909399;
|
||||||
@@ -46,7 +46,7 @@ layout("/layouts/platform.html"){
|
|||||||
.el-icon-folder-opened {
|
.el-icon-folder-opened {
|
||||||
color: #409eff;
|
color: #409eff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 展开时图标旋转动画 */
|
/* 展开时图标旋转动画 */
|
||||||
.custom-tree .el-tree-node__expand-icon {
|
.custom-tree .el-tree-node__expand-icon {
|
||||||
transition: transform 0.3s ease;
|
transition: transform 0.3s ease;
|
||||||
@@ -54,7 +54,7 @@ layout("/layouts/platform.html"){
|
|||||||
.custom-tree .el-tree-node__expand-icon.expanded {
|
.custom-tree .el-tree-node__expand-icon.expanded {
|
||||||
transform: rotate(90deg);
|
transform: rotate(90deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 节点标签 */
|
/* 节点标签 */
|
||||||
.node-label {
|
.node-label {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
@@ -62,13 +62,13 @@ layout("/layouts/platform.html"){
|
|||||||
color: #303133;
|
color: #303133;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 禁用展开图标(当无子节点时) */
|
/* 禁用展开图标(当无子节点时) */
|
||||||
.custom-tree .el-tree-node__expand-icon.is-leaf {
|
.custom-tree .el-tree-node__expand-icon.is-leaf {
|
||||||
color: transparent;
|
color: transparent;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div id="app" v-cloak>
|
<div id="app" v-cloak>
|
||||||
<el-row type="flex" :gutter="20" style="height: calc(100vh - 126px)">
|
<el-row type="flex" :gutter="20" style="height: calc(100vh - 126px)">
|
||||||
@@ -82,7 +82,6 @@ layout("/layouts/platform.html"){
|
|||||||
:expand-on-click-node="false"
|
:expand-on-click-node="false"
|
||||||
:props="{ children: 'children', label: 'name' }"
|
:props="{ children: 'children', label: 'name' }"
|
||||||
node-key="id"
|
node-key="id"
|
||||||
default-expand-all
|
|
||||||
@node-click="treeNodeClick"
|
@node-click="treeNodeClick"
|
||||||
:filter-node-method="filterNode"
|
:filter-node-method="filterNode"
|
||||||
highlight-current
|
highlight-current
|
||||||
|
|||||||
Reference in New Issue
Block a user