zqq:callforhelp优化2

This commit is contained in:
qqGroup0 2023-05-05 21:41:36 +08:00
parent abd46b930d
commit 6c12bfc9ab
1 changed files with 14 additions and 9 deletions

View File

@ -514,11 +514,18 @@ const onOpenEditRole = (type, row) => {
}; };
const manualCoordinate = () => { const manualCoordinate = () => {
const disLatLen = state.dislat.length // const disLatLen = state.dislat.length
const disLonLen = state.dislon.length // const disLonLen = state.dislon.length
const editLat = state.dislat.substring(0, disLatLen - 2) // const editLat = state.dislat.substring(0, disLatLen - 2)
const editLon = state.dislon.substring(0, disLonLen - 2) // const editLon = state.dislon.substring(0, disLonLen - 2)
mapRef.value.mapOperations.addInteractMarker(editLat, editLon) // 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) => { const mapEvents = (ev) => {
@ -560,8 +567,8 @@ const mapClick = (res) => {
// // mapRef.value.mapOperations.removeLayer( state.wktPoint_Poly ) // // mapRef.value.mapOperations.removeLayer( state.wktPoint_Poly )
// mapRef.value.mapOperations.addInteractMarker(res.latlng.lat.toFixed(3), res.latlng.lng.toFixed(3)) // mapRef.value.mapOperations.addInteractMarker(res.latlng.lat.toFixed(3), res.latlng.lng.toFixed(3))
// // console.log(state.wktPoint_Poly) // // console.log(state.wktPoint_Poly)
state.dislat = changeLat(res.latlng.lat.toFixed(3)) state.dislat = res.latlng.lat.toFixed(3)
state.dislon = changeLon(res.latlng.lng.toFixed(3)) state.dislon = res.latlng.lng.toFixed(3)
mapRef.value.mapOperations.addInteractMarker(res.latlng.lat.toFixed(3), res.latlng.lng.toFixed(3)) mapRef.value.mapOperations.addInteractMarker(res.latlng.lat.toFixed(3), res.latlng.lng.toFixed(3))
} }
const reviews = (index) => { const reviews = (index) => {
@ -571,8 +578,6 @@ const reviews = (index) => {
//index //index
if (index === 1) { if (index === 1) {
state.edit.respondStatus = 1; state.edit.respondStatus = 1;
} else { } else {