| | |
| | | |
| | | let key = item.field.toLowerCase() |
| | | |
| | | // positecgroup 表单隐藏 |
| | | if (item.tooltip && /@[a-z0-9_]+@/.test(item.tooltip)) { |
| | | let field = item.tooltip.replace(/@|\s/ig, '').toLowerCase() |
| | | |
| | | if (data[field] === 'N') { |
| | | item.hidden = true |
| | | } |
| | | |
| | | item.tooltip = '' |
| | | } |
| | | |
| | | if (item.type === 'funcvar') { |
| | | readin = false |
| | | item.readin = false |
| | |
| | | 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)) |