| | |
| | | <template> |
| | | <div class="mobile-map-container"> |
| | | <div id="sceneview"></div> |
| | | |
| | | <mobileCortrolSearch ref="mobileCortrolSearch"> |
| | | <template slot="selectCampusBox"> |
| | | <div class="select-campus-box" v-if="campusData.length > 1"> |
| | | <el-dropdown trigger="click" @command="handleCommand"> |
| | | <span class="el-dropdown-link icons"> |
| | | {{ campusData.find(item => item.dictKey == campusValue).dictValue }} <i |
| | | class="el-icon-caret-bottom"></i> |
| | | </span> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <el-dropdown-item v-for="(item, index) in campusData" :key="index" :command="item"> |
| | | {{ item.dictValue }} |
| | | </el-dropdown-item> |
| | | </el-dropdown-menu> |
| | | </el-dropdown> |
| | | </div> |
| | | </template> |
| | | </mobileCortrolSearch> |
| | | |
| | | <!-- 随地图改变图标弹窗↓ --> |
| | | <div id="mobile-map_popup_content"></div> |
| | | <mobileWindow ref="MobileWindow"></mobileWindow> |
| | |
| | | <mobileCortrol ref="mobileCortrol"></mobileCortrol> |
| | | <mobileCortrolButtom ref="mobileCortrolButtom" :mapCenter="mapCenter" :frislayertHeight="frislayertHeight"> |
| | | </mobileCortrolButtom> |
| | | <mobileCortrolSearch ref="mobileCortrolSearch"></mobileCortrolSearch> |
| | | <!-- 控制↑ --> |
| | | <!-- 控制大弹窗的弹窗 --> |
| | | <!-- v-if="mBigPopupAfter" --> |
| | |
| | | import axios from 'axios' |
| | | import { mapGetters } from 'vuex' |
| | | import { getBuildClock } from '@/api/mobile/buildsClock/buildsClock' // 楼栋详情 |
| | | import { getListarc } from '@/api/mobile/public/arc' |
| | | |
| | | import OlView from "ol/View.js" |
| | | |
| | |
| | | height: 0 |
| | | }, |
| | | map2D: this.$store.state.openlayerData.openlayers.map2D, |
| | | campusData: [], |
| | | campusValue: '' |
| | | } |
| | | }, |
| | |
| | | }) |
| | | } |
| | | } |
| | | }, |
| | | |
| | | created () { |
| | | this.getStreet() |
| | | }, |
| | | |
| | | mounted () { |
| | |
| | | |
| | | setCampusValue (val) { |
| | | this.campusValue = val |
| | | }, |
| | | |
| | | handleCommand (command) { |
| | | this.setCampusValue(command.dictKey) |
| | | }, |
| | | |
| | | getStreet () { |
| | | getListarc().then((res) => { |
| | | this.setCampusValue(res.data.data[0].dictKey) |
| | | this.campusData = res.data.data |
| | | }) |
| | | } |
| | | } |
| | | } |
| | |
| | | /* overflow: hidden; */ |
| | | } |
| | | |
| | | .select-campus-box { |
| | | width: 28%; |
| | | height: 32px; |
| | | line-height: 32px; |
| | | text-align: center; |
| | | background: #f1f1f1; |
| | | border-right: 1px solid #C0C4CC; |
| | | box-sizing: border-box; |
| | | z-index: 299; |
| | | } |
| | | |
| | | .esri-view-surface--inset-outline:focus::after { |
| | | outline: none !important; |
| | | } |