| | |
| | | if (key === 'type') { |
| | | let _options = this.getOptions() |
| | | |
| | | let _field = '' |
| | | if (value === 'formula') { |
| | | _field = this.props.form.getFieldValue('field') || '' |
| | | } |
| | | |
| | | this.setState({ |
| | | formlist: this.state.formlist.map(item => { |
| | | item.initVal = this.column[item.key] || item.initVal |
| | |
| | | }, () => { |
| | | if (value === 'action' || value === 'colspan') { |
| | | this.props.form.setFieldsValue({Align: 'center'}) |
| | | } else if (value === 'formula' && _field) { |
| | | this.props.form.setFieldsValue({formula: '@' + _field + '@'}) |
| | | } |
| | | }) |
| | | } else if (key === 'field') { |