feat: add class share drafts

This commit is contained in:
2026-07-31 16:07:18 +08:00
parent d8fde93b69
commit 429636f3e8
15 changed files with 410 additions and 5 deletions

View File

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