Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop
Conflicts:
src/api/mapApi.js
src/api/mapUrl.js
src/components/LayerController/logic/SolidWaste.js
src/views/MapTemplate.vue
| | |
| | | getWasteWater (data) { |
| | | return axios.get(mapUrl.getWasteWater, data) |
| | | }, |
| | | getSolidWasteBaseInfo (data) { |
| | | return axios.get(mapUrl.getSolidWasteBaseInfo, data) |
| | | }, |
| | | GetWasteGas (data) { |
| | | return axios.get(mapUrl.GetWasteGas, data) |
| | | } |
| | |
| | | export const getSolidWaste = $HOST + '/wasteSolid/getSolidWaste' |
| | | |
| | | export const getWasteWater = $HOST + '/wasteWater/getWasteWater' |
| | | |
| | | export const getSolidWasteBaseInfo = $HOST + '/wasteSolid/getSolidWasteBaseInfo' |
| | |
| | | import Qs from 'qs' |
| | | |
| | | export const QueryStoragePlaceListByCompanyAndName = (data = {}) => { |
| | | return $http.post('/EPInterface/DataService/EPMapService.asmx/QueryStoragePlaceListByCompanyAndName', Qs.stringify(data), { |
| | | return $http.post('http://10.246.162.140:8080/EPInterface/DataService/EPMapService.asmx/QueryStoragePlaceListByCompanyAndName', Qs.stringify(data), { |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | | } |
| | | }) |
| | | } |
| | | // export const QueryStoragePlaceListByCompanyAndName = (data = {}) => { |
| | | // return $http.get('http://xearth.cn:3000/wasteSolid/getSolidWaste', Qs.stringify(data), { |
| | | // headers: { |
| | | // 'Content-Type': 'application/json' |
| | | // } |
| | | // }) |
| | | // } |
| | | export const FlueGas = (data = {}) => { |
| | | return $http.post('/EPInterface/DataService/EPMapService.asmx/ObtainningConInfo', Qs.stringify(data), { |
| | | headers: { |
| | |
| | | <template> |
| | | <div class="public-bounced" v-draw v-show="flag"> |
| | | <div class="public-bounced" v-if="flag"> |
| | | <div class="public-bounced-title"> |
| | | <span>{{ displayContent.Name }}</span> |
| | | <i class="el-icon-circle-close" @click="closePopup"></i> |
| | |
| | | <div class="public-bounced-content"> |
| | | <div class="public-bounced-content-left"> |
| | | <GasTab :displayContent="displayContent"></GasTab> |
| | | <!-- <PublicTable v-if="value === 'gufei'" :requestSolidWasteData="displayContent.StoragePlaceId"></PublicTable>--> |
| | | <PublicTable></PublicTable> |
| | | <!-- <GasECharts v-else></GasECharts>--> |
| | | <PublicTable v-if="value === 'gufei'" :requestSolidWasteData="displayContent.StoragePlaceId"></PublicTable> |
| | | <GasECharts v-else></GasECharts> |
| | | <!-- <PublicTable></PublicTable>--> |
| | | <!-- <GasECharts></GasECharts>--> |
| | | </div> |
| | | <div class="public-bounced-content-right"> |
| | | <GasVideo></GasVideo> |
| | |
| | | import '@/components/BaseNav/SolidWaste/directive/dir' |
| | | import GasTab from '@components/BaseNav/PublicBounced/GasComponents/GasTab' |
| | | import PublicTable from '@components/BaseNav/PublicBounced/GasComponents/PublicTable' |
| | | // import GasECharts from '@components/BaseNav/PublicBounced/GasComponents/GasECharts' |
| | | import GasECharts from '@components/BaseNav/PublicBounced/GasComponents/GasECharts' |
| | | import GasVideo from '@components/BaseNav/PublicBounced/GasComponents/GasVideo' |
| | | |
| | | export default { |
| | |
| | | components: { |
| | | GasTab, |
| | | PublicTable, |
| | | // GasECharts, |
| | | GasECharts, |
| | | GasVideo |
| | | }, |
| | | data () { |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | setData (data) { |
| | | setData (data, value) { |
| | | console.log(data) |
| | | console.log(value) |
| | | this.displayContent = data |
| | | this.flag = true |
| | | // this.value = value |
| | | this.value = value |
| | | console.log(this.flag) |
| | | }, |
| | | // setData (data) { |
| | | // this.displayContent = data |
| | | // this.flag = true |
| | | // // this.value = value |
| | | // }, |
| | | closePopup () { |
| | | this.flag = false |
| | | } |
| | |
| | | import { QueryStoragePlaceListByCompanyAndName } from '@/api/request' |
| | | // 展示图片 |
| | | import defaultImg from '@assets/images/map-pages/basenav/solidwaste/voc.png' |
| | | import Setting from '@assets/images/map-pages/basenav/solidwaste/gf_green.png' |
| | | |
| | | import defaultImg from '../../../../public/assets/images/map/solidwaste/voc.png' |
| | | import setting from '../../../../public/assets/images/map/solidwaste/gf_green.png' |
| | | |
| | | // 底图业务展示点 |
| | | class AddSolidWasteHelper { |
| | |
| | | marker.on('click', (e) => { |
| | | try { |
| | | // console.log(e) |
| | | // console.log(this.map.getCenter()) |
| | | // console.log(this.map.setCenter([e.target.getLatLng().lat, e.target.getLatLng().lng])) |
| | | // this.map.flyTo([e.target.getLatLng().lat, e.target.getLatLng().lng]) |
| | | // this.map.panTo([e.target.getLatLng().lat, e.target.getLatLng().lng], 100) |
| | | this.setPanTo(e.target.getLatLng(), 250) |
| | | this.setPanTo(e.target.getLatLng(), 200) |
| | | this.EffectOfPulse(e.target.getLatLng()) |
| | | // this.SolidWastePopup.setData(data[i], 'gufei') |
| | | this.SolidWastePopup.setData(data[i], 'gufei') |
| | | return this.SolidWastePopup.$el |
| | | } catch (error) { |
| | | console.log(error) |
| | |
| | | EffectOfChange = defaultImg |
| | | this.EffectOfPulse(position, this.solidWasteMarkersLabels, this.SolidWasteLayerGroup) |
| | | } else { |
| | | EffectOfChange = Setting |
| | | EffectOfChange = setting |
| | | } |
| | | return EffectOfChange |
| | | } |
| | |
| | | const defaultImg = '/assets/images/map/solidwaste/voc.png' |
| | | const setting = '/assets/images/map/solidwaste/gf_green.png' |
| | | |
| | | // 请求接口数据 |
| | | const mapApi = require('../../../api/mapApi').default |
| | | // 使用封装方法 |
| | | const AnimalService = require('../service/AnimalService').default |
| | | |
| | | const publicBounced = require('../../BaseNav/PublicBounced/PublicBounced').default |
| | | |
| | | module.exports = function () { |
| | | /** |
| | |
| | | L: L, |
| | | layer: layer |
| | | }) |
| | | const res = await mapApi.getSolidWaste() |
| | | console.log(res) |
| | | const data = res.Result.DataInfo || {} |
| | | for (let i = 0; i < data.length; i++) { |
| | | const result = await mapApi.getSolidWaste() |
| | | const getSolidWasteData = result.Result.DataInfo || {} |
| | | // 循环遍历数据 根据进行marker 的创建 |
| | | for (let i = 0; i < getSolidWasteData.length; i++) { |
| | | // 经纬度 位置 |
| | | const positionX = data[i].Latitude |
| | | const positionY = data[i].Longitude |
| | | const positionX = getSolidWasteData[i].Latitude |
| | | const positionY = getSolidWasteData[i].Longitude |
| | | |
| | | // 定义类型 用来区分数据的不同 |
| | | const judgeValue = data[i].StorageQty |
| | | // 定义类型 用来区分数据的不同 1.接口接口数据来进行数据的判断 2.根据数据类型的不同,进行不同类型的图片显示 |
| | | const judgeValue = getSolidWasteData[i].StorageQty |
| | | var iconUrl = this.differentTypes(judgeValue) |
| | | |
| | | const marker = L.marker.magic([positionX, positionY], { |
| | | const marker = L.marker([positionX, positionY], { |
| | | test: getSolidWasteData[i], |
| | | icon: L.icon({ |
| | | iconUrl: iconUrl, |
| | | iconSize: [50, 50], |
| | |
| | | } |
| | | |
| | | this.bindTooltip = (layer) => { |
| | | return '测试固废' |
| | | return layer.options.test.Name |
| | | } |
| | | |
| | | this.clickListener = (e) => { |
| | | this.clickListener = async (e) => { |
| | | this.animalService.pulseEffect(e.latlng) |
| | | console.log(e) |
| | | return this.PublicBounced.$el |
| | | const dataValue = { |
| | | StoragePlaceId: e.layer.options.test.StoragePlaceId |
| | | } |
| | | const result = await mapApi.getSolidWasteBaseInfo(dataValue) |
| | | // console.log(result) |
| | | const PublicBounced = window.Vue.extend(publicBounced) |
| | | const instance = new PublicBounced() |
| | | instance.setData(result, 'gufei') |
| | | } |
| | | |
| | | // 不同类型图片封装 |
| | |
| | | } |
| | | return effectOfChange |
| | | } |
| | | // 固废点击进行的 内容的设置 |
| | | // SetSolidWasteContent (config, containerPopup) { |
| | | // this.SolidWastePopup = containerPopup |
| | | // } |
| | | } |
| | |
| | | minZoom: 3, |
| | | maxZoom: 18, |
| | | // center: [26, 104], |
| | | // center: [38.828558921813965, 117.41676807403564], |
| | | center: [29.769515991210938, 107.03567504882812], |
| | | center: [38.828558921813965, 117.41676807403564], |
| | | // center: [29.454345703125, 113.40362548828125], |
| | | zoom: 14, |
| | | worldCopyJump: true, |
| | | inertia: true, |
| | |
| | | import LegendPanel from '@components/panel/LegendPanel' |
| | | import Enterprise from '../components/table/enterprise' |
| | | // 底图业务js逻辑 |
| | | // import AddWasteWaterHelper from '@components/BaseNav/WasteWater/WasteWater' |
| | | // import AddGasHelper from '@components/BaseNav/flueGas/flueGas' |
| | | import AddSolidWasteHelper from '@components/BaseNav/SolidWaste/SolidWaste' |
| | | import AddWasteWaterHelper from '@components/BaseNav/WasteWater/WasteWater' |
| | | import AddGasHelper from '@components/BaseNav/flueGas/flueGas' |
| | | // // 公共展示数据 |
| | | import PublicBounced from '@components/BaseNav/PublicBounced/PublicBounced' |
| | | import LayerFactory from '@components/LayerController/service/LayerFactory' |
| | |
| | | }) |
| | | }, |
| | | methods: { |
| | | ChangeState () { |
| | | const data = { |
| | | companyId: 3900100145, |
| | | userCode: 'wenchun.deng', |
| | | name: '', |
| | | marginWarr: '', |
| | | longDayWarr: '' |
| | | } |
| | | const AddSolidWaste = new AddSolidWasteHelper({ map: this.map }) |
| | | AddSolidWaste.requestData(data) |
| | | AddSolidWaste.SetSolidWasteContent(this.config, this.$refs.PublicBounced) |
| | | }, |
| | | AddGasHelper () { |
| | | const data = { |
| | | companyId: 3900100145, |
| | | id: '', |
| | | monType: 2, |
| | | userCode: 'wenchun.deng', |
| | | monDuration: '', |
| | | epName: '', |
| | | secdDeptId: '', |
| | | contrLevel: '', |
| | | dataStatus: '', |
| | | dataFlag: '', |
| | | runStatus: '', |
| | | emissTypeId: '' |
| | | } |
| | | const AddGas = new AddGasHelper({ map: this.map }) |
| | | AddGas.requestData(data) |
| | | AddGas.SetPlueGasContent(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) |
| | |
| | | this.vectorLayerHelper = Sgis.initVectorLayersHelper(this.map) // 初始化动态要素图层助手 |
| | | this.vectorLayerHelper.initVectorLayers(this.config) |
| | | |
| | | this.ChangeState() |
| | | // this.AddGasHelper() |
| | | // this.ChangeWaterState() |
| | | |
| | | this.saveMapStatus() |
| | | // this.setMapObj(this.mapObj) |
| | | // this.setBasemapHelper(this.basemapHelper) |