diff --git a/public/react/src/modules/courses/exercise/ExerciseDisplay.js b/public/react/src/modules/courses/exercise/ExerciseDisplay.js
index 17d8f1f18..589bbb6f0 100644
--- a/public/react/src/modules/courses/exercise/ExerciseDisplay.js
+++ b/public/react/src/modules/courses/exercise/ExerciseDisplay.js
@@ -125,7 +125,6 @@ class ExerciseDisplay extends Component{
{ exercise_questions.map((item, index) => {
if (item.question_type == 0 || item.question_type == 1) {
-
return
@@ -146,7 +145,7 @@ class ExerciseDisplay extends Component{
} else if (item.question_type == 4) {
-
+ //
return
@@ -163,9 +162,10 @@ class ExerciseDisplay extends Component{
return
-
+ }else{
+ return
}
- return
+
})}
)
diff --git a/public/react/src/modules/courses/exercise/new/JudgeDisplay.js b/public/react/src/modules/courses/exercise/new/JudgeDisplay.js
index 24e753a1d..92e7de752 100644
--- a/public/react/src/modules/courses/exercise/new/JudgeDisplay.js
+++ b/public/react/src/modules/courses/exercise/new/JudgeDisplay.js
@@ -1,10 +1,9 @@
import React,{ Component } from "react";
-import {Radio} from 'antd';
-import {QuillForEditor, MarkdownToHtml } from 'educoder';
+import { Radio } from 'antd';
+import { MarkdownToHtml,QuillForEditor } from 'educoder';
import QestionDisplayHeader from './QestionDisplayHeader'
-
class JudgeDisplay extends Component{
constructor(props){
super(props);
@@ -33,12 +32,10 @@ class JudgeDisplay extends Component{
}
render() {
let { question_choices,
- question_id, index,
+ question_id, index
} = this.props;
-
const qNumber = `question_${index}`;
- // TODO show模式 isNew为false isEdit为false
return(
diff --git a/public/react/src/modules/courses/exercise/new/ShixunProgramming.js b/public/react/src/modules/courses/exercise/new/ShixunProgramming.js
index cf8967b58..5a0b37ee6 100644
--- a/public/react/src/modules/courses/exercise/new/ShixunProgramming.js
+++ b/public/react/src/modules/courses/exercise/new/ShixunProgramming.js
@@ -15,11 +15,10 @@ class ShixunProgramming extends Component{
}
render() {
let { question_title,
- question_id, index,
- shixun_name, shixun_identifier
+ question_id, index, shixun_identifier
} = this.props;
const qNumber = `question_${index}`;
- // TODO show模式 isNew为false isEdit为false
+
console.log(this.props)
// console.log(this.state)
// question_id: 32336
@@ -37,13 +36,13 @@ class ShixunProgramming extends Component{
`}
-
实训详情
- }
- >
+ {/*
实训详情*/}
+ {/* }*/}
+ {/*>*/}
{/*{this.props.exercise&&this.props.exercise.is_md?