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>
<a
onClick={() => {
if (record.status === 1) {
if (record.status == '2') {
enableBlackVehicle(record.id);
} else {
disableBlackVehicle(record.id);
}
}}
>
{record.status === 1 ? "启用" : "禁用"}
{record.status == "2" ? "启用" : "禁用"}
</a>
</div>
</>
}
>
<Button type="primary">编辑</Button>
<Button type="primary">操作</Button>
</Popover>
);
},

8
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 }) {
</>
}
>
<Button type="primary">编辑</Button>
<Button type="primary">操作</Button>
</Popover>
);
},
@ -331,12 +332,13 @@ function CarGroupMgm({ id }) {
<Row>
<Col span="4_8" style={{ width: "30%" }}>
<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>
</Col>
<Col span="4_8" style={{ width: "30%" }}>
<Form.Item label="车辆类型" name="vehicle_type" rules={[{ required: true }]}>
<Select
disabled={true}
options={[
{ label: "免费车", value: 1 },
{ label: "临时车", value: 2 },
@ -347,7 +349,7 @@ function CarGroupMgm({ id }) {
</Form.Item>
</Col>
<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
options={[
{ label: "启用", value: '2' },

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

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

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

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

6
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();
}, []);

Loading…
Cancel
Save