From 6bf95568e438270ee2284734b109dfee471914d8 Mon Sep 17 00:00:00 2001 From: LUCAS Date: Sat, 30 Jul 2022 21:32:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=A3=E6=A1=88=E7=AE=A1=E7=90=86=E6=95=85?= =?UTF-8?q?=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 ( <>