|
|
|
@ -16,10 +16,12 @@ import {TPMIndexHOC} from "../tpm/TPMIndexHOC";
|
|
|
|
|
import Itembankstop from "./component/Itembankstop";
|
|
|
|
|
import NoneData from './component/NoneData';
|
|
|
|
|
import './questioncss/questioncom.css';
|
|
|
|
|
import '../tpm/newshixuns/css/Newshixuns.css';
|
|
|
|
|
import Choicequestion from './component/Choicequestion';
|
|
|
|
|
import SingleEditor from "./component/SingleEditor";
|
|
|
|
|
import ChoquesEditor from "./component/ChoquesEditor"
|
|
|
|
|
import JudquestionEditor from "./component/JudquestionEditor";
|
|
|
|
|
import Bottomsubmit from "../../modules/modals/Bottomsubmit";
|
|
|
|
|
// var itembankstop=null;
|
|
|
|
|
// var singleEditor=null;
|
|
|
|
|
// var Judquestio=null;
|
|
|
|
@ -208,6 +210,7 @@ class Questionitem_banks extends Component {
|
|
|
|
|
.then((result) => {
|
|
|
|
|
if (result.data.status == 0) {
|
|
|
|
|
this.props.showNotification(`新增单选题成功`);
|
|
|
|
|
this.props.history.replace('/question');
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
@ -218,6 +221,8 @@ class Questionitem_banks extends Component {
|
|
|
|
|
.then((result) => {
|
|
|
|
|
if (result.data.status == 0) {
|
|
|
|
|
this.props.showNotification(`编辑单选题成功`);
|
|
|
|
|
this.props.history.replace('/question');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
@ -274,6 +279,8 @@ class Questionitem_banks extends Component {
|
|
|
|
|
.then((result) => {
|
|
|
|
|
if (result.data.status == 0) {
|
|
|
|
|
this.props.showNotification(`新增多选题成功`);
|
|
|
|
|
this.props.history.replace('/question');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
@ -285,6 +292,8 @@ class Questionitem_banks extends Component {
|
|
|
|
|
.then((result) => {
|
|
|
|
|
if (result.data.status == 0) {
|
|
|
|
|
this.props.showNotification(`编辑多选题成功`);
|
|
|
|
|
this.props.history.replace('/question');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
@ -337,6 +346,8 @@ class Questionitem_banks extends Component {
|
|
|
|
|
.then((result) => {
|
|
|
|
|
if (result.data.status == 0) {
|
|
|
|
|
this.props.showNotification(`新增判断题成功`);
|
|
|
|
|
this.props.history.replace('/question');
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error);
|
|
|
|
@ -347,6 +358,8 @@ class Questionitem_banks extends Component {
|
|
|
|
|
.then((result) => {
|
|
|
|
|
if (result.data.status == 0) {
|
|
|
|
|
this.props.showNotification(`编辑判断题成功`);
|
|
|
|
|
this.props.history.replace('/question');
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error);
|
|
|
|
@ -392,6 +405,7 @@ class Questionitem_banks extends Component {
|
|
|
|
|
const params= this.props&&this.props.match&&this.props.match.params;
|
|
|
|
|
// console.log(params);
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<div className="newMain clearfix intermediatecenter "
|
|
|
|
|
style={{
|
|
|
|
|
|
|
|
|
@ -401,6 +415,7 @@ class Questionitem_banks extends Component {
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
|
|
|
|
|
|
.newFooter{
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
@ -472,28 +487,20 @@ class Questionitem_banks extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
{
|
|
|
|
|
item_type===null?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<div className=" clearfix edu-back-white orderingbox newshixunbottombtn bottomdivs sortinxdirection intermediatecenter mt50" style={{
|
|
|
|
|
position:"absolute",
|
|
|
|
|
bottom: "0px",
|
|
|
|
|
}} >
|
|
|
|
|
<a href={'/question'}>
|
|
|
|
|
<div className="divquxiao mr20 xiaoshou">
|
|
|
|
|
<p className="divquxiaotest" >取消</p>
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
<div className="divbaocun xiaoshou"><p className="divbaocuntests" onClick={()=>this.preservation()}>保存</p></div>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
{
|
|
|
|
|
item_type===null?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<Bottomsubmit bottomvalue={"保存"} onSubmits={() => this.preservation()} url={'/question'}></Bottomsubmit>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
@ -504,3 +511,19 @@ class Questionitem_banks extends Component {
|
|
|
|
|
}
|
|
|
|
|
export default SnackbarHOC() (TPMIndexHOC ( Questionitem_banks ));
|
|
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
// item_type===null?
|
|
|
|
|
// ""
|
|
|
|
|
// :
|
|
|
|
|
// <div className=" clearfix edu-back-white orderingbox newshixunbottombtn bottomdivs sortinxdirection intermediatecenter mt50" style={{
|
|
|
|
|
// position:"absolute",
|
|
|
|
|
// bottom: "0px",
|
|
|
|
|
// }} >
|
|
|
|
|
// <a href={'/question'}>
|
|
|
|
|
// <div className="divquxiao mr20 xiaoshou">
|
|
|
|
|
// <p className="divquxiaotest" >取消</p>
|
|
|
|
|
// </div>
|
|
|
|
|
// </a>
|
|
|
|
|
// <div className="divbaocun xiaoshou"><p className="divbaocuntests" onClick={()=>this.preservation()}>保存</p></div>
|
|
|
|
|
// </div>
|
|
|
|
|
// }
|
|
|
|
|