| | |
| | | if (focusField) { |
| | | MKEmitter.emit('resetFocus', btn.uuid, focusField) |
| | | } |
| | | window.GLOB.errFocusId = '' |
| | | |
| | | this.setState({ |
| | | loadingNumber: '', |
| | |
| | | loadingTotal: '', |
| | | }) |
| | | |
| | | if (window.CACHE.errFocusId && (btnconfig || btn.OpenType === 'formSubmit')) { |
| | | MKEmitter.emit('mkFC', 'focus', window.CACHE.errFocusId) |
| | | if (window.GLOB.errFocusId && (btnconfig || btn.OpenType === 'formSubmit')) { |
| | | MKEmitter.emit('mkFC', 'focus', window.GLOB.errFocusId) |
| | | |
| | | window.CACHE.errFocusId = '' |
| | | window.GLOB.errFocusId = '' |
| | | } else if (btnconfig && btnconfig.setting && btnconfig.setting.errFocus) { |
| | | MKEmitter.emit('mkFC', 'focus', btnconfig.setting.errFocus) |
| | | } |
| | |
| | | const { action } = this.props |
| | | const { formlist, send_type, timestamp, n_id } = this.state |
| | | |
| | | window.CACHE.errFocusId = '' |
| | | window.GLOB.errFocusId = '' |
| | | // 表单提交时检查输入值是否正确 |
| | | return new Promise((resolve, reject) => { |
| | | this.props.form.validateFieldsAndScroll((err, values) => { |
| | |
| | | }) |
| | | |
| | | this.submitId = formId || '' |
| | | window.CACHE.errFocusId = errId || '' |
| | | window.GLOB.errFocusId = errId || '' |
| | | |
| | | if (locals) { |
| | | sessionStorage.setItem('local_' + action.uuid, JSON.stringify(locals)) |