This commit is contained in:
2026-07-20 10:26:58 +08:00
parent 9658015972
commit 1d8fe97a49
10 changed files with 105 additions and 45 deletions
+13 -8
View File
@@ -44,15 +44,20 @@
<el-dialog v-model="showDialog" title="日志详情" width="680px">
<template v-if="detailLog">
<div style="line-height: 2; margin-bottom: 16px;">
<div><span style="color: #909399;">域名</span>{{ detailLog.domain || '-' }}</div>
<div><span style="color: #909399;">操作</span>{{ actionLabel(detailLog.action) }}</div>
<div><span style="color: #909399;">状态</span>{{ detailLog.status }}</div>
<div><span style="color: #909399;">消息</span>{{ detailLog.message }}</div>
</div>
<el-descriptions :column="2" border style="margin-bottom: 16px;">
<el-descriptions-item label="域名" :span="2">{{ detailLog.domain || '-' }}</el-descriptions-item>
<el-descriptions-item label="操作">{{ actionLabel(detailLog.action) }}</el-descriptions-item>
<el-descriptions-item label="状态">
<el-tag :type="statusType(detailLog.status)" size="small">{{ detailLog.status }}</el-tag>
</el-descriptions-item>
<el-descriptions-item label="消息" :span="2">{{ detailLog.message }}</el-descriptions-item>
<el-descriptions-item label="过期时间">{{ detailLog.cert_not_after ? formatTime(detailLog.cert_not_after) : '-' }}</el-descriptions-item>
<el-descriptions-item label="序列号">{{ detailLog.cert_serial || '-' }}</el-descriptions-item>
<el-descriptions-item label="SAN" :span="2">{{ detailLog.cert_san || '-' }}</el-descriptions-item>
</el-descriptions>
<div v-if="detailLog.detail">
<div style="color: #909399; font-size: 13px; margin-bottom: 8px;">详细日志</div>
<pre style="background: #1e1e1e; color: #d4d4d4; padding: 16px; border-radius: 8px; font-size: 12px; white-space: pre-wrap; word-break: break-all; margin: 0;">{{ detailLog.detail }}</pre>
<div style="color: #909399; font-size: 13px; margin-bottom: 8px;">Certbot 输出</div>
<pre style="background: #1e1e1e; color: #d4d4d4; padding: 16px; border-radius: 8px; font-size: 12px; white-space: pre-wrap; word-break: break-all; margin: 0; max-height: 400px; overflow-y: auto;">{{ detailLog.detail }}</pre>
</div>
</template>
</el-dialog>
+5 -1
View File
@@ -15,7 +15,10 @@
<el-table-column prop="created_at" label="时间" width="170">
<template #default="{ row }">{{ formatTime(row.created_at) }}</template>
</el-table-column>
<el-table-column prop="server" label="服务器" width="140" />
<el-table-column prop="server" label="服务器" width="120" />
<el-table-column prop="hostname" label="设备" width="140">
<template #default="{ row }">{{ row.hostname || '-' }}</template>
</el-table-column>
<el-table-column prop="domain" label="域名" width="200" />
<el-table-column prop="status" label="状态" width="100">
<template #default="{ row }">
@@ -36,6 +39,7 @@
<el-descriptions :column="1" border size="small">
<el-descriptions-item label="时间">{{ formatTime(detailLog.created_at) }}</el-descriptions-item>
<el-descriptions-item label="服务器">{{ detailLog.server || '-' }}</el-descriptions-item>
<el-descriptions-item label="设备">{{ detailLog.hostname || '-' }}</el-descriptions-item>
<el-descriptions-item label="域名">{{ detailLog.domain || '-' }}</el-descriptions-item>
<el-descriptions-item label="状态">
<el-tag :type="statusType(detailLog.status)" size="small">{{ detailLog.status }}</el-tag>