From 93fcb44a957dac0daac3abebf15aec1f2c62843e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Sat, 29 Jun 2019 10:46:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tasks/GraduationTasksSubmitedit.js | 95 ++++++++++------ .../tasks/GraduationTasksSubmitnew.js | 101 +++++++++++------- .../Shixunworkdetails/ShixunWorkModal.js | 19 ++-- 3 files changed, 136 insertions(+), 79 deletions(-) diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitedit.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitedit.js index 76ff783d3..63865c577 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitedit.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitedit.js @@ -35,6 +35,7 @@ class GraduationTasksSubmitedit extends Component{ attachments:undefined, spinnings:false, shixunsreplace:false, + limit:20 } } @@ -59,7 +60,7 @@ class GraduationTasksSubmitedit extends Component{ if(result.data.task_type===1){ }else{ - this.searchList("",1,10,result.data.task_id) + this.searchList("",1,20,result.data.task_id) } this.props.form.setFieldsValue({ @@ -222,15 +223,15 @@ class GraduationTasksSubmitedit extends Component{ let {search,workslist} = this.state; - this.searchList(search,1,10,workslist.task_id) + this.searchList(search,1,20,workslist.task_id) } - searchList=(search,page,limit,id)=>{ + searchList=(search,page,limit,id,types)=>{ + let {memberslist}=this.state; + let newmemberslist=memberslist this.setState({ - search:search, - page:page, - limit:10 + }) let newid=id if(newid===undefined){ @@ -245,9 +246,28 @@ class GraduationTasksSubmitedit extends Component{ }).then((result)=>{ if(result.status===200){ - this.setState({ - memberslist:result.data - }) + if(types===1){ + if(result.data.members.length>0) { + result.data.members.map((item, key) => { + newmemberslist.push(item) + }) + } + this.setState({ + memberslist:newmemberslist, + search:search, + page:page, + limit:limit + }) + + }else{ + this.setState({ + memberslist:result.data.members, + search:search, + page:page, + limit:limit + }) + } + } }).catch((error)=>{ @@ -265,7 +285,7 @@ class GraduationTasksSubmitedit extends Component{ let newpage=page+2 - this.searchList(search,newpage,limit,workslist.task_id) + this.searchList(search,newpage,limit,workslist.task_id,1) } @@ -274,7 +294,7 @@ class GraduationTasksSubmitedit extends Component{ funtaskstatus=(checkedValues)=>{ let{memberslist,selectobjct}=this.state; - let newlist =memberslist.members; + let newlist =memberslist; let newcheckedValues=checkedValues; let selects=[]; @@ -666,8 +686,8 @@ class GraduationTasksSubmitedit extends Component{ text-overflow:ellipsis; white-space:nowrap } - .width87{ - width: 87px; + .width100{ + width: 100px; height: 24px; } img.edu-nodata-img { @@ -675,22 +695,25 @@ class GraduationTasksSubmitedit extends Component{ margin: 50px 90px 20px; display: block; } + .autos{ + overflow: auto; + } `}
未找到包含{search}的学生
未找到包含{search}的学生
+ {/*未找到包含{search}的学生
*/} +未找到该学生