|
|
|
@ -303,7 +303,7 @@ class Questionitem_banks extends Component {
|
|
|
|
|
if (result.data.status == 0) {
|
|
|
|
|
// this.props.showNotification(`新增单选题成功`);
|
|
|
|
|
this.restricte=true;
|
|
|
|
|
this.props.history.replace('/question');
|
|
|
|
|
this.props.history.replace('/problemset');
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
@ -315,7 +315,7 @@ class Questionitem_banks extends Component {
|
|
|
|
|
if (result.data.status == 0) {
|
|
|
|
|
// this.props.showNotification(`编辑单选题成功`);
|
|
|
|
|
this.restricte=true;
|
|
|
|
|
this.props.history.replace('/question');
|
|
|
|
|
this.props.history.replace('/problemset');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -383,7 +383,7 @@ class Questionitem_banks extends Component {
|
|
|
|
|
if (result.data.status == 0) {
|
|
|
|
|
// this.props.showNotification(`新增多选题成功`);
|
|
|
|
|
this.restricte=true;
|
|
|
|
|
this.props.history.replace('/question');
|
|
|
|
|
this.props.history.replace('/problemset');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -397,7 +397,7 @@ class Questionitem_banks extends Component {
|
|
|
|
|
if (result.data.status == 0) {
|
|
|
|
|
// this.props.showNotification(`编辑多选题成功`);
|
|
|
|
|
this.restricte=true;
|
|
|
|
|
this.props.history.replace('/question');
|
|
|
|
|
this.props.history.replace('/problemset');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -452,7 +452,7 @@ class Questionitem_banks extends Component {
|
|
|
|
|
if (result.data.status == 0) {
|
|
|
|
|
// this.props.showNotification(`新增判断题成功`);
|
|
|
|
|
this.restricte=true;
|
|
|
|
|
this.props.history.replace('/question');
|
|
|
|
|
this.props.history.replace('/problemset');
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
@ -465,7 +465,7 @@ class Questionitem_banks extends Component {
|
|
|
|
|
if (result.data.status == 0) {
|
|
|
|
|
// this.props.showNotification(`编辑判断题成功`);
|
|
|
|
|
this.restricte=true;
|
|
|
|
|
this.props.history.replace('/question');
|
|
|
|
|
this.props.history.replace('/problemset');
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
@ -552,7 +552,7 @@ class Questionitem_banks extends Component {
|
|
|
|
|
<div className="w1200mss">
|
|
|
|
|
<div className="w100s mt30">
|
|
|
|
|
<Breadcrumb separator=">">
|
|
|
|
|
<Breadcrumb.Item href="/question">试题库</Breadcrumb.Item>
|
|
|
|
|
<Breadcrumb.Item href="/problemset">试题库</Breadcrumb.Item>
|
|
|
|
|
<Breadcrumb.Item>{JSON.stringify(params) === "{}" ? "新增" : "编辑"}试题</Breadcrumb.Item>
|
|
|
|
|
</Breadcrumb>
|
|
|
|
|
</div>
|
|
|
|
@ -618,7 +618,7 @@ class Questionitem_banks extends Component {
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<Bottomsubmit {...this.props} {...this.state} bottomvalue={item_type === "PROGRAM" ? "创建" : "保存"}
|
|
|
|
|
onSubmits={() => this.preservation()} url={'/question'}></Bottomsubmit>
|
|
|
|
|
onSubmits={() => this.preservation()} url={'/problemset'}></Bottomsubmit>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|