feat: 适配页显示保存/发布时间+简化计数器(页面数+提交次数)
This commit is contained in:
@@ -22,4 +22,5 @@ public class SiteConfigDTO {
|
||||
private Boolean isLatest;
|
||||
private Long submitterId;
|
||||
private LocalDateTime createdAt;
|
||||
private LocalDateTime updatedAt;
|
||||
}
|
||||
|
||||
@@ -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) }} | 发布: {{ fmtTime(selectedConfig.createdAt) }}
|
||||
| {{ 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 () => {
|
||||
|
||||
Reference in New Issue
Block a user