提交 2e86fce1 authored 作者: ch's avatar ch

111

上级 e7377be1
...@@ -59,6 +59,7 @@ export default class ZdyTable extends Component { ...@@ -59,6 +59,7 @@ export default class ZdyTable extends Component {
// debugger; // debugger;
// } // }
if (isPreview || isChild ) { if (isPreview || isChild ) {
this.initExcel({ datas: this.props.datas, trees: this.props.trees }, () => { this.initExcel({ datas: this.props.datas, trees: this.props.trees }, () => {
this.setState({ this.setState({
...this.state, ...this.state,
...@@ -73,7 +74,7 @@ export default class ZdyTable extends Component { ...@@ -73,7 +74,7 @@ export default class ZdyTable extends Component {
: null, : null,
}); });
}); });
return; return;
} }
...@@ -378,12 +379,14 @@ export default class ZdyTable extends Component { ...@@ -378,12 +379,14 @@ export default class ZdyTable extends Component {
}; };
configs; configs;
initExcel = (configs, callback) => { initExcel = (configs, callback) => {
this.configs = configs;
if (configs == null || configs.trees == null) { if (configs == null || configs.trees == null) {
if (callback) callback(); if (callback) callback();
return; return;
} }
if (configs.trees != null) this.configs = configs;
const sheetData = {}; const sheetData = {};
for (var key in configs.trees) { for (var key in configs.trees) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论