66528e44 by unknown

'init'

1 parent 6f1fc9b6
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 * @Author: jiangbotao 2 * @Author: jiangbotao
3 * @Date: 2019-12-03 22:31:08 3 * @Date: 2019-12-03 22:31:08
4 * @LastEditors: jiangbotao 4 * @LastEditors: jiangbotao
5 * @LastEditTime: 2019-12-14 12:28:02 5 * @LastEditTime: 2019-12-14 12:41:30
6 * @FilePath: \superglobevue\src\App.vue 6 * @FilePath: \superglobevue\src\App.vue
7 --> 7 -->
8 <template> 8 <template>
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
18 </a-menu> 18 </a-menu>
19 </a-layout-header> 19 </a-layout-header>
20 <a-layout> 20 <a-layout>
21 <a-layout-sider width="200" style="background: #fff"> 21 <a-layout-sider collapsible v-model="collapsed" style="background-color:white;">
22 <MyMenu></MyMenu> 22 <MyMenu></MyMenu>
23 </a-layout-sider> 23 </a-layout-sider>
24 <a-layout style="padding: 10px 10px 10px 10px"> 24 <a-layout style="padding: 10px 10px 10px 10px">
...@@ -39,7 +39,7 @@ export default { ...@@ -39,7 +39,7 @@ export default {
39 name: 'App', 39 name: 'App',
40 data() { 40 data() {
41 return { 41 return {
42 collapsed: false, 42 collapsed: true,
43 }; 43 };
44 }, 44 },
45 components:{ 45 components:{
...@@ -48,7 +48,7 @@ export default { ...@@ -48,7 +48,7 @@ export default {
48 } 48 }
49 </script> 49 </script>
50 50
51 <style lang="scss"> 51 <style scoped>
52 .ant-layout-header { 52 .ant-layout-header {
53 height: 64px; 53 height: 64px;
54 padding: 0 25px; 54 padding: 0 25px;
...@@ -68,6 +68,26 @@ export default { ...@@ -68,6 +68,26 @@ export default {
68 margin: 16px 28px 16px 0; 68 margin: 16px 28px 16px 0;
69 float: left; 69 float: left;
70 } 70 }
71 .ant-layout-sider {
72 position: relative;
73 min-width: 0;
74 background:white;
75 -webkit-transition: all 0.2s;
76 transition: all 0.2s;
77 }
78 .ant-layout-sider-trigger {
79 position: fixed;
80 bottom: 0;
81 z-index: 1;
82 height: 48px;
83 color: #b73c3c;
84 line-height: 48px;
85 text-align: center;
86 background: #ffffff;
87 cursor: pointer;
88 -webkit-transition: all 0.2s;
89 transition: all 0.2s;
90 }
71 #app{ 91 #app{
72 height: 100%; 92 height: 100%;
73 } 93 }
......
...@@ -2,24 +2,24 @@ ...@@ -2,24 +2,24 @@
2 * @Author: jiangbotao 2 * @Author: jiangbotao
3 * @Date: 2019-12-14 12:19:33 3 * @Date: 2019-12-14 12:19:33
4 * @LastEditors: jiangbotao 4 * @LastEditors: jiangbotao
5 * @LastEditTime: 2019-12-14 12:25:10 5 * @LastEditTime: 2019-12-14 12:35:59
6 * @FilePath: \superglobevue\src\components\menu\MyMenu.vue 6 * @FilePath: \superglobevue\src\components\menu\MyMenu.vue
7 --> 7 -->
8 <template> 8 <template>
9 <a-menu 9 <a-menu theme="light" :defaultSelectedKeys="['1']" mode="inline">
10 mode="inline" 10 <a-menu-item key="1">
11 :defaultSelectedKeys="['1']" 11 <span class="fa fa-map fa-lg"/>
12 :defaultOpenKeys="['sub1']" 12 <router-link :to="'/'"><span>默认信息</span></router-link>
13 :style="{ height: '100%', borderRight: 0 }"> 13 </a-menu-item>
14 <a-sub-menu key="sub1"> 14 <a-sub-menu key="sub1">
15 <span slot="title"><a-icon type="user" />3D展示</span> 15 <span slot="title"><a-icon type="user" /><span>3D展示</span></span>
16 <a-menu-item key="1_1"><router-link :to="'/'">建筑物白模</router-link></a-menu-item> 16 <a-menu-item key="1_1"><router-link :to="'/'">建筑物白模</router-link></a-menu-item>
17 <a-menu-item key="1_2"><router-link :to="'/tdt'">天地图</router-link></a-menu-item> 17 <a-menu-item key="1_2"><router-link :to="'/tdt'">天地图</router-link></a-menu-item>
18 <a-menu-item key="1_3"><router-link :to="'/changeview'">固定视图</router-link></a-menu-item> 18 <a-menu-item key="1_3"><router-link :to="'/changeview'">固定视图</router-link></a-menu-item>
19 <a-menu-item key="1_4"><router-link :to="'/split'">多视图展示</router-link></a-menu-item> 19 <a-menu-item key="1_4"><router-link :to="'/split'">多视图展示</router-link></a-menu-item>
20 </a-sub-menu> 20 </a-sub-menu>
21 <a-sub-menu key="sub2"> 21 <a-sub-menu key="sub2">
22 <span slot="title"><a-icon type="laptop" />倾斜摄影</span> 22 <span slot="title"><a-icon type="team" /><span>倾斜摄影数据</span></span>
23 <a-menu-item key="2_1"><router-link :to="'/ms3m'">多模型图层</router-link></a-menu-item> 23 <a-menu-item key="2_1"><router-link :to="'/ms3m'">多模型图层</router-link></a-menu-item>
24 <a-menu-item key="2_2"><router-link :to="'/s3m'">倾斜摄影数据</router-link></a-menu-item> 24 <a-menu-item key="2_2"><router-link :to="'/s3m'">倾斜摄影数据</router-link></a-menu-item>
25 <a-menu-item key="2_3"><router-link :to="'/s3m_single_box'">单体化查询1</router-link></a-menu-item> 25 <a-menu-item key="2_3"><router-link :to="'/s3m_single_box'">单体化查询1</router-link></a-menu-item>
...@@ -27,12 +27,12 @@ ...@@ -27,12 +27,12 @@
27 <a-menu-item key="2_5"><router-link :to="'/hyp'">大场景图层淹没</router-link></a-menu-item> 27 <a-menu-item key="2_5"><router-link :to="'/hyp'">大场景图层淹没</router-link></a-menu-item>
28 </a-sub-menu> 28 </a-sub-menu>
29 <a-sub-menu key="sub3"> 29 <a-sub-menu key="sub3">
30 <span slot="title"><a-icon type="notification" />空间分析与查询</span> 30 <span slot="title"><a-icon type="compass" /><span>空间分析</span></span>
31 <a-menu-item key="9"><router-link :to="'/fire'">火灾分析</router-link></a-menu-item> 31 <a-menu-item key="3_1"><router-link :to="'/fire'">火灾分析</router-link></a-menu-item>
32 <a-menu-item key="10"><router-link :to="'/underground'">地面开挖</router-link></a-menu-item> 32 <a-menu-item key="3_2"><router-link :to="'/underground'">地面开挖</router-link></a-menu-item>
33 <a-menu-item key="11"><router-link :to="'/ymo'">地形淹没分析</router-link></a-menu-item> 33 <a-menu-item key="3_3"><router-link :to="'/ymo'">地形淹没分析</router-link></a-menu-item>
34 <a-menu-item key="12"><router-link :to="'/spatial1'">空间点查询</router-link></a-menu-item> 34 <a-menu-item key="3_4"><router-link :to="'/spatial1'">空间点查询</router-link></a-menu-item>
35 <a-menu-item key="13"><router-link :to="'/spatial2'">空间面查询</router-link></a-menu-item> 35 <a-menu-item key="3_5"><router-link :to="'/spatial2'">空间面查询</router-link></a-menu-item>
36 </a-sub-menu> 36 </a-sub-menu>
37 </a-menu> 37 </a-menu>
38 </template> 38 </template>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 * @Author: jiangbotao 2 * @Author: jiangbotao
3 * @Date: 2019-12-03 22:31:08 3 * @Date: 2019-12-03 22:31:08
4 * @LastEditors: jiangbotao 4 * @LastEditors: jiangbotao
5 * @LastEditTime: 2019-12-14 12:28:56 5 * @LastEditTime: 2019-12-14 12:45:34
6 * @FilePath: \superglobevue\src\main.js 6 * @FilePath: \superglobevue\src\main.js
7 */ 7 */
8 import Vue from 'vue' 8 import Vue from 'vue'
......