From af28a5c5e8cb78c328ad7153dffe1e9ad9f2ff79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Tue, 8 Oct 2019 09:24:06 +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 --- public/react/src/common/course/WordsBtn.js | 7 ++++--- .../courses/exercise/Studentshavecompletedthelist.js | 2 ++ .../react/src/modules/courses/poll/PollDetailTabFirst.js | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/public/react/src/common/course/WordsBtn.js b/public/react/src/common/course/WordsBtn.js index 698da6d5f..f4167bb80 100644 --- a/public/react/src/common/course/WordsBtn.js +++ b/public/react/src/common/course/WordsBtn.js @@ -8,12 +8,13 @@ class WordsBtn extends Component { } render() { - let{to, href,target}=this.props + let{to, href,targets}=this.props return( { - to==undefined ? - {this.props.children} + to==undefined&&targets==undefined ? + {this.props.children}: + target!=undefined? {this.props.children} : {this.props.children} } diff --git a/public/react/src/modules/courses/exercise/Studentshavecompletedthelist.js b/public/react/src/modules/courses/exercise/Studentshavecompletedthelist.js index fa3a29542..438c07aeb 100644 --- a/public/react/src/modules/courses/exercise/Studentshavecompletedthelist.js +++ b/public/react/src/modules/courses/exercise/Studentshavecompletedthelist.js @@ -1021,6 +1021,7 @@ class Studentshavecompletedthelist extends Component { >-- : {record.finalscore} } @@ -1211,6 +1212,7 @@ class Studentshavecompletedthelist extends Component { >-- : {record.finalscore} } diff --git a/public/react/src/modules/courses/poll/PollDetailTabFirst.js b/public/react/src/modules/courses/poll/PollDetailTabFirst.js index cc1a94bc0..a03328c7a 100644 --- a/public/react/src/modules/courses/poll/PollDetailTabFirst.js +++ b/public/react/src/modules/courses/poll/PollDetailTabFirst.js @@ -228,7 +228,7 @@ class PollDetailTabFirst extends Component{ width:120, render:(operation,item,index)=>{ return( - item.status == 1 ? 查看:-- + item.status == 1 ? 查看:-- ) } }];