diff --git a/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/BlacklistManagement.jsx b/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/BlacklistManagement.jsx index 1447731..bb74d92 100644 --- a/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/BlacklistManagement.jsx +++ b/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/BlacklistManagement.jsx @@ -125,20 +125,20 @@ function BlacklistManagement({ id }) {
{ - if (record.status === 1) { + if (record.status == '2') { enableBlackVehicle(record.id); } else { disableBlackVehicle(record.id); } }} > - {record.status === 1 ? "启用" : "禁用"} + {record.status == "2" ? "启用" : "禁用"}
} > - + ); }, diff --git a/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/CarGroupMgm.jsx b/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/CarGroupMgm.jsx index fee2f92..ffb2fb7 100644 --- a/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/CarGroupMgm.jsx +++ b/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/CarGroupMgm.jsx @@ -74,6 +74,7 @@ function CarGroupMgm({ id }) { name: record.name, vehicle_type: record.vehicle_type, status: record.status, + can_del: record.can_del, note: record.note, }); }} @@ -98,7 +99,7 @@ function CarGroupMgm({ id }) { } > - + ); }, @@ -331,12 +332,13 @@ function CarGroupMgm({ id }) { - + - {record.status === 1 ? "禁用" : "启用"} + {record.status == '1' ? "禁用" : "启用"} diff --git a/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/WhitelistManagement.jsx b/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/WhitelistManagement.jsx index 4edfe96..a23ff39 100644 --- a/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/WhitelistManagement.jsx +++ b/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/WhitelistManagement.jsx @@ -124,20 +124,20 @@ function WhitelistManagement({ id }) {
{ - if (record.status === 1) { + if (record.status == '2') { enableWhiteVehicle(record.id); } else { disableWhiteVehicle(record.id); } }} > - {record.status === 1 ? "启用" : "禁用"} + {record.status == "2" ? "启用" : "禁用"}
} > - + ); }, diff --git a/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/LEDConfiguration.jsx b/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/LEDConfiguration.jsx index 612394a..44c7ba4 100644 --- a/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/LEDConfiguration.jsx +++ b/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/LEDConfiguration.jsx @@ -193,6 +193,12 @@ function LEDConfiguration({ id }) { }); setDelModal({ visible: false, id: null }); } + function changePage(pn, page_size) { + setPageData({ + pn, + page_size, + }); + } useEffect(() => { getLEDBusiness(); }, []);