Browse Source

fix(): 路内,监控设备处理

tags/PMS_V1.0.0_Alpha5
wanghx 1 year ago
parent
commit
7e7f014549
  1. 5
      src/pages/InRoadMgm/EquipmentMgm/MonitorEquipment/loadable.jsx

5
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)
}

Loading…
Cancel
Save