提交 dba2abd2 authored 作者: 钟是志's avatar 钟是志

渲染不出来的bug 是因为 model层没有加载

上级 29736fff
...@@ -18,7 +18,7 @@ function OtherCheckRecord({ form, location: { pathname }, workId }) { ...@@ -18,7 +18,7 @@ function OtherCheckRecord({ form, location: { pathname }, workId }) {
}); });
}, [pathname]); }, [pathname]);
console.log(data); // console.log(data);
return !!data && <RenderForm form={form} postData={data} style={{ padding: 0 }} />; return !!data && <RenderForm form={form} postData={data} style={{ padding: 0 }} />;
} }
......
...@@ -330,6 +330,7 @@ class FormList extends React.Component { ...@@ -330,6 +330,7 @@ class FormList extends React.Component {
componentDidMount() { componentDidMount() {
const { dispatch, isFormCom, isSelect, callback, valueName } = this.props; const { dispatch, isFormCom, isSelect, callback, valueName } = this.props;
window.addEventListener('resize', this.resize); window.addEventListener('resize', this.resize);
// console.log('componentDidMount');
if (this.props.objCode) { if (this.props.objCode) {
const { dispatch, objCode, sql } = this.props; const { dispatch, objCode, sql } = this.props;
...@@ -661,6 +662,7 @@ class FormList extends React.Component { ...@@ -661,6 +662,7 @@ class FormList extends React.Component {
getPage = (params, values, callPage, pageNo) => { getPage = (params, values, callPage, pageNo) => {
const { objCode } = this.props; const { objCode } = this.props;
debugger;
if (this.columns == null || this.columns.length == 0) { if (this.columns == null || this.columns.length == 0) {
return; return;
} }
...@@ -1163,6 +1165,7 @@ class FormList extends React.Component { ...@@ -1163,6 +1165,7 @@ class FormList extends React.Component {
render() { render() {
const { modalVisible, selectedRows, rights, data, isReady } = this.state; const { modalVisible, selectedRows, rights, data, isReady } = this.state;
if (!isReady) { if (!isReady) {
return ( return (
<div style={{ width: 20, margin: 'auto' }}> <div style={{ width: 20, margin: 'auto' }}>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论