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