dev_cs
杨树林 5 years ago
parent ed607d7437
commit 587c0c3130

@ -3059,20 +3059,20 @@ class Listofworksstudentone extends Component {
// console.log(this.props.isAdmin());
let course_is_end = this.props.current_user&&this.props.current_user.course_is_end;
try {
if(this.props.isAdmin() === false){
if(teacherdata&&teacherdata.student_works){
if(teacherdata&&teacherdata.student_works.length>0){
console.log("这是双层页面。。。。");
}
}
}
}catch (e) {
console.log("Listofworksstudentone123");
console.log(e);
}
// try {
// if(this.props.isAdmin() === false){
// if(teacherdata&&teacherdata.student_works){
// if(teacherdata&&teacherdata.student_works.length>0){
// console.log("这是双层页面。。。。");
//
// }
// }
//
// }
// }catch (e) {
// console.log("Listofworksstudentone123");
// console.log(e);
// }
return (
@ -3151,12 +3151,12 @@ class Listofworksstudentone extends Component {
typs={this.state.typs}
/>
{
homework_status.length===0?
homework_status&&homework_status.length===0?
<div className="edu-back-white">
<NoneData></NoneData>
</div>
:
homework_status.length>0 && homework_status[0]==="未发布"?
homework_status&&homework_status.length>0 && homework_status[0]==="未发布"?
<div className="edu-back-white">
<NoneData></NoneData>
</div>

Loading…
Cancel
Save