|
@@ -2,11 +2,27 @@
|
|
|
|
|
|
<div style="overflow: auto">
|
|
<div style="overflow: auto">
|
|
<div class="question-header">
|
|
<div class="question-header">
|
|
- <Icon :type="examQuestion.isSign ? 'ios-star':'ios-star-outline'" :style="{color: '#ffcc00'}" class="star" @click="toggleSign" />
|
|
|
|
- <question-index v-if="examQuestion.getQuestionContent" :examQuestion="examQuestion" />
|
|
|
|
|
|
+ <Icon
|
|
|
|
+ :type="examQuestion.isSign ? 'ios-star':'ios-star-outline'"
|
|
|
|
+ :style="{color: '#ffcc00'}"
|
|
|
|
+ class="star"
|
|
|
|
+ @click="toggleSign"
|
|
|
|
+ />
|
|
|
|
+ <question-index
|
|
|
|
+ v-if="examQuestion.getQuestionContent"
|
|
|
|
+ :examQuestion="examQuestion"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
- <div v-if="parentQuestionBody" class="question-view">
|
|
|
|
- <question-body :questionBody="parentQuestionBody" :examQuestion="examQuestion" style="margin-bottom: 20px" :key="examQuestion.questionId"></question-body>
|
|
|
|
|
|
+ <div
|
|
|
|
+ v-if="parentQuestionBody"
|
|
|
|
+ class="question-view"
|
|
|
|
+ >
|
|
|
|
+ <question-body
|
|
|
|
+ :questionBody="parentQuestionBody"
|
|
|
|
+ :examQuestion="examQuestion"
|
|
|
|
+ style="margin-bottom: 20px"
|
|
|
|
+ :key="examQuestion.questionId"
|
|
|
|
+ ></question-body>
|
|
<div class="hr" />
|
|
<div class="hr" />
|
|
</div>
|
|
</div>
|
|
<div v-if="!examQuestion.getQuestionContent">
|
|
<div v-if="!examQuestion.getQuestionContent">
|
|
@@ -15,22 +31,46 @@
|
|
|
|
|
|
<transition name="fade">
|
|
<transition name="fade">
|
|
|
|
|
|
- <div v-show="question && examQuestion && examQuestion.getQuestionContent" class="question-view" :key="examQuestion.order">
|
|
|
|
|
|
+ <div
|
|
|
|
+ v-show="question && examQuestion && examQuestion.getQuestionContent"
|
|
|
|
+ class="question-view"
|
|
|
|
+ :key="examQuestion.order"
|
|
|
|
+ >
|
|
<div style="margin-bottom: -45px;">{{examQuestion.groupOrder}}、</div>
|
|
<div style="margin-bottom: -45px;">{{examQuestion.groupOrder}}、</div>
|
|
<template v-if="question && examQuestion.questionType === 'SINGLE_CHOICE'">
|
|
<template v-if="question && examQuestion.questionType === 'SINGLE_CHOICE'">
|
|
- <single-question-view :question="question" :examQuestion="examQuestion" :key="examQuestion.order" />
|
|
|
|
|
|
+ <single-question-view
|
|
|
|
+ :question="question"
|
|
|
|
+ :examQuestion="examQuestion"
|
|
|
|
+ :key="examQuestion.order"
|
|
|
|
+ />
|
|
</template>
|
|
</template>
|
|
<template v-if="question && examQuestion.questionType === 'MULTIPLE_CHOICE'">
|
|
<template v-if="question && examQuestion.questionType === 'MULTIPLE_CHOICE'">
|
|
- <multiple-question-view :question="question" :examQuestion="examQuestion" :key="examQuestion.order" />
|
|
|
|
|
|
+ <multiple-question-view
|
|
|
|
+ :question="question"
|
|
|
|
+ :examQuestion="examQuestion"
|
|
|
|
+ :key="examQuestion.order"
|
|
|
|
+ />
|
|
</template>
|
|
</template>
|
|
<template v-if="question && examQuestion.questionType === 'TRUE_OR_FALSE'">
|
|
<template v-if="question && examQuestion.questionType === 'TRUE_OR_FALSE'">
|
|
- <boolean-question-view :question="question" :examQuestion="examQuestion" :key="examQuestion.order" />
|
|
|
|
|
|
+ <boolean-question-view
|
|
|
|
+ :question="question"
|
|
|
|
+ :examQuestion="examQuestion"
|
|
|
|
+ :key="examQuestion.order"
|
|
|
|
+ />
|
|
</template>
|
|
</template>
|
|
<template v-if="question && examQuestion.questionType === 'FILL_UP'">
|
|
<template v-if="question && examQuestion.questionType === 'FILL_UP'">
|
|
- <fill-blank-question-view :question="question" :examQuestion="examQuestion" :key="examQuestion.order" />
|
|
|
|
|
|
+ <fill-blank-question-view
|
|
|
|
+ :question="question"
|
|
|
|
+ :examQuestion="examQuestion"
|
|
|
|
+ :key="examQuestion.order"
|
|
|
|
+ />
|
|
</template>
|
|
</template>
|
|
<template v-if="question && examQuestion.questionType === 'ESSAY'">
|
|
<template v-if="question && examQuestion.questionType === 'ESSAY'">
|
|
- <text-question-view :question="question" :examQuestion="examQuestion" :key="examQuestion.order" />
|
|
|
|
|
|
+ <text-question-view
|
|
|
|
+ :question="question"
|
|
|
|
+ :examQuestion="examQuestion"
|
|
|
|
+ :key="examQuestion.order"
|
|
|
|
+ />
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
</transition>
|
|
</transition>
|
|
@@ -45,7 +85,6 @@ import MultipleQuestionView from "./MultipleQuestionView";
|
|
import BooleanQuestionView from "./BooleanQuestionView";
|
|
import BooleanQuestionView from "./BooleanQuestionView";
|
|
import FillBlankQuestionView from "./FillBlankQuestionView";
|
|
import FillBlankQuestionView from "./FillBlankQuestionView";
|
|
import TextQuestionView from "./TextQuestionView";
|
|
import TextQuestionView from "./TextQuestionView";
|
|
-import NestedQuestionView from "./NestedQuestionView";
|
|
|
|
import { createNamespacedHelpers } from "vuex";
|
|
import { createNamespacedHelpers } from "vuex";
|
|
const { mapState, mapMutations } = createNamespacedHelpers("examingHomeModule");
|
|
const { mapState, mapMutations } = createNamespacedHelpers("examingHomeModule");
|
|
|
|
|
|
@@ -209,8 +248,7 @@ export default {
|
|
MultipleQuestionView,
|
|
MultipleQuestionView,
|
|
BooleanQuestionView,
|
|
BooleanQuestionView,
|
|
FillBlankQuestionView,
|
|
FillBlankQuestionView,
|
|
- TextQuestionView,
|
|
|
|
- NestedQuestionView
|
|
|
|
|
|
+ TextQuestionView
|
|
}
|
|
}
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|