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 @@
-
+