|
|
@ -107,8 +107,8 @@ export default function OperationApprovalsContainer({ mode }) { |
|
|
|
}, []); |
|
|
|
}, []); |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
if (areaCoordList.length !== 0) { |
|
|
|
if (areaCoordList.length > 0) { |
|
|
|
handlerAreaDraw(); |
|
|
|
if (areaCoordList[0].planSno !== 0) handlerAreaDraw(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
handlerRemoveArea(); |
|
|
|
handlerRemoveArea(); |
|
|
|
} |
|
|
|
} |
|
|
@ -123,6 +123,22 @@ export default function OperationApprovalsContainer({ mode }) { |
|
|
|
|
|
|
|
|
|
|
|
if (features) { |
|
|
|
if (features) { |
|
|
|
setSelected([features.properties.key]); |
|
|
|
setSelected([features.properties.key]); |
|
|
|
|
|
|
|
const targetValue = features.properties.key; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const rows = document.getElementsByClassName('ant-table-row'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const matchingRow = Array.from(rows).find(row => { |
|
|
|
|
|
|
|
const rowKey = row.getAttribute('data-row-key'); |
|
|
|
|
|
|
|
return rowKey.startsWith(targetValue); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (matchingRow) { |
|
|
|
|
|
|
|
matchingRow.scrollIntoView({ |
|
|
|
|
|
|
|
behavior: 'smooth', |
|
|
|
|
|
|
|
block: 'center', |
|
|
|
|
|
|
|
inline: 'nearest' |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|