| | |
| | | }, { |
| | | value: 'delete', |
| | | text: this.props.dict['header.form.action.delete'] |
| | | }], |
| | | closeOptions: [{ |
| | | value: 'never', |
| | | text: this.props.dict['header.form.refresh.never'] |
| | | }, { |
| | | value: 'grid', |
| | | text: this.props.dict['header.form.refresh.grid'] |
| | | }, { |
| | | value: 'view', |
| | | text: this.props.dict['header.form.refresh.view'] |
| | | }, { |
| | | value: 'maingrid', |
| | | text: this.props.dict['header.form.refresh.maingrid'] |
| | | }, { |
| | | value: 'equaltab', |
| | | text: this.props.dict['header.form.refresh.equaltab'] |
| | | }] |
| | | } |
| | | |
| | |
| | | text: this.props.dict['header.form.popview'] |
| | | } |
| | | ] |
| | | } else if (item.key === 'execSuccess') { |
| | | item.options = this.state.closeOptions |
| | | } else if (item.key === 'execError') { |
| | | item.options = this.state.closeOptions |
| | | } else if (item.key === 'popClose') { |
| | | item.options = this.state.closeOptions |
| | | } |
| | | |
| | | item.hidden = !_options.includes(item.key) |
| | | return item |
| | | }) |
| | |
| | | formlist: this.state.formlist.map(item => { |
| | | if (item.key === 'Ot') { |
| | | item.hidden = false |
| | | } else if (item.key === 'sqlType' && ['prompt', 'exec', 'pop'].includes(value)) { |
| | | } else if (item.key === 'sqlType' && ['prompt', 'exec', 'pop'].includes(value) && this.state.interType === 'inner') { |
| | | item.hidden = false |
| | | } |
| | | return item |