瀏覽代碼

fix:公共分类

Roc 2 月之前
父節點
當前提交
6bbb343822
共有 2 個文件被更改,包括 6 次插入6 次删除
  1. 3 3
      services/data/public_chart.go
  2. 3 3
      services/data/public_edb.go

+ 3 - 3
services/data/public_chart.go

@@ -76,9 +76,9 @@ func GetChartSearchPar(req request.SearchPublicChartReq) (keyword string, search
 
 	// 指标公开状态:1:未公开,2:已提交;3:已公开。可多选,默认是未公开
 	chartPublicList := req.ChartPublicList
-	if len(chartPublicList) <= 0 {
-		chartPublicList = []int{1}
-	}
+	//if len(chartPublicList) <= 0 {
+	//	chartPublicList = []int{1}
+	//}
 
 	chartAuth = 1 // 选择范围是:只有我的指标
 

+ 3 - 3
services/data/public_edb.go

@@ -72,9 +72,9 @@ func GetSearchPar(req request.SearchPublicEdbReq) (keyword string, searchEdbPubl
 
 	// 指标公开状态:1:未公开,2:已提交;3:已公开。可多选,默认是未公开
 	edbPublicList := req.EdbPublicList
-	if len(edbPublicList) <= 0 {
-		edbPublicList = []int{1}
-	}
+	//if len(edbPublicList) <= 0 {
+	//	edbPublicList = []int{1}
+	//}
 
 	edbInfoType = 0                             // 普通指标
 	edbTypeList = []int{utils.EdbTypeCalculate} // 普通指标中的计算指标