feat: 适配页显示保存/发布时间+简化计数器(页面数+提交次数)

This commit is contained in:
mediabot-pt
2026-07-02 10:20:08 +08:00
parent e2eda70f83
commit 673b4f2809
2 changed files with 6 additions and 1 deletions

View File

@@ -13,7 +13,10 @@
:label="'v'+v.version + (v.status==='pending'?' [待审]':'') + (v.isLatest?' [当前]':'')" :value="v.id" />
</el-select>
<span class="text-xs">{{ pages.length }}页 {{ totalResults }}次</span>
<span v-if="selectedConfig" class="text-xs" style="color:#909399">
保存: {{ fmtTime(selectedConfig.updatedAt) }} &nbsp;|&nbsp; 发布: {{ fmtTime(selectedConfig.createdAt) }}
&nbsp;|&nbsp; {{ pages.length }} 个页面 · {{ totalResults }} 次提交
</span>
<template v-if="selectedConfig">
<el-tag v-if="parseSummary.matched>0" size="small" type="success">✓{{ parseSummary.matched }}</el-tag>
@@ -280,6 +283,7 @@ const rejectConfig = async () => {
finally { rejecting.value = false }
}
const fmtTime = (t) => t ? t.substring(5,16).replace('T',' ') : '-'
const statusTag = (c) => c>=200&&c<300?'success':c>=300&&c<400?'warning':'danger'
onMounted(async () => {