|
|
@@ -57,7 +57,7 @@
|
|
|
</template>
|
|
|
</el-input>
|
|
|
<el-radio v-for="option in trueFalse_options" v-if="form.type === 5" v-model="form.answer" :label="option" border>
|
|
|
- {{option}}
|
|
|
+ {{formatTrueFalse(option)}}
|
|
|
</el-radio>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="解析">
|
|
|
@@ -146,9 +146,9 @@ export default {
|
|
|
tags: "",
|
|
|
keyPoints: "",
|
|
|
},
|
|
|
- trueFalse_options: [
|
|
|
- "正确",
|
|
|
- "错误",
|
|
|
+ trueFalse_options: [ // 和 eval 系统统一,使用 true 和 false
|
|
|
+ "true",
|
|
|
+ "false",
|
|
|
],
|
|
|
knowledgeIdOptions: knowledgeData,
|
|
|
dialogVisible: false,
|
|
|
@@ -531,6 +531,13 @@ export default {
|
|
|
keyPoints: questionVO.keyPoints,
|
|
|
}
|
|
|
},
|
|
|
+ formatTrueFalse(option) {
|
|
|
+ if (option === 'true') {
|
|
|
+ return '正确';
|
|
|
+ } else {
|
|
|
+ return '错误';
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
watch: {
|
|
|
'form.type': function (){
|