fix: resolve education dashboard interface issues

This commit is contained in:
Server Migration
2026-08-15 13:06:49 +03:30
parent af0149d722
commit d94a96b25e
3 changed files with 98 additions and 23 deletions
+1 -4
View File
@@ -9,10 +9,7 @@ export const courseSchema = object().shape({
.integer('ظرفیت باید عدد صحیح باشد')
.min(1, 'ظرفیت باید حداقل ۱ نفر باشد'),
prerequisiteCourseIds: array().nullable().default([]),
contentMediaId: number()
.typeError('شناسه فایل محتوای دوره باید عدد باشد')
.nullable()
.notRequired(),
coverMediaId: number().typeError('شناسه تصویر دوره باید عدد باشد').nullable().notRequired(),
description: string().nullable().notRequired(),
termId: mixed().required(),
isActive: boolean().nullable().notRequired(),
@@ -91,11 +91,11 @@ const performanceStats = computed(() => {
const stats = dashboard.value.stats ?? {}
return [
{
icon: 'user-sound',
label: 'تعداد جلسات اعزام شده',
icon: 'video',
label: 'تعداد جلسات آموزشی گذرانده‌شده',
value: toFaDigits(stats.attendedSessions ?? 0),
unit: 'جلسه',
subtitle: 'اعزام شده است',
subtitle: 'با موفقیت گذرانده شده',
to: { name: 'student-terms' },
},
{