Răsfoiți Sursa

指标权限,预览默认都有权限

xyxie 7 luni în urmă
părinte
comite
ef568ee1bc
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      controllers/data_manage/chart_info_section.go

+ 2 - 1
controllers/data_manage/chart_info_section.go

@@ -123,6 +123,7 @@ func (this *ChartInfoController) PreviewSectionCombineChartInfo() {
 		if v.IsNullData {
 			warnEdbList = append(warnEdbList, v.EdbName+"("+v.EdbCode+")")
 		}
+		v.HaveOperaAuth = true
 	}
 	if len(warnEdbList) > 0 {
 		chartInfo.WarnMsg = `图表引用指标异常,异常指标:` + strings.Join(warnEdbList, ",")
@@ -140,7 +141,7 @@ func (this *ChartInfoController) PreviewSectionCombineChartInfo() {
 	chartInfo.Button = data_manage.ChartViewButton{
 		IsEdit:    chartInfo.IsEdit,
 		IsEnChart: chartInfo.IsEnChart,
-		IsAdd:     chartInfo.IsAdd,
+		IsAdd:     chartInfo.IsEdit,
 		IsCopy:    true,
 		IsSetName: chartInfo.IsSetName,
 	}