diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index fee6eb724..043c0f78d 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -46,7 +46,7 @@ debugType="admin"; // 老师 // debugType="teacher"; // 学生 -// debugType="student"; +//debugType="student"; diff --git a/public/react/src/modules/courses/exercise/question/fillEmpty.js b/public/react/src/modules/courses/exercise/question/fillEmpty.js index 737fef682..10b906fad 100644 --- a/public/react/src/modules/courses/exercise/question/fillEmpty.js +++ b/public/react/src/modules/courses/exercise/question/fillEmpty.js @@ -44,13 +44,13 @@ class fillEmpty extends Component{ } onOptionContentChange = (value, index) => { - let array = this.state.array.slice(0); + let array = this.state.array.slice(0); array[index].value = value; this.setState({ array }) } onBlurEmpty=(index,number)=>{ - let array = this.state.array.slice(0); + let array = this.state.array.slice(0); let v=array[index].value; let question_id=this.props.questionType.question_id; let url=`/exercise_questions/${question_id}/exercise_answers.json` @@ -73,8 +73,8 @@ class fillEmpty extends Component{ } render(){ - let { - questionType , + let { + questionType , exercise , user_exercise_status, }=this.props @@ -89,11 +89,11 @@ class fillEmpty extends Component{ .emptyPanel div#content_editorMd_show{ width: 100%; border-radius: 4px; - height: 35px; + // height: 35px; margin-top:0px; background-color:#fafafa; color:#999; - line-height:25px; + // line-height:25px; } .answerStyle{ background:#f5f5f5; @@ -111,10 +111,18 @@ class fillEmpty extends Component{ 答案(填空{key+1}):
参考答案:
{ questionType.standard_answer && questionType.standard_answer.map((item,k)=>{ @@ -141,7 +149,7 @@ class fillEmpty extends Component{ item.answer_text && item.answer_text.map((i,index)=>{ return(