提交 1116bff3 authored 作者: 徐立's avatar 徐立
......@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论