From 1eae5c06afd835712b6805be8ccef8dd598f7986 Mon Sep 17 00:00:00 2001 From: fangjiakai <450850793@qq.com> Date: Wed, 11 Jun 2025 10:59:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(tailings=5Freservoir):=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=B0=BE=E7=9F=BF=E5=BA=93=E8=AE=BE=E8=AE=A1=E5=BA=93=E5=AE=B9?= =?UTF-8?q?=E3=80=81=E7=8E=B0=E7=8A=B6=E5=BA=93=E5=AE=B9=E5=92=8C=E7=BB=8F?= =?UTF-8?q?=E7=BA=AC=E5=BA=A6=E5=AE=9A=E4=BD=8D=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在尾矿库添加表单中增加设计库容和现状库容字段 - 添加经度和纬度输入框及点击定位按钮 - 实现点击定位功能,弹出地图组件进行经纬度选择 - 在尾矿库列表中添加经纬度字段 --- .../tailings_reservoir/components/add.vue | 68 +++++++++++++++++++ src/views/tailings_reservoir/index.vue | 6 +- 2 files changed, 70 insertions(+), 4 deletions(-) diff --git a/src/views/tailings_reservoir/components/add.vue b/src/views/tailings_reservoir/components/add.vue index 65fff07..e3bfaef 100644 --- a/src/views/tailings_reservoir/components/add.vue +++ b/src/views/tailings_reservoir/components/add.vue @@ -140,6 +140,31 @@ /> + + + + + + + + + + + + + + + + + + + + + + + + + 点击定位 + + + + @@ -231,6 +276,13 @@ 取 消 确 定 + + @@ -246,6 +298,7 @@ import { setTailingsReservoirAdd, setTailingsReservoirUpdate, } from "@/request/kangzai.js"; +import AppMap from "@/components/map/map.vue"; const props = defineProps({ visible: { @@ -383,6 +436,21 @@ const data = reactive({ }, }); +const mapDialog = ref({ + visible: false, + longitude: "", + latitude: "", +}); +const fnSelectedPosition = ({ longitude, latitude }) => { + mapDialog.value.visible = true; + mapDialog.value.longitude = longitude; + mapDialog.value.latitude = latitude; +}; +const fnMapSubmit = ({ longitude, latitude }) => { + form.value.longitude = longitude; + form.value.latitude = latitude; +}; + const fnClose = () => { visible.value = false; }; diff --git a/src/views/tailings_reservoir/index.vue b/src/views/tailings_reservoir/index.vue index 894f88b..69ad05f 100644 --- a/src/views/tailings_reservoir/index.vue +++ b/src/views/tailings_reservoir/index.vue @@ -179,10 +179,8 @@ const data = reactive({ corpPrincipalName: "", corpPrincipalPost: "", corpPrincipalPhone: "", - creator: "", - createTime: "", - operator: "", - operatTime: "", + longitude: "", + latitude: "", }, }, });