feat: improve audit exports and admin analytics
This commit is contained in:
@@ -5,6 +5,7 @@ import { computed, onMounted, reactive, ref } from "vue";
|
||||
import { api } from "../services/api";
|
||||
import type { AttentionConfig, AttentionPreviewMessage, AttentionPreviewResult } from "../types/api";
|
||||
import AdminPagination from "./AdminPagination.vue";
|
||||
import { formatDateTime } from "../utils/dateTime";
|
||||
|
||||
const props = defineProps<{ canConfig: boolean; canPreview: boolean }>();
|
||||
|
||||
@@ -182,7 +183,7 @@ function sourceLabel(value: string) {
|
||||
<el-table-column prop="userName" label="用户" width="120" />
|
||||
<el-table-column prop="sessionTitle" label="会话" min-width="180" show-overflow-tooltip />
|
||||
<el-table-column label="知识缺失" width="100"><template #default="{ row }"><el-tag :type="row.knowledgeMissing ? 'warning' : 'info'">{{ row.knowledgeMissing ? "是" : "否" }}</el-tag></template></el-table-column>
|
||||
<el-table-column prop="createdAt" label="提问时间" width="180" />
|
||||
<el-table-column label="提问时间" width="180"><template #default="{ row }">{{ formatDateTime(row.createdAt) }}</template></el-table-column>
|
||||
</el-table>
|
||||
<AdminPagination :page="pager.page" :page-size="pager.pageSize" :total="pager.total" @change="loadPreviewMessages" />
|
||||
</article>
|
||||
|
||||
Reference in New Issue
Block a user