Commit d907f418739aa1517879a33f59c762d409cc1e8a
1 parent
0784efa3
处理方案切换报错问题;
Showing
1 changed file
with
3 additions
and
2 deletions
src/components/Common/SearchComponent/index.js
| ... | ... | @@ -610,8 +610,9 @@ export default class SearchComponent extends Component { |
| 610 | 610 | } |
| 611 | 611 | |
| 612 | 612 | const addState = await this.defaultSearchSolution({ ...searchSolution[iIndex] || {}, sCondition: JSON.stringify(filterCondition) }); |
| 613 | - this.props.onSaveState({ ...addState }); | |
| 614 | - this.props.onGetData(slaveConfig, filterCondition, '', '', '', '', addState.sGroupByList,); | |
| 613 | + this.props.onSaveState({ ...addState }, () => { | |
| 614 | + this.props.onGetData(slaveConfig, filterCondition, '', '', '', '', addState.sGroupByList,); | |
| 615 | + }); | |
| 615 | 616 | /* 判断是否要加载过滤树数据 */ |
| 616 | 617 | const filterTreeConfigArr = slaveConfig.gdsconfigformslave.filter(item => item.bTree); |
| 617 | 618 | if (commonUtils.isNotEmptyArr(filterTreeConfigArr)) { | ... | ... |