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: '停车场名称',
dataIndex: 'name',
key: 'name',
// render: (text, record, index) => {
// return <div onClick={() => { setBaseData(record); getParkingIncome({ ...formData, road_id: record.road_id }) }}>{text}</div>
// }
},
{
title: '日均泊位时长利用率',
dataIndex: '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: '标签',
dataIndex: '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));
}
useEffect(() => {
getParkingIncome({ ...formData, road_id: baseData.road_id })
}, [baseData])
//
const getSelectList = () => {
ajax.getOperator().then((e) => {
@ -429,7 +421,7 @@ function ParkBerthAly() {
rowKey={'area_name'}
rowClassName={(record, index) => {
if (keyVal == index) {
setBaseData(record); getParkingIncome({ ...formData, road_id: record.road_id })
setBaseData(record);
return "ben"
}
}}

Loading…
Cancel
Save