Quellcode durchsuchen

fix(exampaper): 修复题目显示组件未引入和样式问题

修复表单中题目显示组件未正确引入的问题,并调整题目项的样式和阴影效果
tanshanming vor 7 Monaten
Ursprung
Commit
c7da33177d
1 geänderte Dateien mit 5 neuen und 4 gelöschten Zeilen
  1. 5 4
      src/views/exm/exampaper/form.vue

+ 5 - 4
src/views/exm/exampaper/form.vue

@@ -50,7 +50,7 @@
 							<a-form-item :label="'题目' + (questionIndex + 1)" style="margin-bottom: 15px">
 								<a-row>
 									<a-col :span="23">
-										<!-- <QuestionShow :qType="questionItem.questionType" :question="questionItem" /> -->
+										<QuestionShow :qType="questionItem.questionType" :question="questionItem" />
 									</a-col>
 									<a-col :span="1">
 										<a-button type="link" danger @click="removeQuestion(titleItem, questionIndex)">删除</a-button>
@@ -124,7 +124,7 @@
 	import { useExamStore } from '@/store/exam'
 	import examPaperApi from '@/api/exam/paper/examPaperApi'
 	import questionApi from '@/api/exam/question/tQuestionApi'
-	// import QuestionShow from '@/components/Show.vue'
+	import QuestionShow from '@/views/exm/question/components/Show.vue'
 	import { message } from 'ant-design-vue'
 	import dayjs from 'dayjs'
 	const props = defineProps({
@@ -225,6 +225,7 @@
 	function confirmQuestionSelect() {
 		Promise.all(questionPage.multipleSelection.map((q) => questionApi.select(q.id))).then((resArr) => {
 			resArr.forEach((re) => {
+				console.log('rrr', re)
 				currentTitleItem.value.questionItems.push(re)
 			})
 			questionPage.showDialog = false
@@ -285,10 +286,10 @@
 	}
 	.exampaper-item-box {
 		margin-top: 12px;
+		padding-right: 20px;
+		box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
 		.q-title {
 			margin: 0 5px;
 		}
-		.q-item-content {
-		}
 	}
 </style>