|
|
@ -184,7 +184,7 @@ class Questionitem_banks extends Component {
|
|
|
|
console.log(k);
|
|
|
|
console.log(k);
|
|
|
|
const choicesdata={
|
|
|
|
const choicesdata={
|
|
|
|
choice_text:anserdata[2][k],
|
|
|
|
choice_text:anserdata[2][k],
|
|
|
|
is_answer:anserdata[1]-1===k?0:1,
|
|
|
|
is_answer:anserdata[1]-1===k?1:0,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
choices.push(choicesdata);
|
|
|
|
choices.push(choicesdata);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -245,7 +245,7 @@ class Questionitem_banks extends Component {
|
|
|
|
console.log(k);
|
|
|
|
console.log(k);
|
|
|
|
const choicesdata={
|
|
|
|
const choicesdata={
|
|
|
|
choice_text:anserdata[2][k],
|
|
|
|
choice_text:anserdata[2][k],
|
|
|
|
is_answer:anserdata[1]-1===k?0:1,
|
|
|
|
is_answer:anserdata[1]-1===k?1:0,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
choices.push(choicesdata);
|
|
|
|
choices.push(choicesdata);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -302,13 +302,13 @@ class Questionitem_banks extends Component {
|
|
|
|
const choices=[];
|
|
|
|
const choices=[];
|
|
|
|
const choicesdata={
|
|
|
|
const choicesdata={
|
|
|
|
choice_text:"正确",
|
|
|
|
choice_text:"正确",
|
|
|
|
is_answer:anserdata[1]==="0"?0:1,
|
|
|
|
is_answer:anserdata[1]==="0"?1:0,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
choices.push(choicesdata);
|
|
|
|
choices.push(choicesdata);
|
|
|
|
|
|
|
|
|
|
|
|
const choicesdatas={
|
|
|
|
const choicesdatas={
|
|
|
|
choice_text:"错误",
|
|
|
|
choice_text:"错误",
|
|
|
|
is_answer:anserdata[1]==="1"?0:1,
|
|
|
|
is_answer:anserdata[1]==="1"?1:0,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
choices.push(choicesdatas);
|
|
|
|
choices.push(choicesdatas);
|
|
|
|
var data={
|
|
|
|
var data={
|
|
|
|