@@ -348,27 +193,27 @@ class ShixunHomeworkPage extends Component {
导出
: ""}
{this.props.isAdmin() ?
teacherdata && teacherdata.end_immediately === true ?
-
立即截止
+
this.homeworkendss(this.child)}>立即截止
: ""
: ""}
{this.props.isAdmin() ?
teacherdata && teacherdata.publish_immediately === true ?
-
立即发布
+
this.homeworkstarts(this.child)}>立即发布
: ""
: ""}
{this.props.isAdmin() ?
teacherdata && teacherdata.code_review === true ?
-
代码查重
+
this.workshowmodels(this.child)}>代码查重
: "" : ""}
{this.state.view_report === true ?
@@ -392,21 +237,21 @@ class ShixunHomeworkPage extends Component {
{
// 教师列表
parseInt(tab) === 0 ? (isAdmin === true ?
-
this.Getdataback(jobsettingsdata, teacherdata)}>
:
-
this.Getdataback(jobsettingsdata, teacherdata)}>)
:
parseInt(tab) === 1 ?
-
this.Getdataback(jobsettingsdata, teacherdata)}>
:
parseInt(tab) === 2 ?
-
this.Getdataback(jobsettingsdata, teacherdata)}>
:
-
this.Getdataback(jobsettingsdata, teacherdata)}>
}
diff --git a/public/react/src/modules/courses/shixunHomework/ShixunStudentWork.js b/public/react/src/modules/courses/shixunHomework/ShixunStudentWork.js
index 17e51258f..37ea4d1c3 100644
--- a/public/react/src/modules/courses/shixunHomework/ShixunStudentWork.js
+++ b/public/react/src/modules/courses/shixunHomework/ShixunStudentWork.js
@@ -76,6 +76,7 @@ class ShixunStudentWork extends Component {
componentDidMount() {
console.log("ShixunStudentWork");
console.log("componentDidMount");
+ this.props.triggerRef(this);
this.getupdata();
this.getTrainingjobsetting();
}
diff --git a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js
index ae1058d8a..411855491 100644
--- a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js
+++ b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js
@@ -128,6 +128,7 @@ class Trainingjobsetting extends Component {
componentDidMount() {
console.log("Trainingjobsetting");
console.log("componentDidMount");
+ this.props.triggerRef(this);
this.getTrainingjobsetting();
let query = this.props.location.pathname;
const type = query.split('/');
diff --git a/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js b/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js
index 52a214b7e..39a963023 100644
--- a/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js
+++ b/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js
@@ -84,6 +84,7 @@ class Workquestionandanswer extends Component {
componentDidMount() {
console.log("Workquestionandanswer");
console.log("componentDidMount");
+ this.props.triggerRef(this);
var homeworkid = this.props.match.params.homeworkid;
// console.log(homeworkid)
this.Gettitleinformation(homeworkid)
diff --git a/public/react/src/modules/login/EducoderLogin.js b/public/react/src/modules/login/EducoderLogin.js
index 124c047ff..8e8bfd112 100644
--- a/public/react/src/modules/login/EducoderLogin.js
+++ b/public/react/src/modules/login/EducoderLogin.js
@@ -25,7 +25,6 @@ import '../courses/css/Courses.css';
import beijintulogontwo from '../../../src/images/login/beijintulogontwo.png';
import educodernet from '../../../src/images/login/educodernet.png';
import LoginRegisterComponent from '../user/LoginRegisterComponent';
-import InterestpageComponent from '../user/Interestpage'
import FindPasswordComponent from '../user/FindPasswordComponent';
import passopen from "../../images/login/passopen.png";
//educoder登入页面
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..707daf1ea 100644
--- a/public/react/src/modules/user/LoginRegisterComponent.js
+++ b/public/react/src/modules/user/LoginRegisterComponent.js
@@ -41,7 +41,7 @@ class LoginRegisterComponent extends Component {
discodeBtn: false,
clearInterval: false,
autoLogin: true,
- classpassbool: true,
+ classpassbool: false,
// 注册
readAgreement: false,
getverificationcodes: true,
@@ -71,7 +71,7 @@ class LoginRegisterComponent extends Component {
discodeBtn: false,
clearInterval: false,
autoLogin: true,
- classpassbool: true,
+ classpassbool: false,
// 注册
readAgreement: false,
getverificationcodes: true,
@@ -251,21 +251,16 @@ class LoginRegisterComponent extends Component {
password: this.state.passwords,
code: this.state.codes,
}).then((result) => {
- console.log(result);
- try {
- // this.onTabChange("1");
- this.setState({
- logins: "",
- dragOk: false,
- codes: "",
- passwords: "",
- Agreetotheterms: "",
- })
- this.props.history.push("/interesse");
- // this.props.Setshowbool(2,this.state.logins,this.state.passwords);
- } catch (e) {
-
- }
+ if(result){
+ this.setState({
+ logins: "",
+ dragOk: false,
+ codes: "",
+ passwords: "",
+ Agreetotheterms: "",
+ })
+ this.props.history.push("/interesse");
+ }
}).catch((error) => {
})
@@ -360,13 +355,13 @@ class LoginRegisterComponent extends Component {
console.log("显示于隐藏");
if (this.state.classpassbool === true) {
this.setState({
- passopens: passoff,
+ passopens: passopen,
classpass: "text",
classpassbool: false,
})
} else {
this.setState({
- passopens: passopen,
+ passopens: passoff ,
classpass: "password",
classpassbool: true,
})
@@ -497,10 +492,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,
})
}
@@ -567,6 +567,7 @@ class LoginRegisterComponent extends Component {
tab,
dragOk,
Whethertoverify,
+ classpassbool,
// 注册
readAgreement,
} = this.state
@@ -575,7 +576,7 @@ class LoginRegisterComponent extends Component {
// window.location.href='http://www.cnblogs.com/a-cat/';
}
- // console.log(activeKey);
+ console.log(classpass);
return (
@@ -759,7 +760,7 @@ class LoginRegisterComponent extends Component {
}