diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitedit.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitedit.js index ec1cf4e48..cad289855 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitedit.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitedit.js @@ -1,5 +1,5 @@ import React,{Component} from "React"; -import { Form, Select, Input, Button,Checkbox,Upload,Icon,message,Modal,Spin} from "antd"; +import { Form, Select, Input, Button,Checkbox,Upload,Icon,message,Modal,Spin,Tooltip} from "antd"; import {Link} from 'react-router-dom'; import TPMMDEditor from '../../../tpm/challengesnew/TPMMDEditor'; import { WordsBtn,getUrl } from 'educoder'; @@ -571,7 +571,7 @@ class GraduationTasksSubmitedit extends Component{
成员要求:2~5人
- + -
+
- {memberslist&&memberslist.members.map((item,key)=>{ + {memberslist===undefined?"":memberslist.members.length===0?
+
+ +

未找到包含{search}的学生

+
+
:memberslist&&memberslist.members.map((item,key)=>{ return(
- -
{item.user_name}
-
{item.group_name}
-
{item.student_id}
-
{item.commit_status===true?已提交 :""}
+ { + return parseInt(task_status[key])===item.user_id?true:false + }) + } + disabled={item.commit_status===true?true:false} className="fl "> + +
{item.user_name}
+
+
{item.group_name}
+
{item.student_id}
+
{item.commit_status===false?已提交 :""}
) })} diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitnew.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitnew.js index e1284832c..1c72433b6 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitnew.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitnew.js @@ -2,7 +2,7 @@ import React,{Component} from "React"; import { Form, Select, Input, Button,Checkbox,Upload,Icon,message,Modal,Tooltip,Spin} from "antd"; import {Link} from 'react-router-dom'; import TPMMDEditor from '../../../tpm/challengesnew/TPMMDEditor'; -import { WordsBtn,getUrl } from 'educoder'; +import { WordsBtn,getUrl,getImageUrl} from 'educoder'; import axios from 'axios'; import Modals from '../../../modals/Modals'; const Search = Input.Search; @@ -354,7 +354,6 @@ class GraduationTasksSubmitnew extends Component{ let newlist =memberslist.members; let newcheckedValues=checkedValues; let selects=[]; - selects.push(selectobjct) for(var i=0; i成员要求:2~5人
@@ -548,17 +558,31 @@ render(){
- {memberslist&&memberslist.members.map((item,key)=>{ + {memberslist===undefined?"":memberslist.members.length===0? +
+
+ +

未找到包含{search}的学生

+
+
:memberslist&&memberslist.members.map((item,key)=>{ + return(
- -
{item.user_name}
-
{item.group_name}
-
{item.student_id}
-
{item.commit_status===true?已提交 :""}
+ { + return parseInt(task_status[key])===item.user_id?true:false + }) + } + disabled={item.commit_status===true?true:false} className="fl "> + +
{item.user_name}
+
+
{item.group_name}
+
{item.student_id}
+
{item.commit_status===true?已提交 :""}
) })} @@ -584,12 +608,13 @@ render(){ height: '30px', display:item.user_name===undefined?"none":"" }}> - -
{item.user_name}
+ +
{item.user_name}
-
{item.group_name}
-
{item.student_id}
- {key>0?
this.delecttask_status(item.user_id)}>
:""} +
{item.group_name}
+
{item.student_id}
+ {key>0?
this.delecttask_status(item.user_id)}>
:""} +
) })} diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js index 3971cab0f..52c12d069 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js @@ -92,7 +92,7 @@ class GraduationTaskssettinglist extends Component{ for (var i = 0; i < worklists.length; i++) { datalist.push({ name: worklists[i].name, - number: (parseInt(page)-1)*parseInt(limit)+(i+1), + number: (parseInt(pages)-1)*parseInt(limit)+(i+1), stduynumber: worklists[i].student_id, classroom: worklists[i].class_grouping_name, grouping: result.data.have_grouping === true ? worklists[i].grouping_name : null, diff --git a/public/react/src/modules/user/LoginRegisterComponent.js b/public/react/src/modules/user/LoginRegisterComponent.js index 846000984..800453b36 100644 --- a/public/react/src/modules/user/LoginRegisterComponent.js +++ b/public/react/src/modules/user/LoginRegisterComponent.js @@ -576,6 +576,7 @@ class LoginRegisterComponent extends Component { { @@ -605,7 +606,7 @@ class LoginRegisterComponent extends Component { { parseInt(tab[0])==1 &&
-