feat: 列表页加站点地址列
This commit is contained in:
@@ -13,6 +13,7 @@ public class SiteAccessSummaryDTO {
|
|||||||
|
|
||||||
private String siteId;
|
private String siteId;
|
||||||
private List<String> names;
|
private List<String> names;
|
||||||
|
private List<String> urls;
|
||||||
private String latestVersion;
|
private String latestVersion;
|
||||||
private int totalResults;
|
private int totalResults;
|
||||||
private int validCount;
|
private int validCount;
|
||||||
|
|||||||
@@ -164,7 +164,10 @@ public class AccessResultServiceImpl implements AccessResultService {
|
|||||||
// 站点名称
|
// 站点名称
|
||||||
try {
|
try {
|
||||||
Site siteObj = siteMapper.selectBySiteId(k);
|
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) {}
|
} catch (Exception ignored) {}
|
||||||
// 配置信息
|
// 配置信息
|
||||||
SiteConfig latest = siteConfigMapper.selectLatestBySiteId(k);
|
SiteConfig latest = siteConfigMapper.selectLatestBySiteId(k);
|
||||||
|
|||||||
@@ -13,6 +13,11 @@
|
|||||||
<span>{{ scope.row.names?.join(' / ') || scope.row.siteId }}</span>
|
<span>{{ scope.row.names?.join(' / ') || scope.row.siteId }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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">
|
<el-table-column label="版本" width="60" align="center">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-tag v-if="scope.row.latestVersion" size="small" type="primary">v{{ scope.row.latestVersion }}</el-tag>
|
<el-tag v-if="scope.row.latestVersion" size="small" type="primary">v{{ scope.row.latestVersion }}</el-tag>
|
||||||
|
|||||||
Reference in New Issue
Block a user