diff --git a/public/react/src/modules/question/component/Itembankstop.js b/public/react/src/modules/question/component/Itembankstop.js index 02e728ee9..046565356 100644 --- a/public/react/src/modules/question/component/Itembankstop.js +++ b/public/react/src/modules/question/component/Itembankstop.js @@ -714,32 +714,34 @@ class Itembankstop extends Component { this.NewknTypedeldel(true)}/> -
+
+ )} + - {this.state.Knowpoints === undefined ? "" : this.state.Knowpoints.map((object, index) => { - return ( -
-

{object.name}

+
this.deletesobject(object, index)} src={getImageUrl("images/educoder/bzucha.png")}/> + }}> -
- ) - })} + {this.state.Knowpoints === undefined ? "" : this.state.Knowpoints.map((object, index) => { + return ( +
+

{object.name}

+ this.deletesobject(object, index)} src={getImageUrl("images/educoder/bzucha.png")}/> +
+ ) + })} -
- - )} - + + + 0) { var arr = items.choices; @@ -90,19 +89,38 @@ class Listjihe extends Component { } } } else { - if (items.choices) { - if (items.choices.length > 0) { - var arr = items.choices; - for (var i = 0; i < arr.length; i++) { - if (arr[i].is_answer === true) { - rightkey = i; - break; + // 单选题和判断题 + if(items.item_type === "MULTIPLE"){ + if (items.choices) { + if (items.choices.length > 0) { + var arr = items.choices; + for (var i = 0; i < arr.length; i++) { + if (arr[i].is_answer === true) { + if(MULTIPLEkey===null){ + MULTIPLEkey = tagArrays[i]; + + }else{ + MULTIPLEkey =MULTIPLEkey+ tagArrays[i]; + } + + } } } } - } - + }else{ + if (items.choices) { + if (items.choices.length > 0) { + var arr = items.choices; + for (var i = 0; i < arr.length; i++) { + if (arr[i].is_answer === true) { + rightkey = i; + break; + } + } + } + } + } } } } @@ -182,7 +200,7 @@ class Listjihe extends Component { items === undefined || items === null ? "" : items.choices.map((object, index) => { return (

- + {object.choice_text}

@@ -367,11 +385,18 @@ class Listjihe extends Component {
{ - items.item_type === "SINGLE" || items.item_type === "MULTIPLE" ? + items.item_type === "SINGLE" ?

+

+ : items.item_type === "MULTIPLE"? +

+

:

this.NewknTypedeldel(true)}/> -

+
+ )} + +
+
- {this.state.Knowpoints === undefined ? "" : this.state.Knowpoints.map((object, index) => { - return ( -
-

{object.name}

+ {this.state.Knowpoints === undefined ? "" : this.state.Knowpoints.map((object, index) => { + return ( +
+

{object.name}

- this.deletesobject(object, index)} src={getImageUrl("/images/educoder/bzucha.png")}/> + this.deletesobject(object, index)} src={getImageUrl("/images/educoder/bzucha.png")}/> -
- ) - })} +
+ ) + })} -
- - )} -