From 6c12bfc9ab8eef093c5e987af5ac6b866aa2e219 Mon Sep 17 00:00:00 2001 From: qqGroup0 <253114712@qq.com> Date: Fri, 5 May 2023 21:41:36 +0800 Subject: [PATCH] =?UTF-8?q?zqq:callforhelp=E4=BC=98=E5=8C=962?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../responseManagement/userResponse/index.vue | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/views/responseManagement/userResponse/index.vue b/src/views/responseManagement/userResponse/index.vue index 51cf1dc..edf45dc 100644 --- a/src/views/responseManagement/userResponse/index.vue +++ b/src/views/responseManagement/userResponse/index.vue @@ -514,11 +514,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) => { @@ -560,8 +567,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) => { @@ -571,8 +578,6 @@ const reviews = (index) => { //判断index的值来判断是审核通过还是不通过 - - if (index === 1) { state.edit.respondStatus = 1; } else {