|
|
|
@ -31,7 +31,8 @@ class Paperlibraryseeid extends Component {
|
|
|
|
|
modalsType:false,
|
|
|
|
|
titilesm:"",
|
|
|
|
|
titiless:"",
|
|
|
|
|
boolok:"知道了"
|
|
|
|
|
boolok:"知道了",
|
|
|
|
|
exercise_id:0,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -94,17 +95,38 @@ class Paperlibraryseeid extends Component {
|
|
|
|
|
}
|
|
|
|
|
preservation = () => {
|
|
|
|
|
//保存试卷
|
|
|
|
|
this.setState({
|
|
|
|
|
modalsType: true,
|
|
|
|
|
titilesm: "功能正在内测中,敬请期待",
|
|
|
|
|
titiless: "",
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
// this.setState({
|
|
|
|
|
// modalsType: true,
|
|
|
|
|
// titilesm: "功能正在内测中,敬请期待",
|
|
|
|
|
// titiless: "",
|
|
|
|
|
// })
|
|
|
|
|
let id = this.props.match.params.id;
|
|
|
|
|
let url=`/examination_banks/${id}/send_to_course.json`;
|
|
|
|
|
var data={
|
|
|
|
|
course_id:1309
|
|
|
|
|
};
|
|
|
|
|
this.getwangluodata(url,data);
|
|
|
|
|
|
|
|
|
|
// 2413
|
|
|
|
|
}
|
|
|
|
|
getwangluodata=(url,data)=>{
|
|
|
|
|
axios.post(url,data).then((response) => {
|
|
|
|
|
if (response) {
|
|
|
|
|
// console.log("组卷发送");
|
|
|
|
|
// console.log(response);
|
|
|
|
|
if(response.data){
|
|
|
|
|
if(response.data.status===0){
|
|
|
|
|
this.setState({
|
|
|
|
|
exercise_id:response.data.exercise_id
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setitem_type = (item_type) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -134,7 +156,8 @@ class Paperlibraryseeid extends Component {
|
|
|
|
|
render() {
|
|
|
|
|
let {paperlibrartdata,defaultActiveKey,titilesm,titiless,boolok,modalsType} = this.state;
|
|
|
|
|
const params = this.props && this.props.match && this.props.match.params;
|
|
|
|
|
// ////console.log(params);
|
|
|
|
|
// console.log("params");
|
|
|
|
|
// console.log(params);
|
|
|
|
|
let urlsysl=`/paperlibrary?defaultActiveKey=${defaultActiveKey}`;
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|