| | |
| | | <div class="base-nav-menu">
|
| | | <template v-for="(item,index) in menuList">
|
| | | <template v-if="item.items && item.items.length">
|
| | | <el-submenu :index="index+''" :key="index">
|
| | | <template slot="title" v-if="item.title">
|
| | | <img :src="item.title" :title="item.alt"/>
|
| | | <el-submenu :index="item.index" :key="index">
|
| | | <template slot="title" v-if="item.icon">
|
| | | <img :src="item.icon" :title="item.label"/>
|
| | | </template>
|
| | | <template slot="title" v-else>{{item.headings}}</template>
|
| | | <template slot="title" v-else>{{item.label}}</template>
|
| | | <base-nav-menu-item v-for="child in item.items" :key="child.title" :menuList='[child]'></base-nav-menu-item>
|
| | | </el-submenu>
|
| | | </template>
|
| | | <template v-else>
|
| | | <el-menu-item :index="index+''" :key="index">
|
| | | {{ item.headings }}
|
| | | <el-menu-item :index="item.index" :key="index">
|
| | | {{ item.label }}
|
| | | </el-menu-item>
|
| | | </template>
|
| | | </template>
|
| | |
| | | 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纵向' |
| | | } |
| | | ] |
| | | } |
| | | ], |