| | |
| | | // 测试环境IP:http://10.238.221.113 |
| | | import axios from '@utils/axios' |
| | | import * as mapUrl from './mapUrl' |
| | | |
| | | /** |
| | | * 该方法配置 |
| | | */ |
| | | export default { |
| | | getUser (data) { |
| | | return axios.get(mapUrl.GetUser, data) |
| | | }, |
| | | getWasteWater (data) { |
| | | return axios.get(mapUrl.GetWasteWater, data) |
| | | } |
| | | } |
| | |
| | | import { $HOST } from './host' |
| | | |
| | | export const GetUser = $HOST + '/user/getUser' |
| | | |
| | | export const GetWasteWater = $HOST + '/wasteWater/getWasteWater' |
New file |
| | |
| | | /** |
| | | * 废水 |
| | | */ |
| | | const AnimalService = require('../service/AnimalService').default |
| | | const AjaxUtils = require('../../../utils/AjaxUtils').default |
| | | |
| | | // const getWasteWater = require('../../../utils/axios').default |
| | | |
| | | module.exports = function () { |
| | | /** |
| | | * 返回marker对象数组 |
| | | * @param L leaflet对象 |
| | | */ |
| | | this.init = (layer, L) => { |
| | | this.animalService = new AnimalService({ L: L, layer: layer }) |
| | | AjaxUtils.get4JsonDataByUrl('http://10.246.162.140:8080/EPInterface/DataService/EPMapService.asmx/ObtainningConInfo', { |
| | | companyId: 3900100145, |
| | | id: '', |
| | | monType: 1, |
| | | userCode: 'wenchun.deng', |
| | | monDuration: '', |
| | | epName: '', |
| | | secdDeptId: '', |
| | | contrLevel: '', |
| | | dataStatus: '', |
| | | dataFlag: '', |
| | | runStatus: '', |
| | | emissTypeId: '' |
| | | }, function (res) { |
| | | console.log(res) |
| | | const data = res.data.Result.DataInfo |
| | | for (let i = 0; i < data.length; i++) { |
| | | // 经纬度 位置 |
| | | const positionX = data[i].Latitude |
| | | const positionY = data[i].Longitude |
| | | layer.addLayer(L.marker([positionX, positionY], {})) |
| | | } |
| | | }) |
| | | } |
| | | |
| | | this.bindTooltip = (layer) => { |
| | | return 'aaaa' |
| | | } |
| | | |
| | | this.clickListener = (e) => { |
| | | console.log(e) |
| | | this.animalService.pulseEffect(e.latlng) |
| | | } |
| | | } |
| | |
| | | fsqy: 'Sample.js', |
| | | fspfk: 'Sample.js', |
| | | fsjcd: 'Sample.js', |
| | | wasteGasJcd: 'WasteGas.js' |
| | | wasteGasJcd: 'WasteGas.js', |
| | | wasteWaterJcd: 'WasteWater.js' |
| | | } |
| | | |
| | | export const props = { |
| | |
| | | * @type {string} |
| | | */ |
| | | export const LayerWasteWater = { |
| | | code: 'pipeline', |
| | | code: 'wasteWater', |
| | | name: '废水', |
| | | checked: true, |
| | | layers: [ |
| | |
| | | minZoom: 10 // 在指定级别显示 |
| | | }, |
| | | { |
| | | code: 'fsjcd', |
| | | code: 'wasteWaterJcd', |
| | | name: '监测点', |
| | | sname: '监测点', |
| | | checked: true, // 默认选中状态 |
| | |
| | | <enterprise></enterprise> |
| | | <!-- <el-button id="map-btn" el-icon-c-scale-to-original icon="el-icon-c-scale-to-original" circle @click="isShowHidden"></el-button>--> |
| | | <el-button type="primary" @click="ChangeState" class="solid-waste">固废</el-button> |
| | | <el-button type="primary" @click="ChangeWaterState" class="Waste-water">废水</el-button> |
| | | <!-- <el-button type="primary" @click="ChangeWaterState" class="Waste-water">废水</el-button>--> |
| | | <el-button type="primary" @click="AddGasHelper" class="flue-gas">废气</el-button> |
| | | <PublicBounced ref="PublicBounced"></PublicBounced> |
| | | </div> |
| | |
| | | import Enterprise from '../components/table/enterprise' |
| | | // 底图业务js逻辑 |
| | | import AddSolidWasteHelper from '@components/BaseNav/SolidWaste/SolidWaste' |
| | | import AddWasteWaterHelper from '@components/BaseNav/WasteWater/WasteWater' |
| | | // import AddWasteWaterHelper from '@components/BaseNav/WasteWater/WasteWater' |
| | | import AddGasHelper from '@components/BaseNav/flueGas/flueGas' |
| | | // // 公共展示数据 |
| | | import PublicBounced from '@components/BaseNav/PublicBounced/PublicBounced' |
| | |
| | | AddSolidWaste.requestData(data) |
| | | AddSolidWaste.SetSolidWasteContent(this.config, this.$refs.PublicBounced) |
| | | }, |
| | | ChangeWaterState () { |
| | | const data = { |
| | | companyId: 3900100145, |
| | | id: '', |
| | | monType: 1, |
| | | userCode: 'wenchun.deng', |
| | | monDuration: '', |
| | | epName: '', |
| | | secdDeptId: '', |
| | | contrLevel: '', |
| | | dataStatus: '', |
| | | dataFlag: '', |
| | | runStatus: '', |
| | | emissTypeId: '' |
| | | } |
| | | const AddWasteWater = new AddWasteWaterHelper({ map: this.map }) |
| | | AddWasteWater.requestData(data) |
| | | AddWasteWater.SetWasteWaterContent(this.config, this.$refs.PublicBounced) |
| | | }, |
| | | // ChangeWaterState () { |
| | | // const data = { |
| | | // companyId: 3900100145, |
| | | // id: '', |
| | | // monType: 1, |
| | | // userCode: 'wenchun.deng', |
| | | // monDuration: '', |
| | | // epName: '', |
| | | // secdDeptId: '', |
| | | // contrLevel: '', |
| | | // dataStatus: '', |
| | | // dataFlag: '', |
| | | // runStatus: '', |
| | | // emissTypeId: '' |
| | | // } |
| | | // const AddWasteWater = new AddWasteWaterHelper({ map: this.map }) |
| | | // AddWasteWater.requestData(data) |
| | | // AddWasteWater.SetWasteWaterContent(this.config, this.$refs.PublicBounced) |
| | | // }, |
| | | saveMapStatus () { |
| | | window.serviceLayerHelper = this.serviceLayerHelper |
| | | this.$store.commit('setMapObj', this.map) |