|
|
|
@ -312,7 +312,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) => {
|
|
|
|
@ -324,7 +324,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');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -392,7 +392,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');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -406,7 +406,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');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -461,7 +461,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) => {
|
|
|
|
@ -474,7 +474,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) => {
|
|
|
|
@ -561,7 +561,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>
|
|
|
|
@ -627,7 +627,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>
|
|
|
|
|
)
|
|
|
|
|