diff --git a/public/react/src/modules/courses/poll/PollDetailTabSecond.js b/public/react/src/modules/courses/poll/PollDetailTabSecond.js
index f52e77dd8..8d73ec5da 100644
--- a/public/react/src/modules/courses/poll/PollDetailTabSecond.js
+++ b/public/react/src/modules/courses/poll/PollDetailTabSecond.js
@@ -1,5 +1,5 @@
import React,{ Component } from "react";
-import { Pagination} from "antd";
+import { Pagination , Spin } from "antd";
import NoneData from "../coursesPublic/NoneData"
import '../css/members.css'
@@ -16,10 +16,14 @@ class PollDetailTabSecond extends Component{
page:1,
limit:10,
questions:undefined,
- questionsInfo:undefined
+ questionsInfo:undefined,
+ isSpin:false
}
}
getInfo=(page)=>{
+ this.setState({
+ isSpin:true
+ })
let pollId=this.props.match.params.pollId;
let url=`/polls/${pollId}/commit_result.json?page=${page}`;
axios.get(url).then((result)=>{
@@ -27,7 +31,8 @@ class PollDetailTabSecond extends Component{
this.setState({
page: page,
questions:result.data.questions,
- questionsInfo:result.data.question_types
+ questionsInfo:result.data.question_types,
+ isSpin:false
})
}
}).catch((error)=>{
@@ -56,11 +61,12 @@ class PollDetailTabSecond extends Component{
}
render(){
- let {page, limit, questions, questionsInfo} = this.state;
+ let {page, limit, questions, questionsInfo , isSpin} = this.state;
return(
+
- 文本答案
+ 编号
+ 文本答案
:
@@ -105,19 +112,22 @@ class PollDetailTabSecond extends Component{
{/* 主观题 */}
{
item.question.question_type == 3 && item.question.vote_text &&
-
-
- {
- item.question.vote_text.map((txt,t)=>{
- return(
-
-
+ {t+1}
+
+
+