diff --git a/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js b/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js index 31c293659..b9f0f67f9 100644 --- a/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js +++ b/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js @@ -1,5 +1,5 @@ import React,{ Component } from "react"; -import {Checkbox,Radio, Input,InputNumber} from "antd"; +import {Checkbox,Radio, Input,InputNumber,Spin} from "antd"; import '../css/members.css' import '../css/busyWork.css' @@ -75,7 +75,10 @@ class ExerciseReviewAndAnswer extends Component{ Id:undefined, // 试卷总分 - exerciseTotalScore:undefined + exerciseTotalScore:undefined, + + // 加载效果 + isSpin:false } } componentDidUpdate (prevProps) { @@ -163,7 +166,8 @@ class ExerciseReviewAndAnswer extends Component{ getInfo=()=>{ this.setState({ courseName:this.props.current_user.course_name, - userName:this.props.current_user.username + userName:this.props.current_user.username, + isSpin:true }) let eId=this.props.match.params.Id; @@ -187,7 +191,8 @@ class ExerciseReviewAndAnswer extends Component{ exercise_questions:result.data.exercise_questions, user_exercise_status:1, Id:result.data.exercise_answer_user.user_id, - exerciseTotalScore:result.data.exercise_answer_user.score + exerciseTotalScore:result.data.exercise_answer_user.score, + isSpin:false }) } }).catch((error)=>{ @@ -210,7 +215,8 @@ class ExerciseReviewAndAnswer extends Component{ exercise_questions:result.data.exercise_questions, user_exercise_status:result.data.exercise.user_exercise_status, time:result.data.exercise.left_time, - exerciseTotalScore:result.data.user_score + exerciseTotalScore:result.data.user_score, + isSpin:false }) if(result.data.exercise.left_time != null){ this.remainTime(); @@ -498,7 +504,8 @@ class ExerciseReviewAndAnswer extends Component{ ModalCancel, ModalSave, Loadtype, - exerciseTotalScore + exerciseTotalScore, + isSpin }=this.state let isAdmin = this.props.isAdmin(); let isStudent =this.props.isStudent(); @@ -506,6 +513,7 @@ class ExerciseReviewAndAnswer extends Component{ console.log(data&&data.exercise.user_name) return(
+ - - - - () - } - > - () - } - > + + +
+ + () + } + > + () + } + > - () - } - > + () + } + > - () - } - > + () + } + > - () - } - > - + () + } + > + +
); diff --git a/public/react/src/modules/user/account/AccountBasic.js b/public/react/src/modules/user/account/AccountBasic.js index e1d084cc4..831fd39ca 100644 --- a/public/react/src/modules/user/account/AccountBasic.js +++ b/public/react/src/modules/user/account/AccountBasic.js @@ -22,7 +22,7 @@ class AccountBasicEdit extends Component { const {basicInfo} =this.props const showRealName = false; return ( -
+