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