| | |
| | | } |
| | | |
| | | if (_config.wrap.datatype === 'dynamic' && this.loaded) { |
| | | if (_config.wrap.goback === 'true' && _data.$$empty) { |
| | | this.timer && this.timer.stop() |
| | | |
| | | MKEmitter.emit('closeTabView', _config.$pageId) |
| | | } else { |
| | | this.autoExec() |
| | | } |
| | | if (!_config.wrap.cardType && _data.$$uuid) { |
| | | } |
| | | if (_data.$$uuid) { |
| | | setTimeout(() => { |
| | | this.transferLine() |
| | | }, 200) |
| | |
| | | this.loaded = true |
| | | |
| | | this.setState({sync: false, data: _data}, () => { |
| | | if (config.wrap.goback === 'true' && _data.$$empty) { |
| | | this.timer && this.timer.stop() |
| | | |
| | | MKEmitter.emit('closeTabView', config.$pageId) |
| | | } else { |
| | | if (selected !== 'false') { |
| | | this.checkTopLine() |
| | | } else if (!config.wrap.cardType && _data.$$uuid) { |
| | | } else if (_data.$$uuid) { |
| | | this.transferLine() |
| | | } |
| | | this.autoExec() |
| | | } |
| | | }) |
| | | } else if (config.setting.useMSearch && nextProps.mainSearch && !is(fromJS(this.props.mainSearch), fromJS(nextProps.mainSearch))) { |
| | | this.setState({}, () => { |
| | |
| | | this.loaded = true |
| | | |
| | | this.setState({data: _data}, () => { |
| | | if (config.wrap.goback === 'true' && _data.$$empty) { |
| | | this.timer && this.timer.stop() |
| | | |
| | | MKEmitter.emit('closeTabView', config.$pageId) |
| | | } else { |
| | | if (selected !== 'false') { |
| | | this.checkTopLine() |
| | | } else { |
| | | this.transferLine() |
| | | } |
| | | this.autoExec() |
| | | } |
| | | }) |
| | | } |
| | | } |