修改枚举

This commit is contained in:
2025-11-06 20:55:04 +08:00
parent d898d1eb48
commit 3c8044efa2
11 changed files with 38 additions and 92 deletions

View File

@@ -11,6 +11,7 @@
import GenericMonitorList from '../../components/GenericMonitorList.vue';
import { getPendingCollections } from '../../api/monitor.js';
import { formatRFC3339 } from '../../utils/format.js';
import { PendingCollectionStatus } from '../../enums.js';
// 适配通用组件的 fetchData prop
const fetchPendingCollections = async (params) => {
@@ -38,11 +39,7 @@ const pendingCollectionColumns = [
dataIndex: 'status',
key: 'status',
filterType: 'select',
filterOptions: [
{ text: '等待中', value: '等待中' },
{ text: '已完成', value: '已完成' },
{ text: '已超时', value: '已超时' },
],
filterOptions: Object.values(PendingCollectionStatus).map(value => ({ text: value, value: value })),
minWidth: 120,
},
{