|
@@ -27,7 +27,8 @@ func ChartClassifyItemsMakeTree(sysUser *system.Admin, allNode []*data_manage.Ch
|
|
|
node.HaveOperaAuth = data_manage_permission.CheckEdbClassifyPermissionByPermissionIdList(node.IsJoinPermission, node.ChartClassifyId, permissionClassifyIdList)
|
|
|
button := GetChartClassifyOpButton(sysUser, node.SysUserId, node.HaveOperaAuth)
|
|
|
node.Button = button
|
|
|
-
|
|
|
+ node.Disable = true
|
|
|
+
|
|
|
childs, _ := chartClassifyHaveChild(allNode, node) //判断节点是否有子节点并返回
|
|
|
if len(childs) > 0 {
|
|
|
for _, child := range childs {
|
|
@@ -36,7 +37,6 @@ func ChartClassifyItemsMakeTree(sysUser *system.Admin, allNode []*data_manage.Ch
|
|
|
if child.Level == 6 {
|
|
|
childButton.AddButton = false //第六级的话,默认图表都是没有添加按钮的
|
|
|
}
|
|
|
- child.Disable = true
|
|
|
if child.Level == level {
|
|
|
child.Disable = false
|
|
|
}
|