|
|
|
@ -899,6 +899,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
yslpros:false,
|
|
|
|
|
}
|
|
|
|
|
// console.log("902");
|
|
|
|
|
// console.log("902");
|
|
|
|
@ -912,15 +913,26 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
componentWillReceiveProps(nextProps) {
|
|
|
|
|
console.log("+++++++++913");
|
|
|
|
|
console.log("+++++++++915");
|
|
|
|
|
console.log("+++++++++916");
|
|
|
|
|
console.log(nextProps);
|
|
|
|
|
console.log(this.props)
|
|
|
|
|
// console.log("+++++++++916");
|
|
|
|
|
// console.log(nextProps);
|
|
|
|
|
// console.log(this.props)
|
|
|
|
|
// console.log(this.props.isAdmin());
|
|
|
|
|
if (nextProps.code_review != this.props.code_review) {
|
|
|
|
|
if (nextProps.code_review !== undefined) {
|
|
|
|
|
console.log("diaoyonglwangluo1");
|
|
|
|
|
if(this.props.isAdmin() === true){
|
|
|
|
|
this.tearchar();
|
|
|
|
|
}else{
|
|
|
|
|
this.student();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
componentDidMount() {
|
|
|
|
|
console.log("componentDidMount");
|
|
|
|
|
|
|
|
|
|
console.log(this.props.isAdmin());
|
|
|
|
|
if(this.props.isAdmin() === true){
|
|
|
|
|
this.tearchar();
|
|
|
|
|
// console.log("909");
|
|
|
|
@ -2217,6 +2229,9 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
|
|
|
|
|
confirmysl(url){
|
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
|
if(response === undefined){
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if(response.data.status&&response.data.status===-1){
|
|
|
|
|
|
|
|
|
|
}else if(response.data.status&&response.data.status===-2){
|
|
|
|
|