|
|
@@ -5,6 +5,7 @@ import FixedBox from '../../src/FixedBox/FixedBox.jsx';
|
|
|
import DateFormatter from '../utils/DateTimeUtils.js';
|
|
|
import {converter} from '../component/converter.js';
|
|
|
import RenderUtils from '../utils/RenderUtils.js';
|
|
|
+import config from '../data/cc.json';
|
|
|
|
|
|
class Factory extends React.Component {
|
|
|
|
|
|
@@ -19,17 +20,15 @@ class Factory extends React.Component {
|
|
|
fetch('http://10.10.100.191:8082/kanbanInstance/parseData/4F75DDBB413', {
|
|
|
method: 'GET'
|
|
|
}).then(function (response) {
|
|
|
- console.log(response);
|
|
|
return (response.json())
|
|
|
}).then((json) => {
|
|
|
return json;
|
|
|
}).then(function (json) {
|
|
|
let s = ''+json.replace(/\s+/g,"");
|
|
|
let t = JSON.parse(s);
|
|
|
- console.log(t)
|
|
|
me.setState({
|
|
|
model: converter(t)
|
|
|
- },()=>{console.log('change')});
|
|
|
+ });
|
|
|
}).catch(function (ex) {
|
|
|
console.log('parsing failed', ex);
|
|
|
});
|