diff --git a/src/views/Home/RealTable.js b/src/views/Home/RealTable.js index f361f6f..c2efc97 100644 --- a/src/views/Home/RealTable.js +++ b/src/views/Home/RealTable.js @@ -32,7 +32,7 @@ const RealTable = ({ ctx }) => { const columns = [ - { title: '站点名称', key: 'mn',dataIndex:"mn",ellipsis: true, width: 90}, + { title: '站点名称', key: 'name',dataIndex:"name",ellipsis: true, width: 90}, { title: '数据时间', key: 'tm', dataIndex: "tm", align: 'center', width: 80, render: (v, r) => {v ? moment(v).format('MM-DD HH:mm:ss'):""} @@ -79,7 +79,7 @@ const RealTable = ({ ctx }) => { columns={newCols} scroll={size?.height && size.height < height ? { y: size.height - 48,x:"auto" } : undefined} /> - { setVisible(false); setTabKey('pH');setList([]) }} footer={null} width={900}> + { setVisible(false); setTabKey('pH');setList([]) }} footer={null} width={900}>
diff --git a/src/views/Home/_.js b/src/views/Home/_.js index 97df4f6..f5a9305 100644 --- a/src/views/Home/_.js +++ b/src/views/Home/_.js @@ -19,7 +19,7 @@ export function usePageContext() { const dataWithSpecialStation = useMemo(() => { const kw = (filterName || '').trim().toLowerCase(); if (!kw) return stData; - return stData.filter(o => ((o.mn).toLowerCase()).includes(kw)); + return stData.filter(o => ((o.name).toLowerCase()).includes(kw)); }, [stData, filterName]) const fetchSpecialStationData = async () => { try {