| | |
| | | }, () => { |
| | | this.props.refresh({ |
| | | type: 'paste', |
| | | copyType: 'action', |
| | | content: res |
| | | }) |
| | | }) |
| | | } else if (res.copyType === 'search') { |
| | | this.setState({ |
| | | pasteVisible: false |
| | | }, () => { |
| | | this.props.refresh({ |
| | | type: 'paste', |
| | | content: res |
| | | }) |
| | | }) |
| | |
| | | }, () => { |
| | | this.props.refresh({ |
| | | type: 'paste', |
| | | copyType: 'columns', |
| | | config: {...config, columns: res.columns} |
| | | content: res |
| | | }) |
| | | }) |
| | | } else { |
| | |
| | | <Menu onClick={this.handleMenuClick}> |
| | | <Menu.Item key="thaw"><Icon type="unlock" />{this.props.dict['header.form.thawbutton']}</Menu.Item> |
| | | <Menu.Item key="paste"><Icon type="snippets" />{this.props.dict['header.form.paste']}</Menu.Item> |
| | | <Menu.Item key="replace"><Icon type="retweet" />替换</Menu.Item> |
| | | {/* <Menu.Item key="replace"><Icon type="retweet" />替换</Menu.Item> */} |
| | | </Menu> |
| | | ) |
| | | |
| | |
| | | {/* 解冻按钮模态框 */} |
| | | <Modal |
| | | title={this.props.dict['header.form.thawbutton']} |
| | | okText={this.props.dict['header.confirm']} |
| | | okText={this.props.dict['model.confirm']} |
| | | cancelText={this.props.dict['header.cancel']} |
| | | visible={this.state.thawVisible} |
| | | onOk={this.thawBtnSubmit} |