| | |
| | | } |
| | | |
| | | handleSubmit = () => { |
| | | const { config } = this.props |
| | | |
| | | this.setState({}, () => { |
| | | this.props.form.validateFields((err, values) => { |
| | | if (err) return |
| | |
| | | this.sign = '' |
| | | }, 2000) |
| | | |
| | | if (config.wrap && config.wrap.cacheSearch === 'true') { |
| | | let _values = {} |
| | | searches.forEach(item => { |
| | | _values[item.key] = item.value |
| | | }) |
| | | |
| | | window.GLOB.SearchBox.set(config.$searchId + 'cache', _values) |
| | | } |
| | | |
| | | if (this.props.refreshdata) { |
| | | this.props.refreshdata(searches) |
| | | } else { |
| | | window.GLOB.SearchBox.set(this.props.config.$searchId, searches) |
| | | MKEmitter.emit('searchRefresh', this.props.config.$searchId) |
| | | window.GLOB.SearchBox.set(config.$searchId, searches) |
| | | MKEmitter.emit('searchRefresh', config.$searchId) |
| | | } |
| | | }) |
| | | }) |