feat: 添加爬虫状态更新中的显示支持

在爬虫状态列中增加"正在更新"状态显示,并在爬虫过程中更新状态
This commit is contained in:
dmy
2026-01-22 14:15:07 +08:00
parent eaed16a12e
commit 2475619228
3 changed files with 57 additions and 2 deletions

View File

@@ -24,9 +24,20 @@
{{ formatDateTime(row.latestPublishDate) }}
</template>
</el-table-column>
<el-table-column label="状态" width="70">
<el-table-column label="状态" width="80">
<template #default="{ row }">
<el-tag :type="row.error && row.error.trim() ? 'danger' : (row.count > 0 ? 'success' : 'info')" size="small">
<el-tag
v-if="row.count === -1"
type="warning"
size="small"
>
正在更新...
</el-tag>
<el-tag
v-else
:type="row.error && row.error.trim() ? 'danger' : (row.count > 0 ? 'success' : 'info')"
size="small"
>
{{ row.error && row.error.trim() ? '出错' : (row.count > 0 ? '正常' : '无数据') }}
</el-tag>
</template>