New file |
| | |
| | | <template> |
| | | <div class="lefttop-toolbox-panel"> |
| | | <ul> |
| | | <li v-for="(item,i) in imgList" :key="i" @click="toggleActive(i)" :value="total" |
| | | :class="{'active':activeTools[i]}"> |
| | | <img :src="item"/> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import circle from '@/assets/images/map-pages/icon/toolbox/circle.png' |
| | | import fullscreen from '@/assets/images/map-pages/icon/toolbox/fullscreen.png' |
| | | import legend from '@/assets/images/map-pages/icon/toolbox/legend.png' |
| | | import location from '@/assets/images/map-pages/icon/toolbox/location.png' |
| | | import polygon from '@/assets/images/map-pages/icon/toolbox/polygon.png' |
| | | import square from '@/assets/images/map-pages/icon/toolbox/square.png' |
| | | |
| | | export default { |
| | | name: 'ToolBoxPanel', |
| | | components: {}, |
| | | data () { |
| | | return { |
| | | isPanelVisible: false, |
| | | total: 0, |
| | | activeTools: {}, |
| | | imgList: { |
| | | circle: circle, |
| | | square: square, |
| | | fullscreen: fullscreen, |
| | | legend: legend, |
| | | location: location, |
| | | polygon: polygon |
| | | }, |
| | | form: { |
| | | regionType: '', |
| | | enterprise: '' |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | handleClose (done) { |
| | | console.log(done) |
| | | }, |
| | | handleClick (tab, event) { |
| | | console.log(tab, event) |
| | | }, |
| | | toggleActive (k) { |
| | | this.total++ |
| | | this.activeTools[k] = !this.activeTools[k] |
| | | }, |
| | | loadData () { |
| | | |
| | | } |
| | | }, |
| | | mounted () { |
| | | this.loadData() |
| | | }, |
| | | created () { |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="less"> |
| | | .lefttop-toolbox-panel { |
| | | position: absolute; |
| | | left: 5px; |
| | | top: 5px; |
| | | z-index: 1000; |
| | | width: 180px; |
| | | height: 35px; |
| | | line-height: 30px; |
| | | background: #07325b; |
| | | border: 1px solid #5EF2FF; |
| | | border-radius: 3px; |
| | | text-align: center; |
| | | |
| | | ul { |
| | | list-style: none; |
| | | margin: 0; |
| | | padding: 5px; |
| | | |
| | | li { |
| | | float: left; |
| | | width: 23px; |
| | | height: 23px; |
| | | margin: 0 1px; |
| | | border: 1px solid #07325b; |
| | | } |
| | | } |
| | | |
| | | .active { |
| | | border: 1px solid #5EF2FF; |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <div class="full-screen"> |
| | | <div id="map" ref="rootmap"></div> |
| | | <sgis-layer-controller :preset="'warningPreset'"> |
| | | <lc-basemap></lc-basemap> |
| | | <!-- <div class="barline"></div>--> |
| | | <lc-service-layer class="barline"></lc-service-layer> |
| | | </sgis-layer-controller> |
| | | <lc-service-layer-filter v-show="showServiceLayerFilter" ref="serviceLayerFilter"></lc-service-layer-filter> |
| | | <monitor-panel></monitor-panel> |
| | | <top-enterprise-panel></top-enterprise-panel> |
| | | <div id="map" ref="rootmap"></div> |
| | | <sgis-layer-controller :preset="'warningPreset'"> |
| | | <lc-basemap></lc-basemap> |
| | | <!-- <div class="barline"></div>--> |
| | | <lc-service-layer class="barline"></lc-service-layer> |
| | | </sgis-layer-controller> |
| | | <lc-service-layer-filter v-show="showServiceLayerFilter" ref="serviceLayerFilter"></lc-service-layer-filter> |
| | | <monitor-panel></monitor-panel> |
| | | <top-enterprise-panel></top-enterprise-panel> |
| | | <tool-box-panel></tool-box-panel> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import LcServiceLayerFilter from '@components/LayerController/modules/LcServiceLayerFilter' |
| | | import MonitorPanel from '@components/panel/MonitorPanel' |
| | | import TopEnterprisePanel from '@components/panel/TopEnterprisePanel' |
| | | import ToolBoxPanel from '@components/panel/ToolBoxPanel' |
| | | |
| | | export default { |
| | | name: 'MapTemplate', |
| | | components: { TopEnterprisePanel, SgisLayerController, MonitorPanel, LcBasemap, LcServiceLayer, LcServiceLayerFilter }, |
| | | components: { |
| | | ToolBoxPanel, |
| | | TopEnterprisePanel, |
| | | SgisLayerController, |
| | | MonitorPanel, |
| | | LcBasemap, |
| | | LcServiceLayer, |
| | | LcServiceLayerFilter |
| | | }, |
| | | data () { |
| | | return { |
| | | basemapHelper: {}, |
| | |
| | | |
| | | <style lang="less"> |
| | | |
| | | .full-screen{ |
| | | width: 100%; |
| | | height: 100%; |
| | | margin: 0; |
| | | padding: 0; |
| | | position: absolute; |
| | | #map{ |
| | | .full-screen { |
| | | width: 100%; |
| | | height: 100%; |
| | | margin: 0; |
| | | padding: 0; |
| | | position: absolute; |
| | | |
| | | #map { |
| | | height: 100%; |
| | | width: 100%; |
| | | } |
| | | .barline{ |
| | | |
| | | .barline { |
| | | //width: 100%; |
| | | //height: 1px; |
| | | //background-color: #0661AE; |
| | | border-top: 1px solid #0661AE; |
| | | border-top: 1px solid #0661AE; |
| | | } |
| | | } |
| | | </style>> |