导入界面增加上一步

This commit is contained in:
Chengliang 2024-03-12 18:22:26 +08:00
parent 0c235113f9
commit 69343a6193
1 changed files with 8 additions and 1 deletions

View File

@ -53,6 +53,13 @@ export default class StepDialog extends React.Component {
current === steps.length - 1 && newImport.startImport();
}
up() {
const {newImport} = this.props;
let {current,steps} = newImport;
current = current - 1;
newImport.current = current;
}
render() {
const {
newImport
@ -65,8 +72,8 @@ export default class StepDialog extends React.Component {
height,
title
} = this.state;
const buttons = [
((current === 0 || current === steps.length - 1) ? '' : <Button ecId={`${this && this.props && this.props.ecId || ''}_Button@jd6baw`} type="primary" onClick={() => this.up()}>上一步</Button>),
(<Button ecId={`${this && this.props && this.props.ecId || ''}_Button@jd6baw`} type="primary" onClick={() => this.next()}>{current === steps.length - 1 ? '关闭' : i18n.button.nextStep()}</Button>),
];