From 186b48f9a08c4b673706c89ba10df9f8414bd11b Mon Sep 17 00:00:00 2001 From: wanyiwei Date: Tue, 26 Jul 2022 17:37:08 +0800 Subject: [PATCH] =?UTF-8?q?*=E5=B7=A6=E4=BE=A7=E6=9A=82=E6=97=A0=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../containers/footer/operation/left.js | 36 ++++++++++--------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/web/client/src/sections/quanju/containers/footer/operation/left.js b/web/client/src/sections/quanju/containers/footer/operation/left.js index e4c5be32..92e69c9a 100644 --- a/web/client/src/sections/quanju/containers/footer/operation/left.js +++ b/web/client/src/sections/quanju/containers/footer/operation/left.js @@ -27,8 +27,8 @@ const Left = (props) => { const onChange = (e) => { const { value } = e.target; let keys = [] - const newExpandedKeys = treeDataList.filter(e=> e.key.match(value)) - newExpandedKeys.forEach(e=>{ + const newExpandedKeys = treeDataList.filter(e => e.key.match(value)) + newExpandedKeys.forEach(e => { keys.push(e.key) }) setExpandedKeys(keys); @@ -66,12 +66,12 @@ const Left = (props) => { key: e.name, title: e.name, }) - e.child.forEach(i=>{ + e.child.forEach(i => { dataList.push({ key: i.name, title: i.name, }) - i.child.forEach(s=>{ + i.child.forEach(s => { dataList.push({ key: s.vehicleLicensePlateNumber, title: s.vehicleLicensePlateNumber, @@ -103,18 +103,22 @@ const Left = (props) => { />
- + { + treeData.length > 0 ? + :
暂无数据
+ } +