diff --git a/ai_knowledge_base_v2/apps/admin-web/src/App.vue b/ai_knowledge_base_v2/apps/admin-web/src/App.vue index ca63490..2634f40 100644 --- a/ai_knowledge_base_v2/apps/admin-web/src/App.vue +++ b/ai_knowledge_base_v2/apps/admin-web/src/App.vue @@ -285,13 +285,17 @@ async function createStudent() { nickname: studentForm.nickname || null, status: studentForm.status, dailyChatLimit: studentForm.dailyChatLimit, - expiredAt: studentForm.expiredAt || null, + expiredAt: toExpiryDateTime(studentForm.expiredAt), }); ElMessage.success("学员已添加"); resetStudentForm(); await loadCurrentMenu(); } +function toExpiryDateTime(date: string) { + return date ? `${date}T23:59:59` : null; +} + function handleStudentImportFile(event: Event) { const input = event.target as HTMLInputElement; studentImportFile.value = input.files?.[0] ?? null; @@ -840,12 +844,10 @@ function formatRecordDateTime(value: string, boundary: "start" | "end") { - +
启用 diff --git a/ai_knowledge_base_v2/apps/admin-web/src/styles.css b/ai_knowledge_base_v2/apps/admin-web/src/styles.css index 1b116d0..807939f 100644 --- a/ai_knowledge_base_v2/apps/admin-web/src/styles.css +++ b/ai_knowledge_base_v2/apps/admin-web/src/styles.css @@ -341,8 +341,11 @@ textarea { } .student-form-grid .el-input, -.student-form-grid .el-input-number, -.student-form-grid .el-date-editor { +.student-form-grid .el-input-number { + width: 100%; +} + +.student-expiry-field { width: 100%; }