feat: 列表页加更新/发布时间列 + summary接口补充字段

This commit is contained in:
mediabot-pt
2026-07-02 11:16:11 +08:00
parent 824053a672
commit 62ed20291f
3 changed files with 25 additions and 5 deletions

View File

@@ -19,6 +19,14 @@
<span v-else class="text-xs" style="color:#909399">-</span>
</template>
</el-table-column>
<el-table-column label="更新/发布" width="140">
<template #default="scope">
<span v-if="scope.row.configUpdatedAt || scope.row.lastSubmitted" class="text-xs" style="color:#909399">
{{ fmt(scope.row.configUpdatedAt) }} / {{ fmt(scope.row.configPublishedAt) }}
</span>
<span v-else class="text-xs" style="color:#909399">-</span>
</template>
</el-table-column>
<el-table-column label="页面数" width="100">
<template #default="scope">
<span class="text-xs">{{ scope.row.pages?.length || 0 }}页 · {{ scope.row.totalResults || 0 }}次</span>
@@ -40,11 +48,6 @@
<span v-else class="text-xs" style="color:#909399">0</span>
</template>
</el-table-column>
<el-table-column label="最近提交" width="140">
<template #default="scope">
<span class="text-xs">{{ scope.row.lastSubmitted?.substring(5,16) || '-' }}</span>
</template>
</el-table-column>
<el-table-column label="操作" width="100">
<template #default="scope">
<el-button size="small" type="primary" @click="$router.push(`/access-results/check/${scope.row.siteId}`)">
@@ -63,6 +66,7 @@ import { Refresh } from '@element-plus/icons-vue'
const loading = ref(false)
const sites = ref([])
const fmt = (t) => t ? t.substring(5,16).replace('T',' ') : null
const fetchAll = async () => {
loading.value = true