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

@ -597,6 +597,7 @@ class Listofworks extends Component {
componentDidMount() { componentDidMount() {
console.log("Listofworks"); console.log("Listofworks");
console.log("componentDidMount"); console.log("componentDidMount");
this.props.onRef(this);
var homeworkid = this.props.match.params.homeworkid; var homeworkid = this.props.match.params.homeworkid;
// console.log(homeworkid) // console.log(homeworkid)
// this.Gettitleinformation(homeworkid); // this.Gettitleinformation(homeworkid);

@ -32,6 +32,7 @@ class ShixunHomeworkPage extends Component {
view_report: false, view_report: false,
visible: false, visible: false,
showmodel:false, showmodel:false,
child:undefined,
} }
} }
@ -83,20 +84,32 @@ class ShixunHomeworkPage extends Component {
confirmysl(url) { confirmysl(url) {
this.refs.DownloadMessage.confirmysl(url); this.refs.DownloadMessage.confirmysl(url);
} }
onRef = (ref) => { onRef = (ref) => {
console.log("84"); console.log("84");
console.log(ref); console.log(ref);
this.child = ref this.state.child= ref
} }
homeworkendss(){ homeworkendss(){
this.contentMdRef.current.homeworkends(); // console.log(this.contentMdRef.current);
// // console.log(this.refs.childModel);
// console.log(this.state.child);
// .homeworkends();
} }
homeworkstarts(){ homeworkstarts(){
this.contentMdRef.current.homeworkstart(); // console.log(this.contentMdRef.current);
// console.log(this.state.child);
// .homeworkstart();
} }
workshowmodels(){ 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 ? 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> Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></Listofworks>
: :
<Listofworksstudentone ref={this.contentMdRef} {...this.props} {...this.state} onRef={(ref)=>{ this.child = ref}} <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){ if(this.state.Phonenumberisnotcobool === true){
this.openNotification(this.state.Phonenumberisnotcos); this.openNotification(this.state.Phonenumberisnotco);
this.setState({ this.setState({
Whethertoverify:this.state.Whethertoverify===true?false:true, Whethertoverify:this.state.Whethertoverify===true?false:true,
}) })
@ -211,6 +211,9 @@ class LoginRegisterComponent extends Component {
} }
this.setState({ this.setState({
login: stirngt, login: stirngt,
Phonenumberisnotco:undefined,
dragOk:false,
Whethertoverify:this.state.Whethertoverify===true?false:true,
}) })
} }
loginInputonChanges = (e) => { loginInputonChanges = (e) => {

@ -497,10 +497,15 @@ class LoginRegisterComponent extends Component {
Phonenumberisnotcos: undefined, Phonenumberisnotcos: undefined,
Phonenumberisnotcobool: false, Phonenumberisnotcobool: false,
logins: stirngt, logins: stirngt,
dragOk:false,
Whethertoverify:this.state.Whethertoverify===true?false:true,
}) })
}else{ }else{
this.setState({ this.setState({
logins: stirngt, logins: stirngt,
Phonenumberisnotcos: undefined,
dragOk:false,
Whethertoverify:this.state.Whethertoverify===true?false:true,
}) })
} }

Loading…
Cancel
Save