From e549e90fdcdf6a816c15fbcc2f036d01b6634b5b Mon Sep 17 00:00:00 2001 From: X_Rian <904416525@qq.com> Date: Wed, 7 Aug 2024 18:25:58 +0800 Subject: [PATCH] =?UTF-8?q?flx=EF=BC=9A=E5=B7=A1=E6=A3=80=E7=82=B9?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AF=BC=E8=88=AA=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../InspectionRoute/editInspectionPoint.vue | 2 +- .../InspectionRoute/inspecteddetail.vue | 92 ++++++++++++++++--- .../mapLocatoin/mapLocatoin.vue | 2 +- 3 files changed, 80 insertions(+), 16 deletions(-) diff --git a/pages/projectEnd/InspectionRoute/editInspectionPoint.vue b/pages/projectEnd/InspectionRoute/editInspectionPoint.vue index 93addaa2..200ff865 100644 --- a/pages/projectEnd/InspectionRoute/editInspectionPoint.vue +++ b/pages/projectEnd/InspectionRoute/editInspectionPoint.vue @@ -101,7 +101,7 @@ return { editId: "", coordType: "gcj02", - standOptions: [30, 50, 100, 200, 300], + standOptions: [5, 10, 20, 30, 50, 100, 200, 300], mobileTopHeight: 0, projectSn: '', userInfo: {}, diff --git a/pages/projectEnd/InspectionRoute/inspecteddetail.vue b/pages/projectEnd/InspectionRoute/inspecteddetail.vue index 8b8597c0..dd57acdc 100644 --- a/pages/projectEnd/InspectionRoute/inspecteddetail.vue +++ b/pages/projectEnd/InspectionRoute/inspecteddetail.vue @@ -28,7 +28,7 @@ - {{item.checkingPointName}} + {{item.checkingPointName}} - 巡检图片: + 巡检图片: - - + + + 扫码巡检 @@ -134,6 +156,30 @@ // this.getcheckingInfo(); }, methods: { + markTap() { + console.log('ccccccc') + console.log(this.checkingInfoDetail.latitude, this.checkingInfoDetail.longitude) + console.log('ccccccc') + uni.openLocation({ + // 目标位置的经纬度 + latitude: parseFloat(this.checkingInfoDetail.latitude), + longitude: parseFloat(this.checkingInfoDetail.longitude), + name: this.checkingInfoDetail.checkingPointName, + // 调用成功时的回调函数 + success: function(res) { + console.log('调用成功:', res) + }, + // 调用失败时的回调函数 + fail: function(res) { + console.log('调用失败:', res) + }, + // 调用完成时的回调函数 + complete: function(res) { + console.log('调用完成:', res) + } + }) + + }, getcheckingList() { let that = this; //获取我整改的巡查记录数量 @@ -164,10 +210,10 @@ }, getcheckingInfo() { let that = this; - + let url = this.checkingInfoDetail.inspectStatus == 0 ? 'xmgl/checkingPoint/getTaskDetailPage' : 'xmgl/checkingPointInfo/selectPage'; //获取我整改的巡查记录详情 this.sendRequest({ - url: 'xmgl/checkingPointInfo/selectPage', + url: url, method: 'post', data: { projectSn: this.projectSn, @@ -231,6 +277,24 @@