| | |
| | | mode="horizontal" |
| | | :collapse="isCollapse" |
| | | unique-opened |
| | | @open="handleOpen" |
| | | @close="handleClose" |
| | | @select="handleSelect" |
| | | v-show='selectGroup' |
| | | > |
| | |
| | | return { |
| | | menuList: [ |
| | | { |
| | | title: circle, |
| | | alt: '标绘', |
| | | icon: circle, |
| | | label: '标绘', |
| | | index: '1', |
| | | items: [ |
| | | { |
| | | headings: '点标绘' |
| | | index: '1-1', |
| | | label: '点标绘' |
| | | }, |
| | | { |
| | | headings: '线标绘' |
| | | index: '1-2', |
| | | label: '线标绘' |
| | | }, |
| | | { |
| | | headings: '面标绘', |
| | | index: '1-3', |
| | | label: '面标绘', |
| | | items: [ |
| | | { headings: '圆形' }, |
| | | { headings: '多边形' }, |
| | | { headings: '矩形' } |
| | | ] |
| | | } |
| | | ] |
| | | }, |
| | | // { |
| | | // title: square, |
| | | // alt: '标注', |
| | | // items: [ |
| | | // { headings: '点标注' }, |
| | | // { headings: '线标注' }, |
| | | // { headings: '面标注' }, |
| | | // { headings: '文字标注' }, |
| | | // { headings: '图标标注' } |
| | | // ] |
| | | // }, |
| | | // { |
| | | // title: legend, |
| | | // alt: '测量', |
| | | // items: [ |
| | | // { headings: '距离测量' }, |
| | | // { headings: '面积测量' } |
| | | // ] |
| | | // }, |
| | | { |
| | | title: location, |
| | | alt: '切换底图', |
| | | items: [ |
| | | { |
| | | headings: '影像图', |
| | | items: [ |
| | | { headings: '影像標注' } |
| | | ] |
| | | }, |
| | | { |
| | | headings: '矢量图', |
| | | items: [ |
| | | { headings: '矢量標注' } |
| | | ] |
| | | }, |
| | | { |
| | | headings: '地形图', |
| | | items: [ |
| | | { headings: '地形標注' } |
| | | { |
| | | index: '1-3-1', |
| | | label: '圆形' |
| | | }, |
| | | { |
| | | index: '1-3-2', |
| | | label: '多边形' |
| | | }, |
| | | { |
| | | index: '1-3-3', |
| | | label: '矩形' |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | title: polygon, |
| | | alt: '管网', |
| | | icon: location, |
| | | label: '切换底图', |
| | | index: '2', |
| | | items: [ |
| | | { headings: '连通性分析' }, |
| | | { headings: '爆管分析' }, |
| | | { headings: '流向分析' }, |
| | | { headings: '横断面分析' } |
| | | { |
| | | label: '影像图', |
| | | index: '2-1', |
| | | items: [ |
| | | { |
| | | index: '2-1-1', |
| | | label: '影像標注' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: '矢量图', |
| | | index: '2-2', |
| | | items: [ |
| | | { |
| | | index: '2-2-1', |
| | | label: '矢量標注' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: '地形图', |
| | | index: '2-3', |
| | | items: [ |
| | | { |
| | | index: '2-3-1', |
| | | label: '地形標注' |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | title: fullscreen, |
| | | alt: '下载', |
| | | icon: polygon, |
| | | label: '管网', |
| | | index: '3', |
| | | items: [ |
| | | { headings: '全屏' }, |
| | | { headings: 'A4横向' }, |
| | | { headings: 'A4纵向' } |
| | | { |
| | | index: '3-1', |
| | | label: '连通性分析' |
| | | }, |
| | | { |
| | | index: '3-2', |
| | | label: '爆管分析' |
| | | }, |
| | | { |
| | | index: '3-3', |
| | | label: '流向分析' |
| | | }, |
| | | { |
| | | index: '3-4', |
| | | label: '横断面分析' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | icon: fullscreen, |
| | | label: '下载', |
| | | index: '4', |
| | | items: [ |
| | | { |
| | | index: '4-1', |
| | | label: '全屏' |
| | | }, |
| | | { |
| | | index: '4-2', |
| | | label: 'A4横向' |
| | | }, |
| | | { |
| | | index: '4-3', |
| | | label: 'A4纵向' |
| | | } |
| | | ] |
| | | } |
| | | ], |
| | |
| | | }, |
| | | handleClose () { |
| | | }, |
| | | handleSelect (index, indexPath) { |
| | | |
| | | }, |
| | | gitBounced (params) { |
| | | this.bouncedText = params |
| | | }, |
| | | changeSelect () { |
| | | this.selectGroup = !this.selectGroup |
| | | }, |
| | | handleSelects (command) { |
| | | console.log(command) |
| | | switch (command) { |
| | | case '全屏': |
| | | handleSelect (index) { |
| | | console.log(index) |
| | | switch (index) { |
| | | case '4-1': |
| | | // this.map.toggleFullscreen() |
| | | var printer = this.L.easyPrint({ |
| | | sizeModes: ['Current', 'A4Landscape', 'A4Portrait'], |
| | |
| | | Measure.startMeasureArea(this.map, this.L) |
| | | break |
| | | } |
| | | }, |
| | | gitBounced (params) { |
| | | this.bouncedText = params |
| | | }, |
| | | changeSelect () { |
| | | this.selectGroup = !this.selectGroup |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="less"> |
| | | |
| | | .lefttop-toolbox-panel { |
| | | position: absolute; |
| | | left: 15px; |
| | |
| | | line-height: 55px; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-around; |
| | | |
| | | .init-choose { |
| | | background: #305B62; |
| | |
| | | } |
| | | |
| | | .el-menu { |
| | | width: 80%; |
| | | width: 100%; |
| | | background: none; |
| | | z-index: 1; |
| | | border: none; |
| | | background: #305B62; |
| | | border-radius: 50px; |
| | | //margin-left: -30px; |
| | | |
| | | .el-icon-arrow-down:before { |
| | | content: " "; |
| | | } |
| | | |
| | | .el-submenu__title:focus, .el-submenu__title:hover { |
| | | background: none; |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | //} |
| | | |
| | | } |
| | | .el-menu--horizontal { |
| | | .el-menu--popup { |
| | | min-width: 100px; |
| | | .el-menu-item { |
| | | min-width: 50px; |
| | | } |
| | | } |
| | | } |
| | | ul { |
| | | padding-inline-start: 0; |
| | | } |
| | | </style> |