| | |
| | | |
| | | async loadData () { |
| | | const { mainSearch, menuType } = this.props |
| | | const { config, arr_field, BID, group } = this.state |
| | | const { config, arr_field, BID } = this.state |
| | | |
| | | if (config.wrap.datatype === 'static' || (config.setting.supModule && !BID)) { |
| | | this.setState({ |
| | |
| | | if (result.status) { |
| | | let _data = result.data && result.data[0] ? result.data[0] : {$$empty: true} |
| | | |
| | | let _group = group |
| | | |
| | | this.setState({ |
| | | group: null, |
| | | data: _data || {$$empty: true}, |
| | | data: null, |
| | | loading: false |
| | | }, () => { |
| | | this.setState({group: _group}) |
| | | this.setState({data: _data}) |
| | | }) |
| | | } else { |
| | | this.setState({ |