瀏覽代碼

Merge branch 'cygx_10.1' of http://8.136.199.33:3000/hongze/hongze_cygx into debug

xingzai 2 年之前
父節點
當前提交
8b2ea06a0f
共有 1 個文件被更改,包括 8 次插入6 次删除
  1. 8 6
      controllers/chart_permission.go

+ 8 - 6
controllers/chart_permission.go

@@ -205,12 +205,14 @@ func (this *ChartPermissionAuthController) StrategyDetail() {
 		return
 	}
 	resp := new(models.ReportMappingHomeResp)
-	if cf.ConfigValue == "1" || user.CompanyId == utils.HZ_COMPANY_ID {
-		item := new(models.ReportMappingHome)
-		item.CategoryId = utils.TIME_LINE_ID
-		item.SubCategoryName = utils.TIME_LINE_NAME
-		item.MatchTypeName = utils.TIME_LINE_NAME
-		resp.List = append(resp.List, item)
+	if chartPermissionId != utils.GU_SHOU_ID {
+		if cf.ConfigValue == "1" || user.CompanyId == utils.HZ_COMPANY_ID {
+			item := new(models.ReportMappingHome)
+			item.CategoryId = utils.TIME_LINE_ID
+			item.SubCategoryName = utils.TIME_LINE_NAME
+			item.MatchTypeName = utils.TIME_LINE_NAME
+			resp.List = append(resp.List, item)
+		}
 	}
 	for _, v := range list {
 		resp.List = append(resp.List, v)