dev_forum
杨树林 6 years ago
parent 3deae54e9a
commit 2b3b1ac0ad

@ -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);

@ -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}}

@ -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) => {

@ -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,
})
}

Loading…
Cancel
Save