|
|
@@ -4,6 +4,7 @@
|
|
|
import { message } from 'antd'
|
|
|
import * as service from '../services/index'
|
|
|
import URLS from '../constants/url'
|
|
|
+import CHART_TYPE from './chartType.json'
|
|
|
import moment from 'moment'
|
|
|
|
|
|
export default {
|
|
|
@@ -47,9 +48,9 @@ export default {
|
|
|
key: r.chartId + '',
|
|
|
code: r.chartId + '',
|
|
|
name: r.chartName,
|
|
|
- type: r.chartType,
|
|
|
+ type: CHART_TYPE[r.chartType],
|
|
|
createBy: r.createBy,
|
|
|
- chartOption: r.chartOption,
|
|
|
+ chartOption: r.chartOption ? JSON.parse(r.chartOption) : {},
|
|
|
description: r.describes || "",
|
|
|
createTime: r.createDate,
|
|
|
recentTime: moment(r.reDate)
|