From 5bbc5a0ef576ce83e7109a9a4b25cf4efeef11a7 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Fri, 20 Sep 2019 10:56:43 +0800 Subject: [PATCH 1/3] =?UTF-8?q?hasData=20=20=E8=A1=A5=E4=BA=A4=E9=99=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/modules/courses/busyWork/CommonWorkDetailIndex.js | 4 ++-- .../react/src/modules/courses/busyWork/CommonWorkList.js | 8 +++++--- .../courses/busyWork/common/WorkDetailPageHeader.js | 4 ++-- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js b/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js index b5fb8b047..8985aa07e 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js @@ -286,8 +286,8 @@ class CommonWorkDetailIndex extends Component{ seeworks={undefined} reviseAttachmentUrl={`/student_works/${work_id || studentWorkId}/revise_attachment.json`} />:""} - 补交附件 diff --git a/public/react/src/modules/courses/busyWork/CommonWorkList.js b/public/react/src/modules/courses/busyWork/CommonWorkList.js index a489e7c3d..56ae40e2d 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkList.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkList.js @@ -640,6 +640,8 @@ class CommonWorkList extends Component{ } else if (time_status === 4) { timeMsg = '申诉剩余时间' } + + const hasData = student_works && !!student_works.length && page == 1 // console.log(StudentData) // console.log(student_works) @@ -691,7 +693,7 @@ class CommonWorkList extends Component{ } `}
- { isAdmin &&