dev_forum
杨树林 5 years ago
parent 8efdb72bfd
commit 3ddac7bddd

@ -900,9 +900,9 @@ class Listofworksstudentone extends Component {
}, },
], ],
} }
console.log("902"); // console.log("902");
console.log("902"); // console.log("902");
console.log(this.props); // console.log(this.props);
} }
componentDidCatch(error, info){ componentDidCatch(error, info){
@ -916,15 +916,17 @@ class Listofworksstudentone extends Component {
console.log("+++++++++915"); console.log("+++++++++915");
console.log("+++++++++916"); console.log("+++++++++916");
console.log(nextProps); console.log(nextProps);
console.log(this.props)
} }
componentDidMount() { componentDidMount() {
console.log("componentDidMount"); console.log("componentDidMount");
if(this.props.isAdmin() === true){ if(this.props.isAdmin() === true){
this.tearchar(); this.tearchar();
console.log("909"); // console.log("909");
}else{ }else{
this.student(); this.student();
console.log("911"); // console.log("911");
} }
} }
@ -1165,8 +1167,8 @@ class Listofworksstudentone extends Component {
} }
} }
console.log("554"); // console.log("554");
console.log(columns2); // console.log(columns2);
this.setState({ this.setState({
@ -1621,8 +1623,8 @@ class Listofworksstudentone extends Component {
user_name: student_works[i].user_name, user_name: student_works[i].user_name,
user_login: student_works[i].user_login, user_login: student_works[i].user_login,
}) })
console.log(datalist); // console.log(datalist);
console.log("1612"); // console.log("1612");
} }
@ -1719,9 +1721,9 @@ class Listofworksstudentone extends Component {
} else { } else {
} }
//
console.log(datalist); // console.log(datalist);
console.log("1712"); // console.log("1712");
this.setState({ this.setState({
data: datalist, data: datalist,
columns: columns2, columns: columns2,
@ -2004,7 +2006,7 @@ class Listofworksstudentone extends Component {
} }
//立即截止 //立即截止
homeworkends = () => { homeworkends = () => {
console.log("1160"); // console.log("1160");
let homeworkid = this.props.match.params.homeworkid; let homeworkid = this.props.match.params.homeworkid;
let url = "/homework_commons/" + homeworkid + "/end_groups.json"; let url = "/homework_commons/" + homeworkid + "/end_groups.json";
@ -2209,10 +2211,10 @@ class Listofworksstudentone extends Component {
// console.log(this.state.data); // console.log(this.state.data);
// console.log("841"); // console.log("841");
console.log(this.state.columns); // console.log(this.state.columns);
console.log(data); // console.log(data);
console.log("2202"); // console.log("2202");
console.log(this.props.isAdmin()); // console.log(this.props.isAdmin());
return ( return (
this.props.isAdmin() === true ? this.props.isAdmin() === true ?

@ -279,10 +279,10 @@ class ShixunHomeworkPage extends Component {
/> />
{parseInt(tab) === 0 ?<Listofworksstudentone triggerRef={this.bindRef} {...this.props} {...this.state} Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></Listofworksstudentone> {parseInt(tab) === 0 ?<Listofworksstudentone triggerRef={this.bindRef} {...this.props} {...this.state} Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></Listofworksstudentone>:""}
:parseInt(tab) === 1 ?<Workquestionandanswer triggerRef={this.bindRef} {...this.props} {...this.state} Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></Workquestionandanswer> {parseInt(tab) === 1 ?<Workquestionandanswer triggerRef={this.bindRef} {...this.props} {...this.state} Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></Workquestionandanswer>:""}
:parseInt(tab) === 2 ?<ShixunStudentWork triggerRef={this.bindRef} {...this.props} {...this.state} Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></ShixunStudentWork> {parseInt(tab) === 2 ?<ShixunStudentWork triggerRef={this.bindRef} {...this.props} {...this.state} Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></ShixunStudentWork>:""}
:parseInt(tab) === 3 ?<Trainingjobsetting triggerRef={this.bindRef} {...this.props} {...this.state} Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></Trainingjobsetting>:""} {parseInt(tab) === 3 ?<Trainingjobsetting triggerRef={this.bindRef} {...this.props} {...this.state} Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></Trainingjobsetting>:""}
</div> </div>
</div> </div>

@ -289,11 +289,11 @@ class Trialapplicationysl extends Component {
if(result !== undefined){ if(result !== undefined){
this.props.showNotification(`试用申请已提交,我们将尽快完成审核`); this.props.showNotification(`试用申请已提交,我们将尽快完成审核`);
// if (this.state.showTrial === false) { // if (this.state.showTrial === false) {
window.location.href = "/";
this.setState({ this.setState({
isRenders: false isRenders: false
}) })
this.Cancel(); this.Cancel();
window.location.href = "/";
// } else { // } else {
// this.setState({ // this.setState({
// isRenders: false // isRenders: false

Loading…
Cancel
Save