| | |
| | | item.$index = i + 1 |
| | | }) |
| | | |
| | | let verifyInter = card.intertype === 'system' || (card.intertype === 'custom' && card.procMode === 'system') ? 'system' : 'inner' |
| | | let verifyInter = card.intertype === 'system' || card.procMode === 'system' ? 'system' : 'inner' |
| | | let activeKey = verifyInter === 'system' || card.intertype === 'inner' ? 'base' : 'tip' |
| | | |
| | | if (card.callbackType === 'script') { |
| | | activeKey = 'cbScripts' |
| | | } |
| | | |
| | | this.setState({ |
| | | activeKey: verifyInter === 'system' || card.intertype === 'inner' ? 'base' : 'tip', |
| | | activeKey: activeKey, |
| | | verifyInter: verifyInter, |
| | | setting: config.setting || {}, |
| | | verify: _verify, |
| | | oriVerify: fromJS(_verify).toJS() |
| | | }) |
| | | |
| | | if (config.Template !== 'FormTab' && (card.intertype === 'inner' || card.intertype === 'outer')) { // 内部或外部接口 |
| | | if (config.Template !== 'FormTab' && card.intertype === 'inner') { |
| | | return |
| | | } |
| | | |
| | |
| | | /> |
| | | <EditTable actions={['move']} data={verify.scripts} columns={scriptsColumns} onChange={(scripts) => {this.setState({verify: {...verify, scripts}})}}/> |
| | | </TabPane> : null} |
| | | {card.callbackType === 'script' && card.intertype === 'custom' ? <TabPane tab={ |
| | | {card.callbackType === 'script' ? <TabPane tab={ |
| | | <span> |
| | | 回调脚本 |
| | | {verify.cbScripts.length ? <span className="count-tip">{verify.cbScripts.length}</span> : null} |