From cc87b2227931a61423c3641990bdfd557b79defc Mon Sep 17 00:00:00 2001 From: lishenfeng Date: Sat, 22 Nov 2025 16:05:16 +0800 Subject: [PATCH] =?UTF-8?q?feat():=20=E5=B0=86=E7=AB=99=E7=82=B9=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E5=AD=97=E6=AE=B5=E6=94=B9=E4=B8=BAname?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Home/RealTable.js | 4 ++-- src/views/Home/_.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 {