| | |
| | | _config.colsCtrls = colsCtrls |
| | | |
| | | if (this.customForm && this.customForm.state.editItem) { |
| | | const _this = this |
| | | const that = this |
| | | let title = '存在未保存项,确定忽略吗?' |
| | | if (s.length > 0) { |
| | | title = `存在未保存项,且第 ${s.join('、')} 行中字段在搜索条件中不存在,确定忽略吗?` |
| | |
| | | confirm({ |
| | | title: title, |
| | | onOk() { |
| | | _this.setState({ visible: false }) |
| | | _this.props.onSubmit(_config) |
| | | that.setState({ visible: false }) |
| | | that.props.onSubmit(_config) |
| | | }, |
| | | onCancel() {} |
| | | }) |
| | | } else if (s.length > 0) { |
| | | const _this = this |
| | | const that = this |
| | | confirm({ |
| | | title: `第 ${s.join('、')} 行中字段在搜索条件中不存在,确定忽略吗?`, |
| | | onOk() { |
| | | _this.setState({ visible: false }) |
| | | _this.props.onSubmit(_config) |
| | | that.setState({ visible: false }) |
| | | that.props.onSubmit(_config) |
| | | }, |
| | | onCancel() {} |
| | | }) |