From b8d7473c3efb0dbfd7c2f56b7a8c997aad98dafd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Wed, 10 Jul 2019 09:31:45 +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/GraduationTaskssettinglist.js | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js index 2ad892e64..5a02169e7 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js @@ -73,14 +73,14 @@ class GraduationTaskssettinglist extends Component{ //get 数组 axios.get(url,{ params: { - teacher_comment:teacher_comment, - task_status:task_status, - course_group:course_group, - cross_comment:cross_comment, - order:order, - b_order:b_order, - search:search, - page:pages, + teacher_comment:teacher_comment===null?undefined:teacher_comment, + task_status:task_status===null?undefined:task_status, + course_group:course_group===null?undefined:course_group, + cross_comment:cross_comment===null?undefined:cross_comment, + order:order===null?undefined:order, + b_order:b_order===null?undefined:b_order, + search:search===null?undefined:search, + page:pages===null?undefined:pages, limit:20, }, paramsSerializer: function(params) { @@ -148,7 +148,12 @@ class GraduationTaskssettinglist extends Component{ loadingstate:true }) - this.seacthdata(list.length===key?undefined:list, task_status, course_group, cross_comment, order, b_order, search,this.state.page); + if(list.length===key){ + + }else{ + this.seacthdata(list, task_status, course_group, cross_comment, order, b_order, search,this.state.page); + + } }