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.business_definition} }, { key: 'formula', label: '计算公式', render: (r) => {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) }, ]} />
) }