Procházet zdrojové kódy

fix:相关性分析只看我

zqbao před 1 měsícem
rodič
revize
546ab71363

+ 1 - 1
controllers/data_manage/correlation/correlation_chart_classify.go

@@ -137,7 +137,7 @@ func (this *CorrelationChartClassifyController) ChartClassifyList() {
 		})
 	}
 	if isShowMe {
-		nodeAll, err = correlation.GetCorrelationClassifyByIsMe(this.SysUser.AdminId, parentId, nodeAll)
+		nodeAll, err = correlation.GetCorrelationClassifyByIsMe(this.SysUser.AdminId, parentId, source, nodeAll)
 		if err != nil {
 			br.Msg = "获取失败"
 			br.ErrMsg = "获取我的分类失败,Err:" + err.Error()

+ 2 - 2
services/data/correlation/correlation_chart_classify.go

@@ -6,8 +6,8 @@ import (
 	"eta/eta_api/utils"
 )
 
-func GetCorrelationClassifyByIsMe(adminId, parentId int, classifyList []*data_manage.ChartClassifyItems) (list []*data_manage.ChartClassifyItems, err error) {
-	chartInfoList, err := data_manage.GetChartInfoByAdminId([]int{utils.CHART_SOURCE_CORRELATION}, adminId)
+func GetCorrelationClassifyByIsMe(adminId, parentId, source int, classifyList []*data_manage.ChartClassifyItems) (list []*data_manage.ChartClassifyItems, err error) {
+	chartInfoList, err := data_manage.GetChartInfoByAdminId([]int{source}, adminId)
 	if err != nil {
 		return
 	}