From b9ffae57eba053043b79df16bd8a49adeca12653 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Sat, 30 Jul 2022 21:14:44 +0800 Subject: [PATCH 1/3] =?UTF-8?q?culvert=20=E6=B6=B5=E6=B4=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/client/src/sections/fillion/components/patrolTable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/client/src/sections/fillion/components/patrolTable.js b/web/client/src/sections/fillion/components/patrolTable.js index e8a79935..9cc6cd06 100644 --- a/web/client/src/sections/fillion/components/patrolTable.js +++ b/web/client/src/sections/fillion/components/patrolTable.js @@ -119,7 +119,7 @@ const DetailList = (props) => { switch (text) { case 'road': return '道路'; case 'bridge': return '桥梁'; - case 'culvert ': return '涵洞'; + case 'culvert': return '涵洞'; case 'other': return '其他'; default: return text; } From 6bf95568e438270ee2284734b109dfee471914d8 Mon Sep 17 00:00:00 2001 From: LUCAS Date: Sat, 30 Jul 2022 21:32:36 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=A1=A3=E6=A1=88=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=95=85=E9=9A=9C=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/client/src/sections/fillion/components/fileTable.js | 8 ++++++-- web/client/src/sections/fillion/containers/maintenance.js | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/web/client/src/sections/fillion/components/fileTable.js b/web/client/src/sections/fillion/components/fileTable.js index 7fb11321..a0dbc8d9 100644 --- a/web/client/src/sections/fillion/components/fileTable.js +++ b/web/client/src/sections/fillion/components/fileTable.js @@ -281,7 +281,11 @@ const RoadNameList = (props) => { return { onClick: () => { if (record) { - setSelectRoad(record.rId); + let id = record.rId + if(selectRoad == record.rId){ + id = null + } + setSelectRoad(id); onChange(record); } }, @@ -413,7 +417,7 @@ const FileTable = (props) => { }} > - + diff --git a/web/client/src/sections/fillion/containers/maintenance.js b/web/client/src/sections/fillion/containers/maintenance.js index d08a032d..b02e7dd6 100644 --- a/web/client/src/sections/fillion/containers/maintenance.js +++ b/web/client/src/sections/fillion/containers/maintenance.js @@ -25,7 +25,7 @@ const Maintenance = (props) => { let reportIds = ids.toString(); window.open( '/_api/' + - `data/export?exp=patrol&ids=${reportIds}&token=${user.token}`) + `data/export?exp=maintenance&ids=${reportIds}&token=${user.token}`) } return ( <> From 2173cf81816a887fa2c8fcccaa477a964043a017 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Sat, 30 Jul 2022 22:16:00 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=85=BB=E6=8A=A4=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=90=8E=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fillion/components/maintenanceTable.js | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/web/client/src/sections/fillion/components/maintenanceTable.js b/web/client/src/sections/fillion/components/maintenanceTable.js index 07207b78..c26c6c8d 100644 --- a/web/client/src/sections/fillion/components/maintenanceTable.js +++ b/web/client/src/sections/fillion/components/maintenanceTable.js @@ -102,12 +102,12 @@ const DetailList = (props) => { align: 'center', render: (text, record) => { let day = moment(record.time).format("YYYYMMDD") - if(!basicDate){ + if (!basicDate) { basicDate = day; - counter +=1; - } else if(basicDate == day){ counter += 1; - } else if(basicDate != day){ + } else if (basicDate == day) { + counter += 1; + } else if (basicDate != day) { basicDate = day; counter = 1; } @@ -303,7 +303,11 @@ const MaintenanceTable = (props) => { useEffect(() => { if (record) { - let query = { userId: record.id, reportType: 'conserve' , asc: true} + let query = { + userId: record.id, + reportType: 'conserve', + asc: true + } if ((dateRange && dateRange instanceof Array && dateRange[0] != '')) { query.startTime = moment(dateRange[0]).startOf('day').format('YYYY-MM-DD HH:mm:ss') query.endTime = moment(dateRange[1]).endOf('day').format('YYYY-MM-DD HH:mm:ss') @@ -320,7 +324,11 @@ const MaintenanceTable = (props) => { } const handelRefresh = () => { - let query = { userId: record.id, reportType: 'patrol', asc: true } + let query = { + userId: record.id, + reportType: 'conserve', + asc: true + } dispatch(getReportList(query)); } @@ -343,7 +351,10 @@ const MaintenanceTable = (props) => { - +