dev_aliyun2
harry 5 years ago
parent 4c44e599a5
commit 3ebfa74a18

@ -1,9 +1,9 @@
import React, { Component } from "react"; import React, { Component } from "react";
import { markdownToHTML } from 'educoder'; import { markdownToHTML } from 'educoder';
import { import {
Radio, Radio,
Tooltip, Tooltip
Icon
} from "antd"; } from "antd";
import './../questioncss/questioncom.css'; import './../questioncss/questioncom.css';
import QuillForEditor from "../../../common/quillForEditor"; import QuillForEditor from "../../../common/quillForEditor";
@ -193,28 +193,11 @@ class Listjihe extends Component {
MULTIPLEkey = MULTIPLEkey + tagArrays[i]; MULTIPLEkey = MULTIPLEkey + tagArrays[i];
} }
// 编程答案
var rightkey = null
if (items) {
if (items.item_type) {
if (items.item_type === "PROGRAM") {
} else {
if (items.item_type === "JUDGMENT") {
if (items.choices) {
if (items.choices.length > 0) {
var arr = items.choices;
for (let data of arr) {
if (data.is_answer === true) {
rightkey = data.choice_text;
break;
} }
} }
} }
} }
} else { } else {
if (items.choices) { if (items.choices) {
if (items.choices.length > 0) { if (items.choices.length > 0) {
@ -227,8 +210,7 @@ class Listjihe extends Component {
} }
} }
} }
}
} }
} }
} }

Loading…
Cancel
Save