|
@@ -1014,13 +1014,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
|
|
|
|
|
|
// 图表数据权限
|
|
@@ -1509,14 +1504,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
|
|
@@ -2669,14 +2658,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
|
|
@@ -3951,6 +3933,7 @@ func (this *ChartInfoController) ChartInfoConvertDetail() {
|
|
|
br.ErrMsg = "获取主题信息失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
chartInfo.ChartThemeStyle = chartTheme.Config
|
|
|
chartInfo.ChartThemeId = chartTheme.ChartThemeId
|
|
|
|