| | |
| | | /** |
| | | * 固废 |
| | | */ |
| | | const WasteSolidIndex = require('@components/BaseNav/WasteSolid/WasteSolidIndex').default |
| | | const WasteSolidIndex = require('../../../components/base-page/WasteSolid/WasteSolidIndex.vue').default |
| | | // 区分不同类型 使用不同img |
| | | const defaultImg = '/assets/images/map/solidwaste/voc.png' |
| | | const setting = '/assets/images/map/solidwaste/gf_green2.png' |
| | | |
| | | // 公共方法 panTo() 引用 |
| | | const { setPanTo } = require('../../../utils/utils') |
| | | // 请求接口数据 |
| | | const mapApi = require('../../../api/mapApi').default |
| | | // 使用封装方法 |
| | |
| | | } |
| | | |
| | | this.bindTooltip = (layer) => { |
| | | // '<div class="company-bindTooltip-hover"><h3>天津石化</h3></div>' + |
| | | return layer.options.totransferData.Name |
| | | } |
| | | |
| | | this.clickListener = (e) => { |
| | | // 点击marker的pulse()光波 |
| | | this.animalService.pulseEffect(e.latlng) |
| | | /* flyTo()弹出框平移事件 */ |
| | | setPanTo(e.latlng, 200) |
| | | // 弹框标题 |
| | | const title = e.layer.options.totransferData.Name |
| | | window.$layer.open({ |
| | | content: { |
| | | content: WasteSolidIndex, // 组件 |
| | | comp: WasteSolidIndex, // 组件 |
| | | parent: this, // 父组件 |
| | | data: { // 传递的参数 |
| | | storagePlaceId: e.layer.options.totransferData.StoragePlaceId |
| | |
| | | }, |
| | | title: title // 标题 |
| | | }) |
| | | /* flyTo()弹出框平移事件 */ |
| | | this.animalService.setPanTo(e.latlng, 300) |
| | | } |
| | | |
| | | // 不同类型图片封装 |