|
@@ -1520,12 +1520,16 @@ func (this *ChartInfoController) GetMultipleGraphConfig() {
|
|
|
return
|
|
|
}
|
|
|
for _, v := range chartList {
|
|
|
+ var mapping response.MultipleGraphConfigChartMapping
|
|
|
if tmpInfo, ok := chartMappingMap[v.ChartInfoId]; ok {
|
|
|
- multipleGraphConfigChartMappingList = append(multipleGraphConfigChartMappingList, response.MultipleGraphConfigChartMapping{
|
|
|
- ChartInfoId: tmpInfo.ChartInfoId,
|
|
|
- Source: tmpInfo.Source,
|
|
|
- MultipleLocationSource: tmpInfo.Source,
|
|
|
- })
|
|
|
+ mapping.ChartInfoId = tmpInfo.ChartInfoId
|
|
|
+ mapping.Source = tmpInfo.Source
|
|
|
+ mapping.MultipleLocationSource = tmpInfo.Source
|
|
|
+ if v.ChartInfoId == chartInfo.ChartInfoId {
|
|
|
+ mapping.CorrelationExtraConfig = chartInfo.ExtraConfig
|
|
|
+ mapping.SourcesFrom = chartInfo.SourcesFrom
|
|
|
+ }
|
|
|
+ multipleGraphConfigChartMappingList = append(multipleGraphConfigChartMappingList, mapping)
|
|
|
}
|
|
|
}
|
|
|
}
|