diff --git a/src/pages/OperationCenter/ArrearsRecover/ArrearsCar/loadable.jsx b/src/pages/OperationCenter/ArrearsRecover/ArrearsCar/loadable.jsx index 77983ea..90bb917 100644 --- a/src/pages/OperationCenter/ArrearsRecover/ArrearsCar/loadable.jsx +++ b/src/pages/OperationCenter/ArrearsRecover/ArrearsCar/loadable.jsx @@ -26,61 +26,88 @@ function ArrearsCar() { title: "车牌号", dataIndex: "plate_info", key: "plate_info", + align: "center", + fixed: "right", + render: (text) => { + return
{text}
; + }, }, { title: "车辆归属地", dataIndex: "area", key: "area", + align: "center", + fixed: "right", }, { title: "欠费总金额(元)", dataIndex: "amount", key: "amount", + align: "center", + fixed: "right", }, { title: "追缴金额(元)", dataIndex: "currentRefund", key: "currentRefund", + align: "center", + fixed: "right", }, { title: "欠费总订单数", dataIndex: "amount_count", key: "amount_count", + align: "center", + fixed: "right", }, { title: "追缴单数", dataIndex: "refund_count", key: "refund_count", + align: "center", + fixed: "right", }, { title: "电话追缴次数", dataIndex: "mobile_count", key: "mobile_count", + align: "center", + fixed: "right", }, { title: "会员电话", dataIndex: "user_mobile", key: "user_mobile", + align: "center", + fixed: "right", }, { title: "公安接口电话", dataIndex: "police_mobile", key: "police_mobile", + align: "center", + fixed: "right", }, { title: "三方导入电话", dataIndex: "third_mobile", key: "third_mobile", + align: "center", + fixed: "right", }, { title: "近日自主停车", dataIndex: "parking_mobile", key: "parking_mobile", + align: "center", + fixed: "right", }, { title: "可触达性", dataIndex: "if_call", key: "if_call", + align: "center", + fixed: "right", }, { title: "操作", @@ -159,7 +186,7 @@ function ArrearsCar() { key: "in_veh_pic", render: (text, record, index) => { return
- { setBigPic(baseData.authImg2); setBigpicVisible(true) }}/> + { setBigPic(text); setBigpicVisible(true) }}/>
}, }, @@ -169,7 +196,7 @@ function ArrearsCar() { key: "out_veh_pic", render: (text, record, index) => { return
- { setBigPic(baseData.authImg2); setBigpicVisible(true) }}/> + { setBigPic(text); setBigpicVisible(true) }}/>
}, }, diff --git a/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/CarManagement.jsx b/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/CarManagement.jsx index b94d600..0d4eab1 100644 --- a/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/CarManagement.jsx +++ b/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/CarManagement.jsx @@ -130,9 +130,11 @@ function CarManagement({ id }) { onClick={() => { if (record.status === 1) { disableVehicle(record.id); + submit(form.getFieldValue()); return; } enableVehicle(record.id); + submit(form.getFieldValue()); }} > {record.status === 1 ? "禁用" : "启用"} diff --git a/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/LEDConfiguration.jsx b/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/LEDConfiguration.jsx index e8b151e..17fb9e3 100644 --- a/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/LEDConfiguration.jsx +++ b/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/LEDConfiguration.jsx @@ -13,7 +13,7 @@ import { } from "antd"; const { TextArea } = Input; import ajax from "@/services"; -function GateControlManagement({ id: road_id }) { +function LEDConfiguration({ id }) { const columns = [ { title: "业务场景", @@ -94,6 +94,7 @@ function GateControlManagement({ id: road_id }) { visible: false, id: null, }); + const [businessList, setBusinessList] = useState([]); // 下拉数据 const [dataSource, setDataSource] = useState([]); // 表格数据 const [total, setTotal] = useState(0); const addLEDText = () => { @@ -104,7 +105,7 @@ function GateControlManagement({ id: road_id }) { page_size: 10, }); const search = () => { - const params = { ...form.getFieldsValue(), ...pageData, road_id }; + const params = { ...form.getFieldsValue(), ...pageData, id }; ajax.getLEDList(params).then((res) => { if (res.status === 20000) { setDataSource(res.data.list); @@ -144,10 +145,10 @@ function GateControlManagement({ id: road_id }) { .validateFields() .then((res) => { if (modalData.status === "add") { - res.road_id = road_id; + res.road_id = id; addLED(res); } else { - res.road_id = road_id; + res.road_id = id; editLED(res); } }) @@ -164,6 +165,19 @@ function GateControlManagement({ id: road_id }) { }); setDelModal({ visible: false, id: null }); } + function getLEDBusiness() { + ajax.getLEDBusiness({ road_id: id }).then((res) => { + if (res.status == 20000) { + setBusinessList(res.data) + } else { + message.error(res.message); + } + }); + setDelModal({ visible: false, id: null }); + } + useEffect(() => { + getLEDBusiness(); + }, []); useEffect(() => { search(); }, [pageData]); @@ -174,7 +188,7 @@ function GateControlManagement({ id: road_id }) { - @@ -194,7 +208,7 @@ function GateControlManagement({ id: road_id }) { - , + children: , }, { label: "LED配置", diff --git a/src/services/OutRoadMgm/OutSegment.js b/src/services/OutRoadMgm/OutSegment.js index 33f74d5..b910cdb 100644 --- a/src/services/OutRoadMgm/OutSegment.js +++ b/src/services/OutRoadMgm/OutSegment.js @@ -279,6 +279,14 @@ const deleteWhiteVehicle = (params) => { data: params, }); }; +///api/orp/road/can_add_business_type 能够新增的业务场景 +const getLEDBusiness = (params) => { + return ajax({ + url: "/api/orp/road/can_add_business_type", + type: "post", + data: params, + }); +}; ///api/orp/road/led_list led配置列表 const getLEDList = (params) => { return ajax({ @@ -489,6 +497,7 @@ export default { enableWhiteVehicle, disableWhiteVehicle, deleteWhiteVehicle, + getLEDBusiness, getLEDList, editLED, addLED,