| | |
| | | const { config } = this.props |
| | | |
| | | this.setState({loading: true}) |
| | | this.verifyRef.submitDataSource().then(res => { |
| | | this.verifyRef.submitDataSource().then((res, hasMSearch) => { |
| | | |
| | | let MenuType = sessionStorage.getItem('MenuType') |
| | | |
| | |
| | | MKEmitter.emit('mkUpdateInter', {uuid: config.uuid, columns: res.columns}, {delay: 0}) |
| | | }, 150) |
| | | } |
| | | |
| | | if (config.type === 'interface' && res.setting && res.setting.useMSearch === 'true' && !hasMSearch) { |
| | | Modal.warning({ |
| | | title: '数据源中使用了外部搜索,但搜索条件尚未添加!', |
| | | centered: true |
| | | }) |
| | | } |
| | | }, () => { |
| | | this.setState({loading: false}) |
| | | }) |