ziwen 1 year ago
parent
commit
9d67facd9e
1 changed files with 5 additions and 0 deletions
  1. 5 0
      controllers/data_manage/edb_classify.go

+ 5 - 0
controllers/data_manage/edb_classify.go

@@ -836,6 +836,11 @@ func (this *EdbClassifyController) ItemsV3() {
 				item.Button = button
 
 				if existItems, ok := rootTwoChildMap[item.ClassifyId]; ok {
+					for _, existItem := range existItems {
+						button := data.GetPredictEdbOpButton(this.SysUser, v.SysUserId)
+						button.AddButton = false //不管有没有权限,指标都是没有添加按钮的
+						existItem.Button = button
+					}
 					item.Children = existItems
 				} else {
 					items := make([]*data_manage.EdbClassifyItems, 0)