Pārlūkot izejas kodu

兼容IE/Safari对fetch的支持

zhuth 7 gadi atpakaļ
vecāks
revīzija
1ef67fb921

+ 3 - 1
kanban-client/README.md

@@ -67,7 +67,9 @@ columns[i].rowStyle---------------指定列数据列样式
 ##### 20171027
 * 增强对非标准数据的支持
 ##### 20171103
-*重新设计form展示组件,不再使用td和div嵌套的方式(那可真蠢),超长内容自动隐藏
+* 重新设计form展示组件,不再使用td和div嵌套的方式(那可真蠢),超长内容自动隐藏
+##### 20180502
+* IE/Safari浏览器兼容性调整
 #### 已知小bug
 * 多模板看板第一次进入需要多等待一个刷新时才会切换到下一个模板。
 * 如果看板第一个模板返回报错则后续正确模板也将无法显示。

BIN
kanban-client/app/assets/images/yitoa.png


+ 2 - 1
kanban-client/app/component/factory.dev.js

@@ -4,8 +4,9 @@ import Title from '../src/Title/Title.jsx';
 import MessageBox from '../src/MsgBox/MessageBox.jsx';
 import { converter } from './converter.js';
 import URL from '../constants/url.dev.json';
+import 'whatwg-fetch';
 
-import tempdata from '../data/bug1.json';
+import tempdata from '../data/车间执行看板x1.json';
 
 class Factory extends React.Component {
 

+ 1 - 0
kanban-client/app/component/factory.js

@@ -4,6 +4,7 @@ import Title from '../src/Title/Title.jsx';
 import MessageBox from '../src/MsgBox/MessageBox.jsx';
 import { converter } from './converter.js';
 import URL from '../constants/url.json';
+import 'whatwg-fetch';
 
 class Factory extends React.Component {
 

+ 0 - 70
kanban-client/app/data/cc.json

@@ -1,70 +0,0 @@
-{
-    "instance": {
-        "enabledKanbanCodes": ["63975A40E1D"],
-        "display": "AutoSwitch",
-        "switchFrequency": 10,
-        "refreshFrequency": 5,
-        "parameters": []
-    },
-    "data": [{
-        "content": {
-            "items": {
-                "layout": {
-                    "w": 100,
-                    "x": 0,
-                    "h": 100,
-                    "y": 0
-                },
-                "type": "pie",
-                "config": {
-                    "series": [{
-                        "data": 14,
-                        "name": "平台部"
-                    }, {
-                        "name": "运营中心"
-                    }, {
-                        "data": 9,
-                        "name": "测试部"
-                    }, {
-                        "data": 3,
-                        "name": "IPQC部"
-                    }, {
-                        "data": 3,
-                        "name": "人力资源部"
-                    }, {
-                        "data": 4,
-                        "name": "投资部"
-                    }, {
-                        "data": 32,
-                        "name": "软件部"
-                    }, {
-                        "data": 16,
-                        "name": "采购部"
-                    }, {
-                        "data": 21,
-                        "name": "国内销售部"
-                    }, {
-                        "data": 13,
-                        "name": "项目部"
-                    }, {
-                        "data": 9,
-                        "name": "硬件部"
-                    }, {
-                        "data": 6,
-                        "name": "PMC部"
-                    }, {
-                        "data": 4,
-                        "name": "行政部"
-                    }, {
-                        "data": 12,
-                        "name": "财务部"
-                    }, {
-                        "data": 9,
-                        "name": "产品规划部"
-                    }],
-                    "title": "部门员工统计"
-                }
-            }
-        }
-    }]
-}