于添 преди 3 месеца
родител
ревизия
59bc048fe0

+ 1 - 1
src/views/courseDetails/components/tab/LessonDetails.vue

@@ -65,7 +65,7 @@
 		}
 	)
 
-	// 处理一键催
+	// 处理一键催
 	const handleUrgeSubmit = (lesson) => {
 		emits('urge-submit', lesson)
 	}

+ 6 - 6
src/views/courseDetails/index.vue

@@ -294,8 +294,8 @@
 	// 处理一键催交
 	function onUrgeSubmit(lesson) {
 		Modal.confirm({
-			title: '确认催',
-			content: `确定要对课时"${lesson.name}"进行催吗?`,
+			title: '确认催',
+			content: `确定要对课时"${lesson.name}"进行催吗?`,
 			okText: '确认',
 			cancelText: '取消',
 			onOk: async () => {
@@ -305,13 +305,13 @@
 					}
 					const res = await urgeSubmit(params)
 					if (res.code === 200) {
-						message.success('催成功')
+						message.success('催成功')
 					} else {
-						message.error(res.msg || '催失败')
+						message.error(res.msg || '催失败')
 					}
 				} catch (error) {
-					console.error('催失败:', error)
-					message.error('催失败,请稍后重试')
+					console.error('催失败:', error)
+					message.error('催失败,请稍后重试')
 				}
 			}
 		})

+ 10 - 0
src/views/courseManagement/components/ListView.vue

@@ -106,6 +106,14 @@
 			title: '院系',
 			dataIndex: 'collegeTwoIdName'
 		},
+		{
+			title: '客观题练习人数',
+			dataIndex: 'thereCount'
+		},
+		{
+			title: '主观题练习人数',
+			dataIndex: 'mainCount'
+		},
 		{
 			title: '课程类型',
 			dataIndex: 'courseTypeName'
@@ -215,6 +223,8 @@
 				...item,
 				coursesNumber: Math.floor(Math.random() * 10) + 1, // 1-10之间的随机数
 				NumberCoursesOffered: Math.floor(Math.random() * 5) + 1, // 1-5之间的随机数
+				thereCount: Math.floor(Math.random() * 5) + 1, // 1-5之间的随机数
+				mainCount: Math.floor(Math.random() * 5) + 1, // 1-5之间的随机数
 				CourseSelectionInformation: `已选${Math.floor(Math.random() * 100)}人/限选${
 					Math.floor(Math.random() * 100) + 50
 				}人`

+ 1 - 1
src/views/courseManagement/index.vue

@@ -19,7 +19,7 @@
 		<a-modal v-model:visible="courseModalVisible" :title="courseModalTitle" width="70%" :footer="null">
 			<CourseAdd :courseInfoId="courseInfoId"></CourseAdd>
 		</a-modal>
-		<a-modal v-model:visible="courseDetailModalVisible" title="详情" width="70%">
+		<a-modal v-model:visible="courseDetailModalVisible" title="详情" width="70%" :footer="null">
 			<CourseDetail :courseId="courseInfoId"></CourseDetail>
 		</a-modal>
 	</div>