Просмотр исходного кода

修改题型数据模板中的score为1

dusenyao 1 год назад
Родитель
Сommit
4c4afee3e9

+ 1 - 1
src/views/exercise_questions/data/answerQuestion.js

@@ -7,7 +7,7 @@ export const answerQuestionData = {
   file_id_list: [], // 文件 id 列表
   reference_answer: '', // 参考答案
   answer: {
-    score: 0,
+    score: 1,
     score_type: scoreTypeList[0].value,
   }, // 答案
   // 题型属性

+ 1 - 1
src/views/exercise_questions/data/chinese.js

@@ -42,7 +42,7 @@ export const chineseData = {
   stem: '', // 题干
   description: '', // 描述
   option_number_show_mode: optionTypeList[1].value, // 选项类型
-  answer: { score: 0, score_type: scoreTypeList[0].value }, // 答案
+  answer: { score: 1, score_type: scoreTypeList[0].value }, // 答案
   option_list: [getOption(), getOption(), getOption()], // 选项
   file_id_list: [],
   // 题型属性

+ 1 - 1
src/views/exercise_questions/data/chooseTone.js

@@ -46,7 +46,7 @@ export const ChooseToneData = {
   option_number_show_mode: optionTypeList[0].value, // 选项类型
   option_list: [getOption(), getOption(), getOption()], // 选项
   file_id_list: [],
-  answer: { score: 0, score_type: scoreTypeList[0].value, answer_list: [] }, // 答案
+  answer: { score: 1, score_type: scoreTypeList[0].value, answer_list: [] }, // 答案
   // 题型属性
   property: {
     stem_type: stemTypeList[0].value, // 题干类型

+ 1 - 1
src/views/exercise_questions/data/dialogue.js

@@ -8,7 +8,7 @@ export const dialogueData = {
   dialogue: '', // 对话内容,用于编辑显示
   option_list: [], // 选项
   file_id_list: [], // 文件 id 列表
-  answer: { score: 0, score_type: scoreTypeList[0].value, answer_list: [] }, // 答案
+  answer: { score: 1, score_type: scoreTypeList[0].value, answer_list: [] }, // 答案
   // 题型属性
   property: {
     stem_type: stemTypeList[0].value, // 题干类型

+ 1 - 1
src/views/exercise_questions/data/essayQuestion.js

@@ -8,7 +8,7 @@ export const essayQuestionData = {
   reference_answer: '', // 参考答案
   file_id_list: [], // 文件 id 列表
   answer: {
-    score: 0,
+    score: 1,
     score_type: scoreTypeList[0].value,
   }, // 答案
   // 题型属性

+ 1 - 1
src/views/exercise_questions/data/fill.js

@@ -28,7 +28,7 @@ export const fillData = {
   description: '', // 描述
   article: '', // 文章
   model_essay: [], // 文章解析后的数据
-  answer: { score: 0, score_type: scoreTypeList[0].value, answer_list: [] }, // 答案
+  answer: { score: 1, score_type: scoreTypeList[0].value, answer_list: [] }, // 答案
   // 题型属性
   property: {
     stem_type: stemTypeList[0].value, // 题干类型

+ 1 - 1
src/views/exercise_questions/data/judge.js

@@ -25,7 +25,7 @@ export function getJudgeData() {
     option_number_show_mode: optionTypeList[0].value, // 选项类型
     option_list: [getOption(), getOption(), getOption()], // 选项
     file_id_list: [], // 文件 id 列表
-    answer: { answer_list: [], score: 0, score_type: scoreTypeList[0].value }, // 答案
+    answer: { answer_list: [], score: 1, score_type: scoreTypeList[0].value }, // 答案
     // 题型属性
     property: {
       stem_type: stemTypeList[0].value, // 题干类型

+ 1 - 1
src/views/exercise_questions/data/listenFill.js

@@ -28,7 +28,7 @@ export const listenFillData = {
   description: '', // 描述
   article: '', // 文章
   model_essay: [], // 文章解析后的数据
-  answer: { score: 0, score_type: scoreTypeList[0].value, answer_list: [] }, // 答案
+  answer: { score: 1, score_type: scoreTypeList[0].value, answer_list: [] }, // 答案
   // 题型属性
   property: {
     stem_type: stemTypeList[0].value, // 题干类型

+ 1 - 1
src/views/exercise_questions/data/listenJudge.js

@@ -25,7 +25,7 @@ export function getListenJudgeData() {
     option_number_show_mode: optionTypeList[0].value, // 选项类型
     option_list: [getOption(), getOption(), getOption()], // 选项
     file_id_list: [], // 文件 id 列表
-    answer: { answer_list: [], score: 0, score_type: scoreTypeList[0].value }, // 答案
+    answer: { answer_list: [], score: 1, score_type: scoreTypeList[0].value }, // 答案
     // 题型属性
     property: {
       stem_type: stemTypeList[0].value, // 题干类型

+ 1 - 1
src/views/exercise_questions/data/listenSelect.js

@@ -27,7 +27,7 @@ export function getListenSelectData() {
       { content: '', mark: getRandomNumber() },
     ], // 选项
     file_id_list: [], // 文件 id 列表
-    answer: { answer_list: [], score: 0, score_type: scoreTypeList[0].value }, // 答案
+    answer: { answer_list: [], score: 1, score_type: scoreTypeList[0].value }, // 答案
     // 题型属性
     property: {
       stem_type: stemTypeList[0].value, // 题干类型

+ 1 - 1
src/views/exercise_questions/data/matching.js

@@ -28,7 +28,7 @@ export function getMatchingDataTemplate() {
     description: '', // 描述
     option_list, // 选项
     file_id_list: [], // 文件 id 列表
-    answer: { answer_list, score: 0, score_type: scoreTypeList[0].value }, // 答案
+    answer: { answer_list, score: 1, score_type: scoreTypeList[0].value }, // 答案
     // 题型属性
     property: {
       stem_type: stemTypeList[0].value, // 题干类型

+ 1 - 1
src/views/exercise_questions/data/read.js

@@ -19,7 +19,7 @@ export const readData = {
   stem: '', // 题干
   description: '', // 描述
   article: '', // 文章
-  answer: { score: 0, score_type: scoreTypeList[0].value }, // 答案
+  answer: { score: 1, score_type: scoreTypeList[0].value }, // 答案
   question_list: [], // 题目列表
   file_id_list: [], // 文件 id 列表
   // 题型属性

+ 1 - 1
src/views/exercise_questions/data/readAloud.js

@@ -7,7 +7,7 @@ export const readAloudData = {
   description: '', // 描述
   file_id_list: [], // 文件 id 列表
   answer: {
-    score: 0,
+    score: 1,
     score_type: scoreTypeList[0].value,
   }, // 答案
   // 题型属性

+ 1 - 1
src/views/exercise_questions/data/repeat.js

@@ -17,7 +17,7 @@ export const repeatData = {
     { content: '', mark: getRandomNumber(), audio_file_id: '' },
   ], // 选项
   file_id_list: [],
-  answer: { score: 0, score_type: scoreTypeList[0].value }, // 答案
+  answer: { score: 1, score_type: scoreTypeList[0].value }, // 答案
   // 题型属性
   property: {
     stem_type: stemTypeList[0].value, // 题干类型

+ 1 - 1
src/views/exercise_questions/data/replaceAnswer.js

@@ -17,7 +17,7 @@ export const replaceAnswerData = {
   description: '', // 描述
   option_list: [getOption(), getOption(), getOption(), getOption()], // 选项
   file_id_list: [], // 文件 id 列表
-  answer: { score: 0, score_type: scoreTypeList[0].value }, // 答案
+  answer: { score: 1, score_type: scoreTypeList[0].value }, // 答案
   // 题型属性
   property: {
     stem_type: stemTypeList[0].value, // 题干类型

+ 1 - 1
src/views/exercise_questions/data/select.js

@@ -27,7 +27,7 @@ export function getSelectData() {
       { content: '', mark: getRandomNumber() },
     ], // 选项
     file_id_list: [], // 文件 id 列表
-    answer: { answer_list: [], score: 0, score_type: scoreTypeList[0].value }, // 答案
+    answer: { answer_list: [], score: 1, score_type: scoreTypeList[0].value }, // 答案
     // 题型属性
     property: {
       stem_type: stemTypeList[0].value, // 题干类型

+ 1 - 1
src/views/exercise_questions/data/shortAnswer.js

@@ -8,7 +8,7 @@ export const shortAnswerData = {
   reference_answer: '', // 参考答案
   file_id_list: [], // 文件 id 列表
   answer: {
-    score: 0,
+    score: 1,
     score_type: scoreTypeList[0].value,
   }, // 答案
   // 题型属性

+ 1 - 1
src/views/exercise_questions/data/sort.js

@@ -18,7 +18,7 @@ export function getSortDataTemplate() {
     description: '', // 描述
     option_list, // 选项
     file_id_list: [], // 文件 id 列表
-    answer: { answer_list, score: 0, score_type: scoreTypeList[0].value }, // 答案
+    answer: { answer_list, score: 1, score_type: scoreTypeList[0].value }, // 答案
     // 题型属性
     property: {
       stem_type: stemTypeList[0].value, // 题干类型

+ 1 - 1
src/views/exercise_questions/data/talkPicture.js

@@ -10,7 +10,7 @@ export const talkPictrueData = {
   description: '', // 描述
   option_list: [], // 选项
   file_id_list: [],
-  answer: { score: 0, score_type: scoreTypeList[0].value }, // 答案
+  answer: { score: 1, score_type: scoreTypeList[0].value }, // 答案
   // 题型属性
   property: {
     stem_type: stemTypeList[0].value, // 题干类型

+ 1 - 1
src/views/exercise_questions/data/wordCard.js

@@ -37,7 +37,7 @@ export const wordCardData = {
   stem: '', // 题干
   description: '', // 描述
   option_number_show_mode: optionTypeList[1].value, // 选项类型
-  answer: { score: 0, score_type: scoreTypeList[0].value }, // 答案
+  answer: { score: 1, score_type: scoreTypeList[0].value }, // 答案
   option_list: [getOption()], // 选项
   file_id_list: [],
   // 题型属性

+ 1 - 1
src/views/exercise_questions/data/write.js

@@ -8,7 +8,7 @@ export const writeData = {
   article: '', // 文章
   sample_text: '', // 范文
   file_id_list: [], // 文件 id 列表
-  answer: { score: 0, score_type: scoreTypeList[0].value }, // 答案
+  answer: { score: 1, score_type: scoreTypeList[0].value }, // 答案
   // 题型属性
   property: {
     stem_type: stemTypeList[0].value, // 题干类型

+ 1 - 1
src/views/exercise_questions/data/writePicture.js

@@ -16,7 +16,7 @@ export const writePictrueData = {
   sample_text: '',
   option_list: [], // 选项
   file_id_list: [],
-  answer: { score: 0, score_type: scoreTypeList[0].value }, // 答案
+  answer: { score: 1, score_type: scoreTypeList[0].value }, // 答案
   // 题型属性
   property: {
     stem_type: stemTypeList[0].value, // 题干类型

+ 0 - 1
src/views/exercise_questions/preview/DialoguePreview.vue

@@ -44,7 +44,6 @@
 </template>
 
 <script>
-import { isEnable } from '../data/common';
 import PreviewMixin from './components/PreviewMixin';
 import SoundRecordPreview from './components/common/SoundRecordPreview.vue';