|
|
@ -3,7 +3,7 @@ import { connect } from 'react-redux'; |
|
|
|
import { Spin, Button, Popconfirm, Badge } from 'antd'; |
|
|
|
import ProTable from '@ant-design/pro-table'; |
|
|
|
import './protable.less' |
|
|
|
import { getOperaTional, getSpecificVehicle, getHouseholds, delSpecificVehicle, delHouseholds,getShippingList } from "../actions/infor" |
|
|
|
import { getOperaTional, getSpecificVehicle, getHouseholds, delSpecificVehicle, delHouseholds, getShippingList } from "../actions/infor" |
|
|
|
import UserModal from './infor/details'; |
|
|
|
import HightModal from './highways/highwaysdata'; |
|
|
|
|
|
|
@ -62,22 +62,6 @@ const OperaTionalTable = (props) => { |
|
|
|
setModalRecord(null); |
|
|
|
} |
|
|
|
} |
|
|
|
//批量导出
|
|
|
|
const exports = (ids, counts) => { |
|
|
|
// console.log(user);
|
|
|
|
let reportIds = []; |
|
|
|
if (ids.length) |
|
|
|
reportIds = ids |
|
|
|
else |
|
|
|
reportIds = (counts || {}).ids || []; |
|
|
|
superagent.post('/_report/http') |
|
|
|
.send({ id: reportIds.map(i => Number(i)) }).end((err, res) => { |
|
|
|
const resTextIs = res.text.split('/').pop() |
|
|
|
window.open( |
|
|
|
'/_api/' + |
|
|
|
`attachments?src=files/${resTextIs}&filename=${encodeURIComponent(resTextIs)}&token=${user.token}`) |
|
|
|
}) |
|
|
|
} |
|
|
|
const columns = { |
|
|
|
tab1: [ |
|
|
|
{ |
|
|
@ -185,7 +169,7 @@ const OperaTionalTable = (props) => { |
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
tab3: [ |
|
|
|
tab3: [ |
|
|
|
{ |
|
|
|
title: '业户名称', |
|
|
|
dataIndex: 'placeName', |
|
|
@ -1914,7 +1898,7 @@ const OperaTionalTable = (props) => { |
|
|
|
<ProTable |
|
|
|
actionRef={ref} |
|
|
|
form={{ |
|
|
|
submitter: rewkeys === 'keyun'|| rewkeys === 'huoyun'? false : true, |
|
|
|
submitter: rewkeys === 'keyun' || rewkeys === 'huoyun' ? false : true, |
|
|
|
}} |
|
|
|
toolbar={{ |
|
|
|
multipleLine: true, |
|
|
@ -1930,7 +1914,7 @@ const OperaTionalTable = (props) => { |
|
|
|
setRewkeys('keyun') |
|
|
|
}}>客运{activeKey === 'tab1'}</span>, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
key: 'tab2', |
|
|
|
label: <span onClick={() => { |
|
|
|
setRewkeys('huoyun') |
|
|
@ -1970,7 +1954,7 @@ const OperaTionalTable = (props) => { |
|
|
|
rowKey='id' |
|
|
|
// alwaysShowAlert
|
|
|
|
// tableAlertRender={true}
|
|
|
|
rowSelection={rewkeys == 'keyun'||rewkeys == 'huoyun' ? false : { |
|
|
|
rowSelection={rewkeys == 'keyun' || rewkeys == 'huoyun' ? false : { |
|
|
|
selectedRowKeys: rowSelected, |
|
|
|
onChange: (selectedRowKeys) => { |
|
|
|
setRowSelected(selectedRowKeys); |
|
|
@ -1992,7 +1976,7 @@ const OperaTionalTable = (props) => { |
|
|
|
...res, |
|
|
|
total: res.payload.data ? res.payload.data.count : 0 |
|
|
|
} |
|
|
|
}if (rewkeys == 'huoyun') { |
|
|
|
} if (rewkeys == 'huoyun') { |
|
|
|
const query = {} |
|
|
|
setRowSelected([]); |
|
|
|
const res = await dispatch(getShippingList(query)); |
|
|
@ -2074,7 +2058,7 @@ const OperaTionalTable = (props) => { |
|
|
|
onVisibleChange={setModalVisibleyilan} |
|
|
|
modalRecord={modalRecord} |
|
|
|
typecard={typecard} |
|
|
|
rewkeys={'passenger'} |
|
|
|
rewkeys={rewkeys=='keyun'?'passenger':'freight'} |
|
|
|
recortd={recortd} |
|
|
|
setDelet={setDelet} |
|
|
|
setRecortd={setRecortd} |
|
|
|