|
|
@ -437,6 +437,8 @@ const InForTable = (props) => { |
|
|
|
}} |
|
|
|
request={async (params) => { |
|
|
|
const query = { |
|
|
|
limit:params.pageSize, |
|
|
|
page:params.current-1, |
|
|
|
nameOfInspectionPoint: nameOfInspectionPoint, |
|
|
|
licensePlate: licensePlate, |
|
|
|
numberOfAxles: numberOfAxles, |
|
|
@ -446,10 +448,11 @@ const InForTable = (props) => { |
|
|
|
} |
|
|
|
setRowSelected([]); |
|
|
|
const res = await dispatch(getPurchase(query)); |
|
|
|
console.log(res) |
|
|
|
setCounts(res.payload.data) |
|
|
|
return { |
|
|
|
...res, |
|
|
|
total: res.payload.data ? res.payload.data.count : 0 |
|
|
|
total: res.payload.data ? res.payload.data : 0 |
|
|
|
} |
|
|
|
}} |
|
|
|
search={{ |
|
|
|