This commit is contained in:
zoujiandong
2024-06-13 17:36:07 +08:00
parent 3f8c0900a6
commit bff706590f
3 changed files with 41 additions and 1 deletions
+5 -1
View File
@@ -15,7 +15,8 @@
>
<template #default="{ node, data }">
<span class="custom-tree-node" >
<span>{{ node.label }}</span>
<span>{{ node.label }}-{{ data.custom_id}}</span>
<span >
<icon-plus-circle-fill v-has="'admin:sysArea:add'" @click="append(data)" title="添加" style="margin-left: 8px;font-size: 16px;color:#165DFF" v-if="node.level!=3"/>
<icon-edit title="修改" v-has="'admin:sysArea:edit'" @click="edit(node, data)" style="margin-left: 8px;font-size: 16px;color:#165DFF"/>
@@ -147,6 +148,7 @@ const handleNodeClick = (data) => {
level:0,
label:item.area_name,
id:item.area_id,
custom_id:item.area_id,
parent_id:item.parent_id
}
});
@@ -157,6 +159,7 @@ const handleNodeClick = (data) => {
return {
label:item.area_name,
level:1,
custom_id:item.area_id,
id:item.area_id,
parent_id:item.parent_id
}
@@ -168,6 +171,7 @@ const handleNodeClick = (data) => {
return {
isLeaf: true,
level:2,
custom_id:item.area_id,
label:item.area_name,
id:item.area_id,
parent_id:item.parent_id