diff --git a/public/react/src/modules/courses/shixunHomework/Listofworks.js b/public/react/src/modules/courses/shixunHomework/Listofworks.js index 584798247..de4679256 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworks.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworks.js @@ -597,6 +597,7 @@ class Listofworks extends Component { componentDidMount() { console.log("Listofworks"); console.log("componentDidMount"); + this.props.onRef(this); var homeworkid = this.props.match.params.homeworkid; // console.log(homeworkid) // this.Gettitleinformation(homeworkid); diff --git a/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js b/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js index 4cd0572a8..242e99db1 100644 --- a/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js +++ b/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js @@ -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 ? - this.Getdataback(jobsettingsdata, teacherdata)}> : { this.child = ref}} diff --git a/public/react/src/modules/user/FindPasswordComponent.js b/public/react/src/modules/user/FindPasswordComponent.js index 9609801b8..0526b0cb5 100644 --- a/public/react/src/modules/user/FindPasswordComponent.js +++ b/public/react/src/modules/user/FindPasswordComponent.js @@ -69,7 +69,7 @@ class LoginRegisterComponent extends Component { //这是判断是否手机正确 if(this.state.Phonenumberisnotcobool === true){ - this.openNotification(this.state.Phonenumberisnotcos); + this.openNotification(this.state.Phonenumberisnotco); this.setState({ Whethertoverify:this.state.Whethertoverify===true?false:true, }) @@ -211,6 +211,9 @@ class LoginRegisterComponent extends Component { } this.setState({ login: stirngt, + Phonenumberisnotco:undefined, + dragOk:false, + Whethertoverify:this.state.Whethertoverify===true?false:true, }) } loginInputonChanges = (e) => { diff --git a/public/react/src/modules/user/LoginRegisterComponent.js b/public/react/src/modules/user/LoginRegisterComponent.js index d895297fc..da5cb0889 100644 --- a/public/react/src/modules/user/LoginRegisterComponent.js +++ b/public/react/src/modules/user/LoginRegisterComponent.js @@ -497,10 +497,15 @@ class LoginRegisterComponent extends Component { Phonenumberisnotcos: undefined, Phonenumberisnotcobool: false, logins: stirngt, + dragOk:false, + Whethertoverify:this.state.Whethertoverify===true?false:true, }) }else{ this.setState({ logins: stirngt, + Phonenumberisnotcos: undefined, + dragOk:false, + Whethertoverify:this.state.Whethertoverify===true?false:true, }) }