|
|
@@ -528,10 +528,10 @@ export default {
|
|
|
] });
|
|
|
return false;
|
|
|
}
|
|
|
- let styleConfig = resData.styleConfig ? JSON.parse(resData.styleConfig) || {} : {};
|
|
|
- const { chartType : ctype, chartConfig: cfg } = resData.chartsColumnConfig;
|
|
|
+ const { chartType : ctype, chartConfig: chartConfigStr, chartStyle: styleConfigStr } = resData.chartsColumnConfig;
|
|
|
const chartType = CHART_TYPE[ctype];
|
|
|
- const chartConfig = JSON.parse(cfg);
|
|
|
+ const chartConfig = JSON.parse(chartConfigStr);
|
|
|
+ const styleConfig = JSON.parse(styleConfigStr);
|
|
|
let chartOption = parseChartOption(chartType, resData, chartConfig, theme, styleConfig[chartType] || {});
|
|
|
|
|
|
yield put({ type: 'setItemFields', code: chartCode, fields: [
|