提交 72e5c2bd authored 作者: chscls@163.com's avatar chscls@163.com

修复bug

上级 2042006f
......@@ -423,7 +423,53 @@ class FormList extends React.Component {
const { rights, columnRights } = this.state;
if (this.props.value && this.props.value.columns) {
this.columns = this.props.value.columns;
this.getPage();
if (this.props.objCode == 1 || this.props.objCode == '1') {
this.getPage();
} else {
dispatch({
type: 'formList/getHead',
payload: { dataObjId: this.state.objId },
callback: datas => {
const querys = [];
const groups = {};
const refIds=[];
for (let t in datas) {
if (datas[t].isShowQuery) {
querys.push(datas[t]);
if (datas[t].referenceObjId != null) {
refIds.push(datas[t].id);
}
if (datas[t].isGroupQuery != null) {
dispatch({
type: 'formList/getGroupList',
payload: { columnId: datas[t].id },
callback: gourp => {
groups[datas[t].id] = gourp;
this.setState({ groups });
},
});
}
}
}
if (querys.length > 0) {
this.setState({ querys });
if (refIds.length > 0) {
dispatch({
type: 'formList/getBatchOptions',
payload: { ids: refIds },
callback: options => {
this.setState({ options });
},
});
}
}
this.getPage();
}
})
}
return;
}
if (this.props.objCode == 1 || this.props.objCode == '1') {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论