|
|
@@ -175,6 +175,7 @@ export default {
|
|
|
let chartConfig = JSON.parse(resData.chartConfig || '{ "xAxis": { "column": {}, "granularity": {} }, "yAxis": { "column": {}, "gauge": {} } }');
|
|
|
let otherConfig = JSON.parse(resData.otherConfig || '{}');
|
|
|
let viewType = getViewType(resData.chartType);
|
|
|
+ let filters = JSON.parse(resData.filters || '{}');
|
|
|
|
|
|
let data = {
|
|
|
code: resData.chartId,
|
|
|
@@ -187,7 +188,8 @@ export default {
|
|
|
},
|
|
|
otherConfig: otherConfig,
|
|
|
description: resData.describes,
|
|
|
- group: resData.chartsGroup+''
|
|
|
+ group: resData.chartsGroup+'',
|
|
|
+ filters: filters,
|
|
|
}
|
|
|
|
|
|
if(viewType === 'bar') {
|
|
|
@@ -319,10 +321,11 @@ export default {
|
|
|
*remoteModify(action, { select, call, put }) {
|
|
|
try{
|
|
|
const chartDesigner = yield select(state => state.present.chartDesigner);
|
|
|
- const { code, header, baseConfig, pieConfig, lineConfig, aggregateTableConfig, dataViewConfig,
|
|
|
+ const { filters, code, header, baseConfig, pieConfig, lineConfig, aggregateTableConfig, dataViewConfig,
|
|
|
barConfig, scatterConfig, otherConfig, description, group } = chartDesigner;
|
|
|
let body = {
|
|
|
chartId: code,
|
|
|
+ filters: JSON.stringify(filters),
|
|
|
chartName: header.label,
|
|
|
dataId: baseConfig.dataSource,
|
|
|
createBy: 'zhuth',
|