Преглед на файлове

Merge branch 'InsertNewDataButton'

zwxi преди 1 година
родител
ревизия
327ad09fbc
променени са 1 файла, в които са добавени 4 реда и са изтрити 5 реда
  1. 4 5
      services/data/edb_classify.go

+ 4 - 5
services/data/edb_classify.go

@@ -1097,11 +1097,10 @@ func GetEdbOpButton(sysUser *system.Admin, belongUserId, edbType, edbInfoType in
 		button.OpButton = true
 		button.OpButton = true
 		button.DeleteButton = true
 		button.DeleteButton = true
 		button.MoveButton = true
 		button.MoveButton = true
-
-		// ETA指标的基础指标才允许插入值
-		if edbInfoType == 0 && edbType == 1 {
-			button.InsertNewDataButton = true
-		}
+	}
+	// ETA指标的基础指标才允许插入值
+	if edbInfoType == 0 && edbType == 1 {
+		button.InsertNewDataButton = true
 	}
 	}
 	button.ShowEdbRelation = true
 	button.ShowEdbRelation = true
 	button.ShowChartRelation = true
 	button.ShowChartRelation = true