From 5c59c40877e6cc97ae2cca7cc4830508a23abe50 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Thu, 26 Mar 2020 17:15:57 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../courses/exercise/ExerciseDisplay.js | 8 +++----
.../courses/exercise/new/JudgeDisplay.js | 9 +++-----
.../courses/exercise/new/ShixunProgramming.js | 22 +++++++++----------
3 files changed, 17 insertions(+), 22 deletions(-)
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?