|
|
|
@ -2030,7 +2030,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
//===0 不包括主观题
|
|
|
|
|
if (indexi === exercise_users.length) {
|
|
|
|
|
//都没评论 不显示评论
|
|
|
|
|
if (response.data.course_groups.length > 0) {
|
|
|
|
|
if (response.data.poll_types.groups_count > 0) {
|
|
|
|
|
// console.log("77771111111");
|
|
|
|
|
//分班大于0显示分班
|
|
|
|
|
//7ge
|
|
|
|
@ -2272,7 +2272,8 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
//已经评论
|
|
|
|
|
if (response.data.course_groups.length > 0) {
|
|
|
|
|
// response.data.course_groups.length
|
|
|
|
|
if (response.data.poll_types.groups_count > 0) {
|
|
|
|
|
//显示分班
|
|
|
|
|
//8ge
|
|
|
|
|
this.setState({
|
|
|
|
@ -2545,7 +2546,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
//包括主观题
|
|
|
|
|
if (indexi === exercise_users.length) {
|
|
|
|
|
console.log("2548包含主观题不包含分班");
|
|
|
|
|
if (response.data.course_groups.length > 0){
|
|
|
|
|
if (response.data.poll_types.groups_count> 0){
|
|
|
|
|
this.setState({
|
|
|
|
|
data: datalist,
|
|
|
|
|
teacherlist: teacherlist,
|
|
|
|
@ -2836,7 +2837,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
console.log("2699包含主观题包含分班");
|
|
|
|
|
if (response.data.course_groups.length > 0) {
|
|
|
|
|
if (response.data.poll_types.groups_count> 0) {
|
|
|
|
|
this.setState({
|
|
|
|
|
data: datalist,
|
|
|
|
|
teacherlist: teacherlist,
|
|
|
|
|