From 0f5fdd63916ce2e8c10c51e88c04c41145c8cf4c Mon Sep 17 00:00:00 2001 From: copper Date: Tue, 17 Nov 2020 10:08:52 +0800 Subject: [PATCH] =?UTF-8?q?openlayers=E9=9B=86=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/components/Main.vue | 13 +++++------ src/components/map/Index.vue | 38 +++++++++++++++++++++++++++++---- src/components/search/Index.vue | 7 +++++- src/utils/http.js | 16 ++++++++++++++ 5 files changed, 64 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 11b96ef..2119cc3 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "ant-design-vue": "^1.7.0", "axios": "^0.21.0", "core-js": "^3.6.5", + "ol": "^6.4.3", "vue": "^2.6.11", "vue-router": "^3.4.8", "vuex": "^3.5.1" diff --git a/src/components/Main.vue b/src/components/Main.vue index b9598a6..797cc59 100644 --- a/src/components/Main.vue +++ b/src/components/Main.vue @@ -12,7 +12,7 @@ >数据查询 - Option 1 + 详细信息 Option 2 @@ -31,7 +31,7 @@ - + @@ -47,14 +47,15 @@ import Admin from '@/components/admin/Index' export default { components: { 'icon-font':IconFont, - // 'map':MapLayout, - // 'search':Search, + 'map-layout':MapLayout, + 'search':Search, // 'logs':Logs, // 'admin':Admin }, data() { return { - current:['map'] + current:['map'], + currentComp: 'map-layout' }; }, computed: { @@ -64,7 +65,7 @@ export default { }, methods: { handleMenuClick({item, key, keyPath}) { - + this.currentComp = key } } }; diff --git a/src/components/map/Index.vue b/src/components/map/Index.vue index dd7092b..1a212aa 100644 --- a/src/components/map/Index.vue +++ b/src/components/map/Index.vue @@ -1,13 +1,43 @@ \ No newline at end of file diff --git a/src/components/search/Index.vue b/src/components/search/Index.vue index dd7092b..4426412 100644 --- a/src/components/search/Index.vue +++ b/src/components/search/Index.vue @@ -1,5 +1,10 @@