|
@@ -1013,13 +1013,8 @@ func (this *ChartInfoController) ChartInfoDetail() {
|
|
|
br.ErrMsg = "获取主题信息失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
- // 兼容历史数据,加入新字段LineOptionList
|
|
|
- newConfig, e := data.ConvertOldChartOptions(chartTheme.Config)
|
|
|
- if e != nil {
|
|
|
- chartInfo.ChartThemeStyle = chartTheme.Config
|
|
|
- } else {
|
|
|
- chartInfo.ChartThemeStyle = newConfig
|
|
|
- }
|
|
|
+
|
|
|
+ chartInfo.ChartThemeStyle = chartTheme.Config
|
|
|
chartInfo.ChartThemeId = chartTheme.ChartThemeId
|
|
|
|
|
|
// 图表数据权限
|
|
@@ -1514,14 +1509,8 @@ func (this *ChartInfoController) ChartInfoDetailV2() {
|
|
|
br.ErrMsg = "获取主题信息失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
- // 兼容历史数据,加入新字段LineOptionList
|
|
|
- newConfig, e := data.ConvertOldChartOptions(chartTheme.Config)
|
|
|
- if e != nil {
|
|
|
- chartInfo.ChartThemeStyle = chartTheme.Config
|
|
|
- } else {
|
|
|
- chartInfo.ChartThemeStyle = newConfig
|
|
|
- }
|
|
|
|
|
|
+ chartInfo.ChartThemeStyle = chartTheme.Config
|
|
|
chartInfo.ChartThemeId = chartTheme.ChartThemeId
|
|
|
|
|
|
dateType := chartInfo.DateType
|
|
@@ -2674,15 +2663,7 @@ func GetChartInfoDetailFromUniqueCode(chartInfo *data_manage.ChartInfoView, isCa
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- // 兼容历史数据,加入新字段LineOptionList
|
|
|
- newConfig, e := data.ConvertOldChartOptions(chartTheme.Config)
|
|
|
- if e != nil {
|
|
|
- chartInfo.ChartThemeStyle = chartTheme.Config
|
|
|
- } else {
|
|
|
- chartInfo.ChartThemeStyle = newConfig
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
+ chartInfo.ChartThemeStyle = chartTheme.Config
|
|
|
chartInfo.ChartThemeId = chartTheme.ChartThemeId
|
|
|
|
|
|
chartInfoId := chartInfo.ChartInfoId
|