feat:新增打分题

This commit is contained in:
du.meimei
2025-03-05 16:03:00 +08:00
parent 6df0b0d320
commit 5f32c9eeee
10 changed files with 352 additions and 23 deletions

View File

@@ -16,17 +16,27 @@
:chooseQuestionId="chooseQuestionId"
@get-choose-question-id="getChooseQuestionId"
>
<!-- 选择题 -->
<base-select
v-if="element.question_type === 1"
:element="element"
:active="chooseQuestionId === element.id"
></base-select>
<!-- 填空题 -->
<Completion
v-if="element.question_type === 4"
:element="element"
:active="chooseQuestionId === element.id"
sn="lXEBBpE2"
></Completion>
<!-- 打分题 -->
<Rate
v-if="element.question_type === 5"
:element="element"
:active="chooseQuestionId === element.id"
sn="lXEBBpE2"
/>
<!-- @update="updateHandle" -->
</choose-question>
<!-- {{ element.question_type }}-->
@@ -51,6 +61,7 @@ import BaseSelect from './components/Questions/BaseSelect.vue';
import ChooseQuestion from './components/ChooseQuestion.vue';
import Paging from './components/Questions/paging/Paging.vue';
import Completion from './components/Questions/Completion.vue';
import Rate from './components/Questions/Rate.vue';
const activeIndex = ref(-1);
/**