|
|
@@ -712,6 +712,9 @@ export default {
|
|
|
yield put({ type: 'dataList/setField', name: 'loading', value: false });
|
|
|
}
|
|
|
},
|
|
|
+ /**
|
|
|
+ * 后台导出方案-已废弃
|
|
|
+ */
|
|
|
// *exportToExcel(action, { select, call, put }) {
|
|
|
// const dashboardDesigner = yield select(state => state.present.dashboardDesigner);
|
|
|
// const { code, name, dataSources, filters } = dashboardDesigner;
|
|
|
@@ -876,6 +879,25 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
+ }else if(chartType === 'indicator') {
|
|
|
+ let { originConfig, data } = chartOption;
|
|
|
+ let { xAxis, yAxis, otherColumn } = (originConfig || {});
|
|
|
+ columns = [{
|
|
|
+ name: xAxis.column.label,
|
|
|
+ width: 100,
|
|
|
+ type: 'String'
|
|
|
+ }, {
|
|
|
+ name: yAxis.column.label,
|
|
|
+ width: 100,
|
|
|
+ type: 'Number'
|
|
|
+ }].concat(otherColumn.map(c => ({
|
|
|
+ name: c.label,
|
|
|
+ width: 100,
|
|
|
+ type: 'String'
|
|
|
+ })));
|
|
|
+ rows = data.map(d => {
|
|
|
+ return [d.name, d.key, d.value].concat(d.others.map(o => o.value))
|
|
|
+ });
|
|
|
}
|
|
|
}else if(viewType === 'richText') {
|
|
|
columns = [{
|