From 2eda5726dd91b90512ba66c1e319e7beb9967a9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Thu, 4 Jul 2019 10:25: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 --- .../courses/shixunHomework/Listofworks.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/public/react/src/modules/courses/shixunHomework/Listofworks.js b/public/react/src/modules/courses/shixunHomework/Listofworks.js index 5dea6e3e6..e7b85b19d 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworks.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworks.js @@ -753,7 +753,7 @@ class Listofworks extends Component { let {page, limit} = this.state; let datalist = []; let columns = this.state.columns; - // var columns2=[]; + var columns2=[]; if (teacherdata !== undefined) { for (var i = 0; i < student_works.length; i++) { var timedata = moment(student_works[i].update_time).format('YYYY-MM-DD HH:mm'); @@ -799,7 +799,7 @@ class Listofworks extends Component { else if(this.props.isNotMember()===true&&item.title==="学号") { }else{ - columns.push(item); + columns2.push(item); } } @@ -817,7 +817,7 @@ class Listofworks extends Component { else if(this.props.isNotMember()===true&&item.title==="学号") { }else{ - columns.push(item); + columns2.push(item); } } @@ -831,7 +831,7 @@ class Listofworks extends Component { else if(this.props.isNotMember()===true&&item.title==="学号") { }else{ - columns.push(item); + columns2.push(item); } } } @@ -847,7 +847,7 @@ class Listofworks extends Component { else if(this.props.isNotMember()===true&&item.title==="学号") { }else{ - columns.push(item); + columns2.push(item); } } @@ -863,11 +863,11 @@ class Listofworks extends Component { else if(this.props.isNotMember()===true&&item.title==="学号") { }else{ - columns.push(item); + columns2.push(item); } } } - columns=this.state.columnss; + columns2=this.state.columnss; } } @@ -877,7 +877,7 @@ class Listofworks extends Component { this.setState({ data: datalist, teacherlist: teacherlist, - columns: columns, + columns: columns2, loadingstate: false, }) }