Merge branch 'zqq'

This commit is contained in:
glj 2023-05-06 15:18:37 +08:00
commit 4f7fea6259
1 changed files with 14 additions and 9 deletions

View File

@ -509,11 +509,18 @@ const onOpenEditRole = (type, row) => {
};
const manualCoordinate = () => {
const disLatLen = state.dislat.length
const disLonLen = state.dislon.length
const editLat = state.dislat.substring(0, disLatLen - 2)
const editLon = state.dislon.substring(0, disLonLen - 2)
mapRef.value.mapOperations.addInteractMarker(editLat, editLon)
// const disLatLen = state.dislat.length
// const disLonLen = state.dislon.length
// const editLat = state.dislat.substring(0, disLatLen - 2)
// const editLon = state.dislon.substring(0, disLonLen - 2)
// mapRef.value.mapOperations.addInteractMarker(editLat, editLon)
mapRef.value.mapOperations.addInteractMarker(state.dislat, state.dislon)
const positionParam = {
x: state.dislon,
y: state.dislat,
zoom: 3
}
mapRef.value.mapOperations.goPosition(positionParam)
}
const mapEvents = (ev) => {
@ -555,8 +562,8 @@ const mapClick = (res) => {
// // mapRef.value.mapOperations.removeLayer( state.wktPoint_Poly )
// mapRef.value.mapOperations.addInteractMarker(res.latlng.lat.toFixed(3), res.latlng.lng.toFixed(3))
// // console.log(state.wktPoint_Poly)
state.dislat = changeLat(res.latlng.lat.toFixed(3))
state.dislon = changeLon(res.latlng.lng.toFixed(3))
state.dislat = res.latlng.lat.toFixed(3)
state.dislon = res.latlng.lng.toFixed(3)
mapRef.value.mapOperations.addInteractMarker(res.latlng.lat.toFixed(3), res.latlng.lng.toFixed(3))
}
const reviews = (index) => {
@ -566,8 +573,6 @@ const reviews = (index) => {
//index
if (index === 1) {
state.edit.respondStatus = 1;
} else {