|
|
|
@ -32,6 +32,7 @@ class ShixunHomeworkPage extends Component {
|
|
|
|
|
view_report: false,
|
|
|
|
|
visible: false,
|
|
|
|
|
showmodel:false,
|
|
|
|
|
child:undefined,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -83,20 +84,32 @@ class ShixunHomeworkPage extends Component {
|
|
|
|
|
confirmysl(url) {
|
|
|
|
|
this.refs.DownloadMessage.confirmysl(url);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onRef = (ref) => {
|
|
|
|
|
console.log("84");
|
|
|
|
|
console.log(ref);
|
|
|
|
|
this.child = ref
|
|
|
|
|
|
|
|
|
|
this.state.child= ref
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
homeworkendss(){
|
|
|
|
|
this.contentMdRef.current.homeworkends();
|
|
|
|
|
// console.log(this.contentMdRef.current);
|
|
|
|
|
// // console.log(this.refs.childModel);
|
|
|
|
|
// console.log(this.state.child);
|
|
|
|
|
|
|
|
|
|
// .homeworkends();
|
|
|
|
|
}
|
|
|
|
|
homeworkstarts(){
|
|
|
|
|
this.contentMdRef.current.homeworkstart();
|
|
|
|
|
// console.log(this.contentMdRef.current);
|
|
|
|
|
// console.log(this.state.child);
|
|
|
|
|
|
|
|
|
|
// .homeworkstart();
|
|
|
|
|
}
|
|
|
|
|
workshowmodels(){
|
|
|
|
|
this.contentMdRef.current.workshowmodel();
|
|
|
|
|
// console.log(this.contentMdRef.current)
|
|
|
|
|
// console.log(this.state.child);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// .workshowmodel();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
///////////////教师截止
|
|
|
|
@ -239,7 +252,7 @@ class ShixunHomeworkPage extends Component {
|
|
|
|
|
{
|
|
|
|
|
// 教师列表
|
|
|
|
|
parseInt(tab) === 0 ? (isAdmin === true ?
|
|
|
|
|
<Listofworks {...this.props} {...this.state} ref={this.contentMdRef}
|
|
|
|
|
<Listofworks {...this.props} {...this.state} onRef={this.onRef}
|
|
|
|
|
Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></Listofworks>
|
|
|
|
|
:
|
|
|
|
|
<Listofworksstudentone ref={this.contentMdRef} {...this.props} {...this.state} onRef={(ref)=>{ this.child = ref}}
|
|
|
|
|