From dd43f3d797e1e6a71adea35fe9e1f410d71f359e Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Wed, 13 Nov 2019 11:43:51 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E5=8D=B7=E7=BB=9F=E8=AE=A1=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E5=92=8C=E9=97=AE=E5=8D=B7=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../courses/poll/PollDetailTabSecond.js | 6 +- .../courses/poll/PollDetailTabThirdInfo.js | 56 +++++++++++-------- 2 files changed, 35 insertions(+), 27 deletions(-) diff --git a/public/react/src/modules/courses/poll/PollDetailTabSecond.js b/public/react/src/modules/courses/poll/PollDetailTabSecond.js index c4a743ac6..65a07b2bb 100644 --- a/public/react/src/modules/courses/poll/PollDetailTabSecond.js +++ b/public/react/src/modules/courses/poll/PollDetailTabSecond.js @@ -64,7 +64,7 @@ class PollDetailTabSecond extends Component{ let {page, limit, questions, questionsInfo , isSpin} = this.state; return( -
+ { questions && questions.length>0 && questions.map((item,key)=>{ return( @@ -179,7 +179,7 @@ class PollDetailTabSecond extends Component{ }) } { - questions && questions.length == 0 && + questions && questions.length == 0 &&
} { questionsInfo && questionsInfo.q_counts > limit && @@ -189,7 +189,7 @@ class PollDetailTabSecond extends Component{
} - +
) } diff --git a/public/react/src/modules/courses/poll/PollDetailTabThirdInfo.js b/public/react/src/modules/courses/poll/PollDetailTabThirdInfo.js index 526f32aa9..ed5f21fbb 100644 --- a/public/react/src/modules/courses/poll/PollDetailTabThirdInfo.js +++ b/public/react/src/modules/courses/poll/PollDetailTabThirdInfo.js @@ -1,6 +1,7 @@ import React,{ Component } from "react"; import {Checkbox,Radio} from "antd"; +import NoneData from "../coursesPublic/NoneData" import '../css/members.css' import '../css/busyWork.css' @@ -26,31 +27,34 @@ class PollDetailTabThirdInfo extends Component{ pollDetail !== pollDetail.poll.polls_description &&

{ pollDetail.poll.polls_description }

} -

- { !pollDetail || !pollDetail.question_types || pollDetail.question_types.q_counts===0 ? "" : - - { - pollDetail && pollDetail.question_types && pollDetail.question_types.q_counts > 0 && - 合计{pollDetail.question_types && pollDetail.question_types.q_counts}题: - } - { - pollDetail && pollDetail.question_types.q_singles > 0 && - 单选题{pollDetail.question_types.q_singles}题 - } - { - pollDetail && pollDetail.question_types.q_doubles > 0 && - 多选题{pollDetail.question_types.q_doubles}题 - } - { - pollDetail && pollDetail.question_types.q_mains > 0 && - 主观题{pollDetail.question_types.q_mains}题 - } - - } -

- { - pollDetail && pollDetail.questions && pollDetail.questions.map((item,key)=>{ + pollDetail && pollDetail.questions && pollDetail.questions.length > 0 && +

+ { !pollDetail || !pollDetail.question_types || pollDetail.question_types.q_counts===0 ? "" : + + { + pollDetail && pollDetail.question_types && pollDetail.question_types.q_counts > 0 && + 合计{pollDetail.question_types && pollDetail.question_types.q_counts}题: + } + { + pollDetail && pollDetail.question_types.q_singles > 0 && + 单选题{pollDetail.question_types.q_singles}题 + } + { + pollDetail && pollDetail.question_types.q_doubles > 0 && + 多选题{pollDetail.question_types.q_doubles}题 + } + { + pollDetail && pollDetail.question_types.q_mains > 0 && + 主观题{pollDetail.question_types.q_mains}题 + } + + } +

+ } + + { + pollDetail && pollDetail.questions && pollDetail.questions.length > 0 && pollDetail.questions.map((item,key)=>{ return(

@@ -120,6 +124,10 @@ class PollDetailTabThirdInfo extends Component{ ) }) } + + { + pollDetail && pollDetail.questions && pollDetail.questions.length == 0 && + }

: "" }