From 4c0157d65a88d17fccdeba464ef0dd450fcf0af3 Mon Sep 17 00:00:00 2001 From: liujun Date: Sat, 10 Aug 2024 15:41:10 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=8C=96=202=E3=80=81=E6=8E=92=E6=B0=B4=E4=BA=95=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../drainage_well/components/list.vue | 106 +++++++++++++----- .../equipment_library/components/list.vue | 1 - .../resource_management/util/getPoint.vue | 2 +- 3 files changed, 77 insertions(+), 32 deletions(-) diff --git a/src/views/emergen_cyrescue/resource_management/drainage_well/components/list.vue b/src/views/emergen_cyrescue/resource_management/drainage_well/components/list.vue index 461b67b..16277ef 100644 --- a/src/views/emergen_cyrescue/resource_management/drainage_well/components/list.vue +++ b/src/views/emergen_cyrescue/resource_management/drainage_well/components/list.vue @@ -48,39 +48,73 @@ - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + +
+
+
+
+ @@ -89,9 +123,10 @@ import Pagination from '@/components/Pagination' import { requestFN } from '@/utils/request' import { Treeselect } from '@riophae/vue-treeselect' import '@riophae/vue-treeselect/dist/vue-treeselect.css' +import getPoint from '../../util/getPoint.vue' export default { - components: { Treeselect, Pagination }, + components: { getPoint, Treeselect, Pagination }, data() { return { listQuery: { @@ -113,7 +148,9 @@ export default { ADDRESS: '', CONTACT_PERSON: '', CONTACT_PHONE: '', - DESCRIPTION: '' + DESCRIPTION: '', + LATITUDE: '', + LONGITUDE: '' }, rules: { NAME: [ @@ -191,7 +228,9 @@ export default { ADDRESS: data.ADDRESS, CONTACT_PERSON: data.CONTACT_PERSON, CONTACT_PHONE: data.CONTACT_PHONE, - DESCRIPTION: data.DESCRIPTION + DESCRIPTION: data.DESCRIPTION, + LONGITUDE: data.LONGITUDE, + LATITUDE: data.LATITUDE } }).catch((e) => { console.error('获取详情数据失败', e) @@ -276,6 +315,13 @@ export default { getQuery() { this.$refs.multipleTable.clearSelection() this.getList() + }, + getPosition(e) { + this.form.LATITUDE = e.LATITUDE + this.form.LONGITUDE = e.LONGITUDE + }, + handleMap() { + this.$refs.getPoint.init({ LATITUDE: this.form.LATITUDE, LONGITUDE: this.form.LONGITUDE }) } } } diff --git a/src/views/emergen_cyrescue/resource_management/equipment_library/components/list.vue b/src/views/emergen_cyrescue/resource_management/equipment_library/components/list.vue index 150fad2..ad04a0b 100644 --- a/src/views/emergen_cyrescue/resource_management/equipment_library/components/list.vue +++ b/src/views/emergen_cyrescue/resource_management/equipment_library/components/list.vue @@ -346,7 +346,6 @@ export default { getPosition(e) { this.form.LATITUDE = e.LATITUDE this.form.LONGITUDE = e.LONGITUDE - console.log(this.form) } } } diff --git a/src/views/emergen_cyrescue/resource_management/util/getPoint.vue b/src/views/emergen_cyrescue/resource_management/util/getPoint.vue index bcc3097..ce4a34e 100644 --- a/src/views/emergen_cyrescue/resource_management/util/getPoint.vue +++ b/src/views/emergen_cyrescue/resource_management/util/getPoint.vue @@ -1,5 +1,5 @@