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

@@ -58,7 +58,7 @@
round
:style="{ minHeight: '60%' }"
>
<template v-for="(item, index) in logics" :key="index">
<template v-for="(item, logicIndex) in logics" :key="logicIndex">
<div
v-if="item.skip_type === skipType && item.question_index === activeQuestion.question_index"
class="mv10 question-setting"
@@ -162,8 +162,8 @@ const getSkipTypeText = (skipType) => {
const ls = [];
logics.map((item) => {
if (
item.skip_type === skipType
&& item.question_index === activeQuestion.value.question_index
item.skip_type === skipType &&
item.question_index === activeQuestion.value.question_index
) {
ls.push(item);
}
@@ -179,13 +179,13 @@ const getSkipTypeText = (skipType) => {
const questionSetting = (type) => {
switch (type) {
case 'before':
questionBeforeShow.value = true;
case 'before':
questionBeforeShow.value = true;
break;
case 'after':
questionBeforeShow.value = true;
break;
break;
case 'after':
questionBeforeShow.value = true;
break;
}
skipType.value = type === 'before' ? 0 : 1;
};