feat: 列表页加更新/发布时间列 + summary接口补充字段
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user