瀏覽代碼

首页浏览历史图表缩略图显示错误问题修复

zhuth 7 年之前
父節點
當前提交
2944573eb0
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/models/recent.js

+ 3 - 2
src/models/recent.js

@@ -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)