|
|
@ -61,7 +61,7 @@ class Testpapersettinghomepage extends Component{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//试卷公用头部
|
|
|
|
//试卷公用头部
|
|
|
|
Commonheadofthetestpaper=()=>{
|
|
|
|
Commonheadofthetestpaper=()=>{
|
|
|
|
// console.log("Commonheadofthetestpaper");
|
|
|
|
console.log("Commonheadofthetestpaper 试卷公用头部");
|
|
|
|
var exercise_id = this.props.match.params.Id;
|
|
|
|
var exercise_id = this.props.match.params.Id;
|
|
|
|
var url = `/exercises/${exercise_id}/common_header.json`;
|
|
|
|
var url = `/exercises/${exercise_id}/common_header.json`;
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
axios.get(url).then((response) => {
|
|
|
@ -249,6 +249,19 @@ class Testpapersettinghomepage extends Component{
|
|
|
|
// DownloadMessageval:undefined
|
|
|
|
// DownloadMessageval:undefined
|
|
|
|
// })
|
|
|
|
// })
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
getsetdata =()=>{
|
|
|
|
|
|
|
|
// console.log("Testpapersettinghomepage");
|
|
|
|
|
|
|
|
// console.log("getsetdatassssss");
|
|
|
|
|
|
|
|
let{tab}=this.state;
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
if(tab[0]==="0"){
|
|
|
|
|
|
|
|
this.child.Teacherliststudentlist();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
bindRef = ref => { this.child = ref };
|
|
|
|
bindRef = ref => { this.child = ref };
|
|
|
|
goback=()=>{
|
|
|
|
goback=()=>{
|
|
|
|
// let {datalist}=this.state;
|
|
|
|
// let {datalist}=this.state;
|
|
|
@ -410,6 +423,7 @@ class Testpapersettinghomepage extends Component{
|
|
|
|
Exercisetype={"exercise"}
|
|
|
|
Exercisetype={"exercise"}
|
|
|
|
action={this.Commonheadofthetestpaper}
|
|
|
|
action={this.Commonheadofthetestpaper}
|
|
|
|
single={true}
|
|
|
|
single={true}
|
|
|
|
|
|
|
|
getsetdata={this.getsetdata}
|
|
|
|
></ImmediatelyPublish>
|
|
|
|
></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>:""}
|
|
|
|
{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>:""}
|
|
|
|