|
|
|
@ -61,7 +61,7 @@ class Testpapersettinghomepage extends Component{
|
|
|
|
|
}
|
|
|
|
|
//试卷公用头部
|
|
|
|
|
Commonheadofthetestpaper=()=>{
|
|
|
|
|
// console.log("Commonheadofthetestpaper");
|
|
|
|
|
console.log("Commonheadofthetestpaper 试卷公用头部");
|
|
|
|
|
var exercise_id = this.props.match.params.Id;
|
|
|
|
|
var url = `/exercises/${exercise_id}/common_header.json`;
|
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
@ -250,10 +250,12 @@ class Testpapersettinghomepage extends Component{
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
getsetdata =()=>{
|
|
|
|
|
let{tab}=this.state;
|
|
|
|
|
// console.log("Testpapersettinghomepage");
|
|
|
|
|
// console.log("getsetdatassssss");
|
|
|
|
|
let{tab}=this.state;
|
|
|
|
|
try {
|
|
|
|
|
if(tab[0]===0){
|
|
|
|
|
console.log(this.child);
|
|
|
|
|
if(tab[0]==="0"){
|
|
|
|
|
this.child.Teacherliststudentlist();
|
|
|
|
|
}
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
|
@ -421,7 +423,7 @@ class Testpapersettinghomepage extends Component{
|
|
|
|
|
Exercisetype={"exercise"}
|
|
|
|
|
action={this.Commonheadofthetestpaper}
|
|
|
|
|
single={true}
|
|
|
|
|
getsetdata={()=>this.getsetdata()}
|
|
|
|
|
getsetdata={this.getsetdata}
|
|
|
|
|
></ImmediatelyPublish>
|
|
|
|
|
:"":""}
|
|
|
|
|
{isAdmin === true? <Link className="fr color-blue font-16 mt20 mr20" to={`/courses/${this.props.match.params.coursesId}/exercises/${this.props.match.params.Id}/edit`}>编辑试卷</Link>:""}
|
|
|
|
|