feat: add teacher help cards

This commit is contained in:
2026-07-31 15:53:47 +08:00
parent 79094d0832
commit d8fde93b69
15 changed files with 467 additions and 4 deletions

View File

@@ -1603,6 +1603,25 @@ function formatRecordDateTime(value: string, boundary: "start" | "end") {
</el-collapse>
<el-empty v-else description="该会话暂无主题记录" :image-size="64" />
<h3 class="detail-title">老师求助卡</h3>
<el-collapse v-if="chatDetail.helpCards?.length" class="topic-summary-collapse">
<el-collapse-item
v-for="card in chatDetail.helpCards"
:key="card.id"
:title="`#${card.id} / 主题 #${card.topicSessionId} / ${card.copied ? '用户已复制' : '未复制'}`"
>
<section class="topic-summary-card">
<div class="topic-summary-meta">
<span>生成{{ card.createdAt }}</span>
<span>复制{{ card.copiedAt || '-' }}</span>
<span>来源{{ card.source }}</span>
</div>
<pre>{{ card.content }}</pre>
</section>
</el-collapse-item>
</el-collapse>
<el-empty v-else description="该会话暂无用户生成的求助卡" :image-size="64" />
<h3 class="detail-title">完整对话</h3>
<AdminPagination
class="chat-detail-pagination top"