feat: 列表页加站点地址列

This commit is contained in:
mediabot-pt
2026-07-02 11:54:45 +08:00
parent 13f9a0f58b
commit 958c1c2c52
3 changed files with 10 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ public class SiteAccessSummaryDTO {
private String siteId;
private List<String> names;
private List<String> urls;
private String latestVersion;
private int totalResults;
private int validCount;

View File

@@ -164,7 +164,10 @@ public class AccessResultServiceImpl implements AccessResultService {
// 站点名称
try {
Site siteObj = siteMapper.selectBySiteId(k);
if (siteObj != null) s.setNames(siteService.toDTO(siteObj).getNames());
if (siteObj != null) {
s.setNames(siteService.toDTO(siteObj).getNames());
s.setUrls(siteService.toDTO(siteObj).getUrls());
}
} catch (Exception ignored) {}
// 配置信息
SiteConfig latest = siteConfigMapper.selectLatestBySiteId(k);

View File

@@ -13,6 +13,11 @@
<span>{{ scope.row.names?.join(' / ') || scope.row.siteId }}</span>
</template>
</el-table-column>
<el-table-column label="地址" min-width="180" show-overflow-tooltip>
<template #default="scope">
<span style="font-size:12px;color:#909399">{{ (scope.row.urls||[]).join(' / ') || '-' }}</span>
</template>
</el-table-column>
<el-table-column label="版本" width="60" align="center">
<template #default="scope">
<el-tag v-if="scope.row.latestVersion" size="small" type="primary">v{{ scope.row.latestVersion }}</el-tag>