src/components/LayerController/logic/WasteGas.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/LayerController/logic/WasteSolid.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/LayerController/logic/WasteWater.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/LayerController/service/AnimalService.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/components/LayerController/logic/WasteGas.js
@@ -3,7 +3,8 @@ */ const AnimalService = require('../service/AnimalService').default // const AjaxUtils = require('../../../utils/AjaxUtils').default // 公共方法 panTo() 引用 const { setPanTo } = require('../../../utils/utils') // 区分不同类型 使用不同img // const ImgBlue = '/assets/images/map/exhaust/fq_blue.png' // const ImgGray = '/assets/images/map/exhaust/fq_gray.png' @@ -60,8 +61,9 @@ } this.clickListener = async (e) => { console.log(e) // console.log(e) this.animalService.pulseEffect(e.latlng) setPanTo(e.latlng, 200) const title = e.layer.options.test.Name const res = e.layer.options.test window.$layer.open({ @@ -74,7 +76,6 @@ }, title: '天津石化' + title // 标题 }) this.animalService.setPanTo(e.latlng, 150) } // 不同类型图片加载 this.differentTypes = (ContrLevel) => { src/components/LayerController/logic/WasteSolid.js
@@ -5,7 +5,8 @@ // 区分不同类型 使用不同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 // 使用封装方法 @@ -53,6 +54,8 @@ 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({ @@ -65,8 +68,6 @@ }, title: title // 标题 }) /* flyTo()弹出框平移事件 */ this.animalService.setPanTo(e.latlng, 300) } // 不同类型图片封装 src/components/LayerController/logic/WasteWater.js
@@ -1,13 +1,14 @@ /** * 废水 */ // import WasteWater from "../../table/components/WasteWater"; // 公共方法 panTo() 引用 const { setPanTo } = require('../../../utils/utils') const AnimalService = require('../service/AnimalService').default const mapApi = require('../../../api/mapApi').default // 弹窗数据引进 const WasteWaterIndex = require('@components/BaseNav/WasteWater/WasteWaterIndex').default // const publicBounced = require('../../BaseNav/PublicBounced/PublicBounced').default const NormalImg = '/assets/images/map/wastewater/fs_bright_green.png' // 正常 const OffImg = '/assets/images/map/wastewater/fs_gray.png' // 停运 @@ -48,14 +49,13 @@ } } // 分割线------------------------------------------------------------------------------- this.bindTooltip = (layer) => { return '<div class="company-bindTooltip-hover"><h3>天津石化</h3></div>' + layer.options.totransferData.Name } this.clickListener = (e) => { // 点击marker的pulse()光波 this.animalService.pulseEffect(e.latlng) setPanTo(e.latlng, 200) // 弹框标题 const title = e.layer.options.totransferData.Name const res = e.layer.options.totransferData @@ -70,36 +70,6 @@ }, title: '天津石化' + title // 标题 }) this.animalService.setPanTo(e.latlng, 150) } this.requestWasteWaterData = async (e) => { // 基本信息 和 详细信息 展示数据所需参数 // const dataValue = { // StoragePlaceId: e.layer.options.test.StoragePlaceId // } // 弹框标题 // const title = e.layer.options.totransferData.Name // console.log(e.layer.options) // 基本信息 tabs // const resultBasic = await mapApi.getWasteWater(dataValue) // 图表信息展示 echarts // 实时数据 // const resultReal = await mapApi.getDataItems(Value) // 小时数据 及 明细表数据 // const result = await mapApi.getQueryOnlineMonData(dataValue) // 日数据 及 明细表数据 // const result = await mapApi.getQueryOnlineMonData(dataValue) // 人工数据 // const resultEchart = await mapApi.getQueryLabMonData(dataValue) // // 绑定弹框实例 // const PublicBounced = window.Vue.extend(publicBounced) // const instance = new PublicBounced().$mount() // document.body.appendChild(instance.$el) // // document.body.removeChild(instance.$el) // // 通过方法 向绑定弹框传递数据 // instance.setData(title, resultBasic.Result.DataInfo, resultDetailed.Result.DataInfo, 'gufei') /* flyTo()弹出框平移事件 */ } // 根据返回值的不同标记不同图片 src/components/LayerController/service/AnimalService.js
@@ -33,19 +33,6 @@ } }, 1000) } /** * 设置弹窗平移位置 * @param pos * @param value */ setPanTo = (pos, value) => { var position = pos position = this.layer.latLngToLayerPoint(position) position.y += value position = this.layer.layerPointToLatLng(position) this.layer.flyTo(position) } } export default AnimalService