feat(survey): 优化创建问卷页面功能和样式

- 添加题目按钮移至 Design 组件内部- 实现保存、投放和预览功能
- 优化问卷标题和投放设置样式
- 添加每页一题设置保存功能
- 调整问卷列表样式
This commit is contained in:
陈昱达
2025-03-12 10:18:37 +08:00
parent 4d34c293b8
commit 03698d975a
9 changed files with 113 additions and 91 deletions

View File

@@ -15,6 +15,7 @@
:index="index"
:chooseQuestionId="chooseQuestionId"
@get-choose-question-id="getChooseQuestionId"
@move="emitFun.move"
>
<!-- 选择题 -->
<Choice
@@ -103,6 +104,8 @@
</div>
</template>
</choose-question>
<!-- 增加控制按钮-->
<slot name="button" :item="element"></slot>
<!-- {{ element.question_type }}-->
<!-- {{questionInfo.survey.pages.length}}-->
@@ -295,6 +298,14 @@ const actionFun = {
}
};
// emit 事件
const emitFun = {
move: (ev) => {
console.log(ev);
}
};
onMounted(() => {
questionInfo.value = store.questionsInfo.value;
});