Browse Source

fix():bug修改

tags/PMS_V1.0.0_Alpha5
xingjx 1 year ago
parent
commit
83560b7984
  1. 6
      src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/BlacklistManagement.jsx
  2. 8
      src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/CarGroupMgm.jsx
  3. 2
      src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/CarManagement.jsx
  4. 6
      src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/WhitelistManagement.jsx
  5. 6
      src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/LEDConfiguration.jsx

6
src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/BlacklistManagement.jsx

@ -125,20 +125,20 @@ function BlacklistManagement({ id }) {
<div> <div>
<a <a
onClick={() => { onClick={() => {
if (record.status === 1) {
if (record.status == '2') {
enableBlackVehicle(record.id); enableBlackVehicle(record.id);
} else { } else {
disableBlackVehicle(record.id); disableBlackVehicle(record.id);
} }
}} }}
> >
{record.status === 1 ? "启用" : "禁用"}
{record.status == "2" ? "启用" : "禁用"}
</a> </a>
</div> </div>
</> </>
} }
> >
<Button type="primary">编辑</Button>
<Button type="primary">操作</Button>
</Popover> </Popover>
); );
}, },

8
src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/CarGroupMgm.jsx

@ -74,6 +74,7 @@ function CarGroupMgm({ id }) {
name: record.name, name: record.name,
vehicle_type: record.vehicle_type, vehicle_type: record.vehicle_type,
status: record.status, status: record.status,
can_del: record.can_del,
note: record.note, note: record.note,
}); });
}} }}
@ -98,7 +99,7 @@ function CarGroupMgm({ id }) {
</> </>
} }
> >
<Button type="primary">编辑</Button>
<Button type="primary">操作</Button>
</Popover> </Popover>
); );
}, },
@ -331,12 +332,13 @@ function CarGroupMgm({ id }) {
<Row> <Row>
<Col span="4_8" style={{ width: "30%" }}> <Col span="4_8" style={{ width: "30%" }}>
<Form.Item label="车辆组名称" name="name" rules={[{ required: true }]}> <Form.Item label="车辆组名称" name="name" rules={[{ required: true }]}>
<Input maxLength={15} showCount={true} />
<Input maxLength={15} showCount={true} disabled={editModal.can_del == 2 ? true : false} />
</Form.Item> </Form.Item>
</Col> </Col>
<Col span="4_8" style={{ width: "30%" }}> <Col span="4_8" style={{ width: "30%" }}>
<Form.Item label="车辆类型" name="vehicle_type" rules={[{ required: true }]}> <Form.Item label="车辆类型" name="vehicle_type" rules={[{ required: true }]}>
<Select <Select
disabled={true}
options={[ options={[
{ label: "免费车", value: 1 }, { label: "免费车", value: 1 },
{ label: "临时车", value: 2 }, { label: "临时车", value: 2 },
@ -347,7 +349,7 @@ function CarGroupMgm({ id }) {
</Form.Item> </Form.Item>
</Col> </Col>
<Col span="4_8" style={{ width: "30%" }}> <Col span="4_8" style={{ width: "30%" }}>
<Form.Item label="状态" name="status" rules={[{ required: true }]}>
<Form.Item label="状态" name="status" rules={[{ required: true }]} disabled={editModal.can_del == 2 ? true : false}>
<Select <Select
options={[ options={[
{ label: "启用", value: '2' }, { label: "启用", value: '2' },

2
src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/CarManagement.jsx

@ -144,7 +144,7 @@ function CarManagement({ id }) {
submit(form.getFieldValue()); submit(form.getFieldValue());
}} }}
> >
{record.status === 1 ? "禁用" : "启用"}
{record.status == '1' ? "禁用" : "启用"}
</a> </a>
</div> </div>
</> </>

6
src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/WhitelistManagement.jsx

@ -124,20 +124,20 @@ function WhitelistManagement({ id }) {
<div> <div>
<a <a
onClick={() => { onClick={() => {
if (record.status === 1) {
if (record.status == '2') {
enableWhiteVehicle(record.id); enableWhiteVehicle(record.id);
} else { } else {
disableWhiteVehicle(record.id); disableWhiteVehicle(record.id);
} }
}} }}
> >
{record.status === 1 ? "启用" : "禁用"}
{record.status == "2" ? "启用" : "禁用"}
</a> </a>
</div> </div>
</> </>
} }
> >
<Button type="primary">编辑</Button>
<Button type="primary">操作</Button>
</Popover> </Popover>
); );
}, },

6
src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/LEDConfiguration.jsx

@ -193,6 +193,12 @@ function LEDConfiguration({ id }) {
}); });
setDelModal({ visible: false, id: null }); setDelModal({ visible: false, id: null });
} }
function changePage(pn, page_size) {
setPageData({
pn,
page_size,
});
}
useEffect(() => { useEffect(() => {
getLEDBusiness(); getLEDBusiness();
}, []); }, []);

Loading…
Cancel
Save