From 354784e6a2dec1044c8086a78d0df876917d22b5 Mon Sep 17 00:00:00 2001 From: xingyongchun Date: Fri, 12 Aug 2022 11:27:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E6=94=BF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sections/fillion/components/operationalTable.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/web/client/src/sections/fillion/components/operationalTable.js b/web/client/src/sections/fillion/components/operationalTable.js index 17cae8d8..a26fccf1 100644 --- a/web/client/src/sections/fillion/components/operationalTable.js +++ b/web/client/src/sections/fillion/components/operationalTable.js @@ -22,7 +22,8 @@ const OperaTionalTable = (props) => { const [recortd, setRecortd] = useState() const [rewkeys, setRewkeys] = useState('keyun') const [delet, setDelet] = useState() - +const [differentiate,setDifferentiate]=useState() +const [genre,setGenre]=useState() const ref = useRef() useEffect(() => { ref.current.reload() }, [rewkeys, activeKey, delet]) //打开弹窗 @@ -1924,7 +1925,9 @@ const OperaTionalTable = (props) => { key: 'tab3', label: { { - setRewkeys('chuzu') + setDifferentiate('vehicle') + setRewkeys('chuzu') + setGenre('出租车') } }}>出租车{activeKey === 'tab3'}, @@ -1933,7 +1936,9 @@ const OperaTionalTable = (props) => { key: 'tab4', label: { { - setRewkeys('weihuo') + setDifferentiate('vehicle') + setGenre('危货') + setRewkeys('weihuo') } }}>危险货运{activeKey === 'tab4'}, @@ -1967,6 +1972,7 @@ const OperaTionalTable = (props) => { dataSource={counts || []} request={async (params, sort, filter) => { + console.log(rewkeys) if (rewkeys == 'keyun') { const query = {} setRowSelected([]);