yangsen 2 years ago
parent
commit
717f761285
  1. 12
      web/client/src/sections/fillion/components/operationalTable.js

12
web/client/src/sections/fillion/components/operationalTable.js

@ -22,7 +22,8 @@ const OperaTionalTable = (props) => {
const [recortd, setRecortd] = useState() const [recortd, setRecortd] = useState()
const [rewkeys, setRewkeys] = useState('keyun') const [rewkeys, setRewkeys] = useState('keyun')
const [delet, setDelet] = useState() const [delet, setDelet] = useState()
const [differentiate,setDifferentiate]=useState()
const [genre,setGenre]=useState()
const ref = useRef() const ref = useRef()
useEffect(() => { ref.current.reload() }, [rewkeys, activeKey, delet]) useEffect(() => { ref.current.reload() }, [rewkeys, activeKey, delet])
//打开弹窗 //打开弹窗
@ -1924,7 +1925,9 @@ const OperaTionalTable = (props) => {
key: 'tab3', key: 'tab3',
label: <span onClick={() => { label: <span onClick={() => {
{ {
setRewkeys('chuzu') setDifferentiate('vehicle')
setRewkeys('chuzu')
setGenre('出租车')
} }
}}>出租车{activeKey === 'tab3'}</span>, }}>出租车{activeKey === 'tab3'}</span>,
@ -1933,7 +1936,9 @@ const OperaTionalTable = (props) => {
key: 'tab4', key: 'tab4',
label: <span onClick={() => { label: <span onClick={() => {
{ {
setRewkeys('weihuo') setDifferentiate('vehicle')
setGenre('危货')
setRewkeys('weihuo')
} }
}}>危险货运{activeKey === 'tab4'}</span>, }}>危险货运{activeKey === 'tab4'}</span>,
@ -1967,6 +1972,7 @@ const OperaTionalTable = (props) => {
dataSource={counts || []} dataSource={counts || []}
request={async (params, sort, filter) => { request={async (params, sort, filter) => {
console.log(rewkeys)
if (rewkeys == 'keyun') { if (rewkeys == 'keyun') {
const query = {} const query = {}
setRowSelected([]); setRowSelected([]);

Loading…
Cancel
Save