| | |
| | | import React, {Component} from 'react' |
| | | import PropTypes from 'prop-types' |
| | | import { is, fromJS } from 'immutable' |
| | | import { Modal, Button, Icon, notification } from 'antd' |
| | | import { Modal, Button, notification } from 'antd' |
| | | import { QuestionCircleOutlined } from '@ant-design/icons' |
| | | import moment from 'moment' |
| | | |
| | | import Api from '@/api' |
| | |
| | | notification.success({ |
| | | top: 92, |
| | | message: '执行成功。', |
| | | duration: 2 |
| | | duration: 1 |
| | | }) |
| | | |
| | | if (updateConfig) { |
| | |
| | | } else { |
| | | setTimeout(() => { |
| | | window.location.reload() |
| | | }, 2000) |
| | | }, 1000) |
| | | } |
| | | } |
| | | }) |
| | |
| | | notification.success({ |
| | | top: 92, |
| | | message: '执行成功。', |
| | | duration: 2 |
| | | duration: 1 |
| | | }) |
| | | |
| | | if (updateConfig) { |
| | |
| | | } else { |
| | | setTimeout(() => { |
| | | window.location.reload() |
| | | }, 2000) |
| | | }, 1000) |
| | | } |
| | | } |
| | | }) |
| | |
| | | footer={[]} |
| | | destroyOnClose |
| | | > |
| | | <div className="header"><Icon type="question-circle"/>版本切换</div> |
| | | <div className="header"><QuestionCircleOutlined/>版本切换</div> |
| | | <div className="detail">请选择需要切换的版本,或点击取消关闭弹窗。</div> |
| | | <div className="footer"> |
| | | <Button key="cancel" onClick={() => { this.setState({ visible: false })}}>取消</Button> |
| | | <Button key="pre" type="primary" loading={preconfirming} onClick={this.preVersion}>上一版本</Button> |
| | | <Button key="next" type="primary" loading={nextconfirming} onClick={this.nextVersion}>下一版本</Button> |
| | | <Button key="cancel" onClick={() => { this.setState({ visible: false })}}>取消</Button> |
| | | </div> |
| | | </Modal> |
| | | </div> |