提交 74a1b8a4 authored 作者: chscls@163.com's avatar chscls@163.com

修复bug新增

上级 dccada6b
......@@ -187,26 +187,26 @@ class FormList extends React.Component {
columns = [];
checkList = []; // 复选框内容
getOptions = () => {
const refIds = [];
const refIds = []
for (var i = 0; i < this.state.formItem.length; i++) {
if (
this.state.formItem[i].referenceObjId != null &&
this.state.options[this.state.formItem[i].id + ''] == null
) {
refIds.push(datas[t].id);
if (this.state.formItem[i].referenceObjId != null && this.state.options[this.state.formItem[i].id + ''] == null) {
refIds.push(this.state.formItem[i].id)
}
}
if (refIds.length > 0) {
dispatch({
this.props.dispatch({
type: 'formList/getBatchOptions',
payload: { ids: refIds },
callback: options => {
this.setState({ options: { ...this.state.options, ...options } });
},
callback: (options) => {
this.setState({ options: { ...this.state.options, ...options } })
}
});
}
};
}
modify = record => {
// if (this.state.formItem.length < 10) {
this.getOptions();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论