|
@@ -92,13 +92,15 @@
|
|
|
import supermap from '@/components/supermap' //超图
|
|
|
import vheader from '@/components/v-header.vue' //一体化共用头部
|
|
|
import vBottomMenu from '@/components/vBottomMenu.vue' //一体化公共底部菜单
|
|
|
+ import eventLocation from '@/components/eventLocation.vue' //事件定位弹窗
|
|
|
|
|
|
let echarts = require('echarts')
|
|
|
export default {
|
|
|
components: {
|
|
|
supermap,
|
|
|
vheader,
|
|
|
- vBottomMenu
|
|
|
+ vBottomMenu,
|
|
|
+ eventLocation
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -152,10 +154,39 @@
|
|
|
markersList:[],//点位列表
|
|
|
}
|
|
|
},
|
|
|
+ created() {
|
|
|
+ /** ----------------------------------底部按钮公用组件开始------------------------------------- */
|
|
|
+ window.showDialog=this.showDialog
|
|
|
+ window.choseLayerSwitching=this.choseLayerSwitching
|
|
|
+ /** ----------------------------------底部按钮公用组件结束------------------------------------- */
|
|
|
+ },
|
|
|
mounted() {
|
|
|
this.getInit()
|
|
|
},
|
|
|
methods: {
|
|
|
+ /** ----------------------------------底部按钮公用组件开始------------------------------------- */
|
|
|
+ showDialog(click) {
|
|
|
+ if (click == "eventLocation") {
|
|
|
+ this.$refs.eventLocation.showEventLocation()
|
|
|
+ } else if (click == "editableLayers") {
|
|
|
+ if (!this.$refs.supermap.isEditableLayers) {
|
|
|
+ this.$refs.supermap.isEditableLayers = true
|
|
|
+ } else {
|
|
|
+ this.$refs.supermap.isEditableLayers = false
|
|
|
+ }
|
|
|
+ } else if (click == "layerSwitching") {
|
|
|
+ if (!this.$refs.bottomMenu.showChild) {
|
|
|
+ this.$refs.bottomMenu.showChild = true
|
|
|
+ } else {
|
|
|
+ this.$refs.bottomMenu.showChild = false
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //选择图层
|
|
|
+ choseLayerSwitching(url) {
|
|
|
+ this.$refs.supermap.layerSwitching(url, true);
|
|
|
+ },
|
|
|
+ /** ----------------------------------底部按钮公用组件结束------------------------------------- */
|
|
|
dropLocation(lat,lng) {
|
|
|
this.$refs.supermap.dropLocation(lat,lng)
|
|
|
},
|