| | |
| | | this.props.form.setFieldsValue(_fieldval) |
| | | }) |
| | | } else if (key === 'funcType') { |
| | | let _options = ['label', 'OpenType', 'funcType', 'icon', 'class'] |
| | | if (value === 'print') { |
| | | if (this.state.interType === 'outer') { |
| | | _options = ['label', 'OpenType', 'funcType', 'execMode', 'intertype', 'innerFunc', 'sysInterface', 'interface', 'outerFunc', 'callbackFunc', 'Ot', 'icon', 'class', 'execSuccess', 'execError'] |
| | | } else { |
| | | _options = ['label', 'OpenType', 'funcType', 'execMode', 'intertype', 'innerFunc', 'Ot', 'icon', 'class', 'execSuccess', 'execError'] |
| | | } |
| | | } |
| | | let _options = this.getOptions(this.state.openType, this.state.interType, value, card.pageTemplate) |
| | | let _fieldval = {} |
| | | |
| | | this.setState({ |
| | |
| | | } else if (value === 'LogicDelete' || value === 'delete') { |
| | | _fieldval.label = '删除' |
| | | _fieldval.class = 'danger' |
| | | _fieldval.Ot = 'required' |
| | | _fieldval.Ot = 'requiredSgl' |
| | | } |
| | | |
| | | this.props.form.setFieldsValue(_fieldval) |
| | | }) |
| | | } else if (key === 'pageTemplate') { |
| | | let _options = ['label', 'Ot', 'OpenType', 'pageTemplate', 'icon', 'class'] |
| | | let _fieldval = {} |
| | | if (value === 'custom') { |
| | | _options.push('url', 'joint') |
| | | } |
| | | let _options = this.getOptions(this.state.openType, this.state.interType, this.state.funcType, value) |
| | | |
| | | this.setState({ |
| | | openType: value, |