Browse Source

fix():bug修改

tags/PMS_Frontend_v1.0.6-develop
xingjx 1 year ago
parent
commit
bc0eab495d
  1. 16
      src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkBerthAly/loadable.jsx

16
src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkBerthAly/loadable.jsx

@ -104,26 +104,16 @@ function ParkBerthAly() {
title: '停车场名称', title: '停车场名称',
dataIndex: 'name', dataIndex: 'name',
key: 'name', key: 'name',
// render: (text, record, index) => {
// return <div onClick={() => { setBaseData(record); getParkingIncome({ ...formData, road_id: record.road_id }) }}>{text}</div>
// }
}, },
{ {
title: '日均泊位时长利用率', title: '日均泊位时长利用率',
dataIndex: 'utilization_rate', dataIndex: 'utilization_rate',
key: 'utilization_rate', key: 'utilization_rate',
//width: 200,
// render: (text, record, index) => {
// return <div onClick={() => { setBaseData(record); getParkingIncome({ ...formData, road_id: record.road_id }) }}>{text}</div>
// }
}, },
{ {
title: '标签', title: '标签',
dataIndex: 'label', dataIndex: 'label',
key: 'label', key: 'label',
// render: (text, record, index) => {
// return <div onClick={() => { setBaseData(record); getParkingIncome({ ...formData, road_id: record.road_id }) }}>{text}</div>
// }
}, },
] ]
@ -282,7 +272,9 @@ function ParkBerthAly() {
}) })
.catch((err) => console.error(err)); .catch((err) => console.error(err));
} }
useEffect(() => {
getParkingIncome({ ...formData, road_id: baseData.road_id })
}, [baseData])
// //
const getSelectList = () => { const getSelectList = () => {
ajax.getOperator().then((e) => { ajax.getOperator().then((e) => {
@ -429,7 +421,7 @@ function ParkBerthAly() {
rowKey={'area_name'} rowKey={'area_name'}
rowClassName={(record, index) => { rowClassName={(record, index) => {
if (keyVal == index) { if (keyVal == index) {
setBaseData(record); getParkingIncome({ ...formData, road_id: record.road_id })
setBaseData(record);
return "ben" return "ben"
} }
}} }}

Loading…
Cancel
Save