|
|
@@ -219,6 +219,7 @@ export default {
|
|
|
theme: d.theme,
|
|
|
styleConfig: JSON.parse(d.style || '{}'),
|
|
|
demo: d.demo,
|
|
|
+ thumbnail: d.thumbnail,
|
|
|
}
|
|
|
}).sort((a, b) => {
|
|
|
return new Date(b.createTime) - new Date(a.createTime)
|
|
|
@@ -287,7 +288,7 @@ export default {
|
|
|
group: resData.chartsGroup+'',
|
|
|
filters: filters,
|
|
|
chartOption: chartOption,
|
|
|
- demo: resData.demo
|
|
|
+ demo: resData.demo,
|
|
|
}
|
|
|
|
|
|
if(viewType === 'bar') {
|
|
|
@@ -378,7 +379,7 @@ export default {
|
|
|
try{
|
|
|
const chartDesigner = yield select(state => state.present.chartDesigner);
|
|
|
const { filters, code, header, baseConfig, pieConfig, lineConfig, aggregateTableConfig, dataViewConfig,
|
|
|
- barConfig, scatterConfig, otherConfig, description, group, chartOption, fetchConfig, styleConfig } = chartDesigner;
|
|
|
+ barConfig, scatterConfig, otherConfig, description, group, chartOption, fetchConfig, styleConfig, thumbnail } = chartDesigner;
|
|
|
let body = {
|
|
|
chartId: code,
|
|
|
filters: JSON.stringify(filters),
|
|
|
@@ -390,6 +391,7 @@ export default {
|
|
|
chartsGroup: group+'' ? group : '-1',
|
|
|
chartOption: JSON.stringify(chartOption),
|
|
|
fetchConfig: JSON.stringify(fetchConfig),
|
|
|
+ thumbnail: thumbnail
|
|
|
}; // 基本属性
|
|
|
let styleObj = {};
|
|
|
if(!!baseConfig.viewType) {
|