|
@@ -183,6 +183,10 @@ const treeProps = {
|
|
|
label: 'title',
|
|
|
children: 'children',
|
|
|
isLeaf: 'notExsitChild',
|
|
|
+ disabled: (data) => {
|
|
|
+ // 当节点类型为6时不能能选择
|
|
|
+ return data.nodeType === 6
|
|
|
+ },
|
|
|
}
|
|
|
|
|
|
// 加载节点数据
|
|
@@ -228,7 +232,7 @@ const handleCheckChange = (data, checked) => {
|
|
|
})
|
|
|
}
|
|
|
currentNode.value = checked ? data : null
|
|
|
- console.log('当前选中节点:', currentNode.value)
|
|
|
+
|
|
|
}
|
|
|
|
|
|
// 搜索功能
|
|
@@ -328,36 +332,7 @@ const submitMove = async (type)=>{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-.custom-tree-node {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- font-size: 14px;
|
|
|
-
|
|
|
- .el-icon {
|
|
|
- margin-right: 4px;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-:deep(.el-tree-node__content) {
|
|
|
- height: 32px;
|
|
|
-
|
|
|
- &:hover {
|
|
|
- background-color: var(--el-tree-node-hover-bg-color);
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
|
|
|
-:deep(.el-tree) {
|
|
|
- // 自定义复选框样式使其看起来像单选框
|
|
|
- .el-checkbox {
|
|
|
- .el-checkbox__inner {
|
|
|
- border-radius: 50%;
|
|
|
- &::after {
|
|
|
- transform: rotate(45deg) scaleY(1);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
// 添加树卡片样式
|
|
|
.tree-card {
|
|
|
height: 100%;
|