|
|
@ -1,5 +1,4 @@
|
|
|
|
import React, { Component } from "react";
|
|
|
|
import React, { Component } from "react";
|
|
|
|
import { SnackbarHOC } from 'educoder';
|
|
|
|
|
|
|
|
import axios from 'axios';
|
|
|
|
import axios from 'axios';
|
|
|
|
import { Breadcrumb } from "antd";
|
|
|
|
import { Breadcrumb } from "antd";
|
|
|
|
import TPMIndexHOC from "../tpm/TPMIndexHOC";
|
|
|
|
import TPMIndexHOC from "../tpm/TPMIndexHOC";
|
|
|
@ -10,6 +9,7 @@ import Bottomsubmit from "../../modules/modals/Bottomsubmit";
|
|
|
|
import Comthetestpaperst from "./comthetestpaper/Comthetestpaperst";
|
|
|
|
import Comthetestpaperst from "./comthetestpaper/Comthetestpaperst";
|
|
|
|
import NewMyShixunModel from "../question/NewMyShixunModel";
|
|
|
|
import NewMyShixunModel from "../question/NewMyShixunModel";
|
|
|
|
//人工组卷预览
|
|
|
|
//人工组卷预览
|
|
|
|
|
|
|
|
let Changes=true;
|
|
|
|
class Paperreview extends Component {
|
|
|
|
class Paperreview extends Component {
|
|
|
|
constructor(props) {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
super(props);
|
|
|
@ -263,8 +263,39 @@ class Paperreview extends Component {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
window.clearInterval(scrollToTop);
|
|
|
|
window.clearInterval(scrollToTop);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, 2);
|
|
|
|
}).catch((error) => {
|
|
|
|
|
|
|
|
//console.log(error);
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
//换题
|
|
|
|
|
|
|
|
Changingtopics=(id)=>{
|
|
|
|
|
|
|
|
if(Changes===true){
|
|
|
|
|
|
|
|
Changes=false;
|
|
|
|
|
|
|
|
const url=`/examination_intelligent_settings/${this.props.match.params.id}/exchange_one_item.json`;
|
|
|
|
|
|
|
|
let data={
|
|
|
|
|
|
|
|
item_id:id,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
axios.post(url, data)
|
|
|
|
|
|
|
|
.then((result) => {
|
|
|
|
|
|
|
|
if (result.data.status == 0) {
|
|
|
|
|
|
|
|
//console.log(result);
|
|
|
|
|
|
|
|
var data = {}
|
|
|
|
|
|
|
|
this.getdata(data);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
setTimeout(()=>{
|
|
|
|
|
|
|
|
Changes=true;
|
|
|
|
|
|
|
|
},1000);
|
|
|
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
|
|
|
//console.log(error);
|
|
|
|
|
|
|
|
setTimeout(()=>{
|
|
|
|
|
|
|
|
Changes=true;
|
|
|
|
|
|
|
|
},1000);
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setIntelligentformation=(bool)=>{
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
newmyshixunmodelbool: bool
|
|
|
|
newmyshixunmodelbool: bool
|
|
|
|
})
|
|
|
|
})
|
|
|
|