+
diff --git a/src/views/Design/components/ChooseQuestion.vue b/src/views/Design/components/ChooseQuestion.vue
index c51c0c5..d59344c 100644
--- a/src/views/Design/components/ChooseQuestion.vue
+++ b/src/views/Design/components/ChooseQuestion.vue
@@ -6,6 +6,11 @@
:class="chooseQuestionId === element.id ? 'choose-question-active' : ''"
@click="chooseItem"
>
+
+
+ {{ getQuestionType(element.question_type) }}
+
+
@@ -36,6 +41,8 @@
import QuestionAction from '@/views/Design/components/ActionCompoents/QuestionAction.vue';
import { ref } from 'vue';
+import { basicQuesTypeList } from '@/utils/common.js';
+
const props = defineProps({
element: {
type: Object,
@@ -60,6 +67,18 @@ const props = defineProps({
default: true
}
});
+
+// 获取题目选项
+const getQuestionType = (type) => {
+ let typeName = null;
+ basicQuesTypeList.map((item) => {
+ if (Number(item.question_type) === Number(type)) {
+ typeName = item.name;
+ }
+ });
+ return typeName;
+};
+
const element = ref(props.element);
// 选中题目后出现的操作
@@ -72,12 +91,35 @@ const chooseItem = () => {
};