import { useQuery } from '@tanstack/react-query' import api from '@/lib/api' import { FilterableTable } from '@/components/FilterableTable' export function IndicatorsPage() { const { data } = useQuery({ queryKey: ['indicators'], queryFn: () => api.get('/tasks/indicators'), }) const indicators = (data as any)?.data || [] return (
{r.formula} },
{ key: 'update_frequency', label: '更新频率', align: 'center' },
{ key: 'owner', label: '负责人' },
{ key: 'yellow_threshold', label: '黄线', align: 'right' },
{ key: 'red_threshold', label: '红线', align: 'right' },
{ key: 'version_date', label: '版本日期', render: (r) => r.version_date?.substring(0, 10) },
]}
/>