| | |
| | | <span |
| | | class="questionNum" |
| | | :style="{ |
| | | marginTop: value.questionType == 'completion' ? '12px' : '0', |
| | | marginTop: |
| | | value.questionType == 'completion' || |
| | | value.questionType == 'mathField' |
| | | ? '12px' |
| | | : '0', |
| | | }" |
| | | >{{ index + 1 }}. |
| | | </span> |
| | |
| | | v-if=" |
| | | value.stemStyle == 'Txt' && |
| | | value.questionType != 'completion' && |
| | | value.questionType != 'dropdown' |
| | | value.questionType != 'dropdown' && |
| | | value.questionType != 'mathField' |
| | | " |
| | | :id="value.id" |
| | | v-html="value.stem.stemTxt" |
| | |
| | | ></el-image> |
| | | </p> |
| | | <!-- 填空题题干 --> |
| | | <p class="titleText" v-if="value.questionType == 'completion'"> |
| | | <p |
| | | class="titleText" |
| | | v-if=" |
| | | value.questionType == 'completion' || |
| | | value.questionType == 'mathField' |
| | | " |
| | | > |
| | | <span |
| | | v-for="(itemText, indexText) in value.stem" |
| | | :key="indexText + 'questionType'" |
| | |
| | | v-html="itemText" |
| | | class="input-txt" |
| | | ></span> |
| | | <!-- <input |
| | | v-else |
| | | <input |
| | | v-if=" |
| | | typeof itemText != 'string' && |
| | | value.questionType == 'completion' |
| | | " |
| | | type="text" |
| | | class="input" |
| | | v-model.trim="value.userAnswer[itemText.num]" |
| | | :disabled="value.isComplete" |
| | | :style="{ backgroundColor: inputBc }" |
| | | /> --> |
| | | /> |
| | | <math-field |
| | | v-else |
| | | v-if=" |
| | | typeof itemText != 'string' && |
| | | value.questionType == 'mathField' |
| | | " |
| | | class="mathField" |
| | | :menuItems="[]" |
| | | @input="onChangeInput($event, nindex, index, itemText.num)" |
| | |
| | | type != 'mock' && |
| | | (value.questionType == 'shortAnswer' || |
| | | value.questionType == 'multipleChoice' || |
| | | value.questionType == 'completion') |
| | | value.questionType == 'completion' || |
| | | value.questionType == 'mathField') |
| | | " |
| | | > |
| | | <el-button @click="checkPares(value)" style="margin-top: 10px" |
| | |
| | | } else { |
| | | // 填空题 |
| | | for (let dindex = 0; dindex < citem.userAnswer.length; dindex++) { |
| | | citem.userAnswer[dindex] = ''; |
| | | citem.userAnswer[dindex] = ""; |
| | | } |
| | | } |
| | | } |
| | |
| | | } else if (citem.questionType == "shortAnswer") { |
| | | // 简答 翻译 |
| | | citem.isRight = null; |
| | | } else if (citem.questionType == "completion") { |
| | | } else if ( |
| | | citem.questionType == "completion" || |
| | | citem.questionType == "mathField" |
| | | ) { |
| | | // 填空 |
| | | if (typeof citem.answer == "string") { |
| | | citem.isRight = citem.answer == citem.userAnswer[0]; |
| | |
| | | height: 24px; |
| | | border: 0; |
| | | outline: none; |
| | | border-bottom: 1px solid #15c0f2; |
| | | border-bottom: 1px solid #000; |
| | | } |
| | | |
| | | /deep/ .el-textarea.is-disabled .el-textarea__inner { |