diff --git a/src/pages/InRoadMgm/EquipmentMgm/MonitorEquipment/loadable.jsx b/src/pages/InRoadMgm/EquipmentMgm/MonitorEquipment/loadable.jsx index 290aa3f..c2a4869 100644 --- a/src/pages/InRoadMgm/EquipmentMgm/MonitorEquipment/loadable.jsx +++ b/src/pages/InRoadMgm/EquipmentMgm/MonitorEquipment/loadable.jsx @@ -86,7 +86,8 @@ function Fence(props) { } const getBerthDataByNvr = (nvr) => { return new Promise((resolved, rejected) => { - ajax.getBerthByNvr(Object.assign({}, {nvr_id: nvr}, editStatus ? {} :{is_bind_monitor_device: 1})).then((e) => { + // ajax.getBerthByNvr(Object.assign({}, {nvr_id: nvr}, editStatus ? {} :{is_bind_monitor_device: 1})).then((e) => { + ajax.getBerthByNvr(Object.assign({}, {nvr_id: nvr}, editStatus ? {} :{})).then((e) => { if (e.status == 20000) { setBerthData(e.data.map((item) => ({key: item.value, title: item.label}))) resolved() @@ -114,7 +115,7 @@ function Fence(props) { getBerthDataByNvr(item.nvr_id).then(() => { setTimeout(() => { setBerthSelectData(item.berth_ids ? item.berth_ids.split(',').map((v) => v) : []) - }, 500) + }, 50) }) setEditModalVisible(true) }