修改枚举
This commit is contained in:
@@ -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,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user