dev_forum
杨树林 6 years ago
parent b6d4d824c5
commit 161c28ea89

@ -22,7 +22,6 @@ import TPMMDEditor from "../../tpm/challengesnew/TPMMDEditor";
class ShixunHomeworkPage extends Component { class ShixunHomeworkPage extends Component {
constructor(props) { constructor(props) {
super(props); super(props);
this.contentMdRef = React.createRef();
// this.answerMdRef = React.createRef(); // this.answerMdRef = React.createRef();
this.state = { this.state = {
tab: ["0"], tab: ["0"],
@ -85,35 +84,16 @@ class ShixunHomeworkPage extends Component {
child.confirmysl(url); child.confirmysl(url);
} }
onRef = (ref) => {
console.log("84");
console.log(ref);
this.state.child= ref
}
homeworkendss(child){ homeworkendss(child){
// console.log(child);
// // console.log(this.refs.childModel);
// console.log(child);
child.homeworkends(); child.homeworkends();
//
} }
homeworkstarts(child){ homeworkstarts(child){
// console.log(this.contentMdRef.current);
// console.log(this.state.child);
child.homeworkstart(); child.homeworkstart();
// .homeworkstart();
} }
workshowmodels(child){ workshowmodels(child){
// console.log(this.contentMdRef.current)
// console.log(this.state.child);
// console.log(this.child);
child.workshowmodel(); child.workshowmodel();
// .workshowmodel();
} }
bindRef = ref => { this.child = ref } bindRef = ref => { this.child = ref }
@ -123,8 +103,6 @@ class ShixunHomeworkPage extends Component {
let {tab, teacherdata, jobsettingsdata} = this.state; let {tab, teacherdata, jobsettingsdata} = this.state;
const isAdmin = this.props.isAdmin(); const isAdmin = this.props.isAdmin();
// console.log("126");
// console.log(this.child);/
return ( return (
<div className="newMain clearfix "> <div className="newMain clearfix ">
<div className={"educontent mb20"} style={{width: "1200px"}}> <div className={"educontent mb20"} style={{width: "1200px"}}>

Loading…
Cancel
Save