|
|
|
@ -18,9 +18,12 @@ import Workquestionandanswer from './Workquestionandanswer';
|
|
|
|
|
import CoursesListType from '../coursesPublic/CoursesListType';
|
|
|
|
|
import ShixunStudentWork from "./ShixunStudentWork";
|
|
|
|
|
import Startshixuntask from "../coursesPublic/Startshixuntask";
|
|
|
|
|
import TPMMDEditor from "../../tpm/challengesnew/TPMMDEditor";
|
|
|
|
|
class ShixunHomeworkPage extends Component {
|
|
|
|
|
constructor(props) {
|
|
|
|
|
super(props);
|
|
|
|
|
this.contentMdRef = React.createRef();
|
|
|
|
|
// this.answerMdRef = React.createRef();
|
|
|
|
|
this.state = {
|
|
|
|
|
tab: ["0"],
|
|
|
|
|
jobsettingsdata: undefined,
|
|
|
|
@ -84,15 +87,16 @@ class ShixunHomeworkPage extends Component {
|
|
|
|
|
console.log("84");
|
|
|
|
|
console.log(ref);
|
|
|
|
|
this.child = ref
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
homeworkendss(){
|
|
|
|
|
this.child.homeworkends();
|
|
|
|
|
this.contentMdRef.current.homeworkends();
|
|
|
|
|
}
|
|
|
|
|
homeworkstarts(){
|
|
|
|
|
this.child.homeworkstart();
|
|
|
|
|
this.contentMdRef.current.homeworkstart();
|
|
|
|
|
}
|
|
|
|
|
workshowmodels(){
|
|
|
|
|
this.child.workshowmodel();
|
|
|
|
|
this.contentMdRef.current.workshowmodel();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
///////////////教师截止
|
|
|
|
@ -235,21 +239,21 @@ class ShixunHomeworkPage extends Component {
|
|
|
|
|
{
|
|
|
|
|
// 教师列表
|
|
|
|
|
parseInt(tab) === 0 ? (isAdmin === true ?
|
|
|
|
|
<Listofworks {...this.props} {...this.state} onRef={this.onRef}
|
|
|
|
|
<Listofworks {...this.props} {...this.state} ref={this.contentMdRef}
|
|
|
|
|
Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></Listofworks>
|
|
|
|
|
:
|
|
|
|
|
<Listofworksstudentone {...this.props} {...this.state} onRef={this.onRef}
|
|
|
|
|
<Listofworksstudentone ref={this.contentMdRef} {...this.props} {...this.state} onRef={(ref)=>{ this.child = ref}}
|
|
|
|
|
Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></Listofworksstudentone>)
|
|
|
|
|
:
|
|
|
|
|
parseInt(tab) === 1 ?
|
|
|
|
|
<Workquestionandanswer {...this.props} {...this.state} onRef={this.onRef}
|
|
|
|
|
<Workquestionandanswer ref={this.contentMdRef} {...this.props} {...this.state} onRef={(ref)=>{ this.child = ref}}
|
|
|
|
|
Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></Workquestionandanswer>
|
|
|
|
|
:
|
|
|
|
|
parseInt(tab) === 2 ?
|
|
|
|
|
<ShixunStudentWork {...this.props} {...this.state} onRef={this.onRef}
|
|
|
|
|
<ShixunStudentWork ref={this.contentMdRef} {...this.props} {...this.state} onRef={(ref)=>{ this.child = ref}}
|
|
|
|
|
Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></ShixunStudentWork>
|
|
|
|
|
:
|
|
|
|
|
<Trainingjobsetting {...this.props} {...this.state} onRef={this.onRef}
|
|
|
|
|
<Trainingjobsetting ref={this.contentMdRef} {...this.props} {...this.state} onRef={(ref)=>{ this.child = ref}}
|
|
|
|
|
Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></Trainingjobsetting>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|