| | |
| | | getUser (data) { |
| | | return axios.get(mapUrl.GetUser, data) |
| | | }, |
| | | // 固废点 |
| | | getSolidWaste (data) { |
| | | return axios.get(mapUrl.getSolidWaste, data) |
| | | }, |
| | | getWasteWater (data) { |
| | | return axios.get(mapUrl.getWasteWater, data) |
| | | }, |
| | | // 固废点基本信息 |
| | | getSolidWasteBaseInfo (data) { |
| | | return axios.get(mapUrl.getSolidWasteBaseInfo, data) |
| | | }, |
| | | getWasteWater (data) { |
| | | return axios.get(mapUrl.getWasteWater, data) |
| | | }, |
| | | GetWasteGas (data) { |
| | | return axios.get(mapUrl.GetWasteGas, data) |
| | | }, |
| | |
| | | |
| | | export const GetUser = $HOST + '/user/getUser' |
| | | |
| | | export const getSolidWaste = $HOST + '/wasteSolid/getSolidWaste' |
| | | export const getSolidWasteBaseInfo = $HOST + '/wasteSolid/getSolidWasteBaseInfo' |
| | | |
| | | export const GetWasteGas = $HOST + '/wasteGas/getWasteGas' |
| | | |
| | | export const getSolidWaste = $HOST + '/wasteSolid/getSolidWaste' |
| | | |
| | | export const getWasteWater = $HOST + '/wasteWater/getWasteWater' |
| | | |
| | | export const getSolidWasteBaseInfo = $HOST + '/wasteSolid/getSolidWasteBaseInfo' |
| | | |
| | | export const getCompany = $HOST + '/company/getCompany' |
| | |
| | | <div class="main"> |
| | | <div class="main-matter"> |
| | | <el-row type="flex" class="row-bg row-item-one" justify="space-around"> |
| | | <el-col :span="12">监测点名称:{{ displayContentTab.Name }}</el-col> |
| | | <el-col :span="12">生产单位:{{ displayContentTab.DeptSname }}</el-col> |
| | | <el-col :span="12">排放类型加载:{{ displayContentTab.EmissTypeName }}</el-col> |
| | | <el-col :span="12">监测点名称:{{ displayContentTab2.StoragePlaceName }}</el-col> |
| | | <el-col :span="12">生产单位:{{ displayContentTab2.StoragePlaceName }}</el-col> |
| | | <el-col :span="12">排放类型加载:{{ displayContentTab2.DesignFloorArea }}</el-col> |
| | | </el-row> |
| | | <el-row type="flex" class="row-bg" justify="space-around"> |
| | | <el-col :span="12">排放去向:{{ displayContentTab.EmissTypeDirectName }}</el-col> |
| | | <el-col :span="12">控制级别名称:{{ displayContentTab.ContrLevelShowName }}</el-col> |
| | | <el-col :span="12">内/外排口:{{ displayContentTab.OrOutPortName }}</el-col> |
| | | <el-col :span="12">排放去向:{{ displayContentTab2.StorageQty }}</el-col> |
| | | <el-col :span="12">控制级别名称:{{ displayContentTab2.SurplusFloorArea }}</el-col> |
| | | <el-col :span="12">内/外排口:{{ displayContentTab2.StorageDate }}</el-col> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | |
| | | name: 'GasTable', |
| | | props: ['displayContentTab'], |
| | | data () { |
| | | return {} |
| | | return { |
| | | displayContentTab2: [] |
| | | } |
| | | }, |
| | | mounted () { |
| | | this.$nextTick(() => { |
| | | this.displayContentTab.forEach(item => { |
| | | this.displayContentTab2 = item |
| | | }) |
| | | }) |
| | | } |
| | | } |
| | | </script> |
| | |
| | | methods: { |
| | | setData (data, value) { |
| | | data.forEach((item, index) => { |
| | | console.log(item.StoragePlaceName) |
| | | // console.log(item.StoragePlaceName) |
| | | this.displayContentTitle = item.StoragePlaceName |
| | | }) |
| | | this.displayContentTab = data |
| | |
| | | // 点击 事件 |
| | | marker.on('click', (e) => { |
| | | try { |
| | | // console.log(e) |
| | | console.log(e.target.getLatLng()) |
| | | this.setPanTo(e.target.getLatLng(), 200) |
| | | this.EffectOfPulse(e.target.getLatLng()) |
| | | this.SolidWastePopup.setData(data[i], 'gufei') |
| | |
| | | /** |
| | | * 固废 |
| | | */ |
| | | |
| | | // 区分不同类型 使用不同img |
| | | const defaultImg = '/assets/images/map/solidwaste/voc.png' |
| | | const setting = '/assets/images/map/solidwaste/gf_green.png' |
| | |
| | | return layer.options.test.Name |
| | | } |
| | | |
| | | this.clickListener = async (e) => { |
| | | this.clickListener = (e) => { |
| | | // 点击marker的pulse()光波 |
| | | this.animalService.pulseEffect(e.latlng) |
| | | /* flyTo()弹出框平移事件 */ |
| | | // this.setPanTo(e.latlng, 200) |
| | | console.log(e) |
| | | /* 点击数据的接口请求 */ |
| | | this.requestSolidWasteData(e).then(e) |
| | | } |
| | | |
| | | // 根据点击不同数据 进行接口的数据请求 |
| | | this.requestSolidWasteData = async (e) => { |
| | | const dataValue = { |
| | | StoragePlaceId: e.layer.options.test.StoragePlaceId |
| | | } |
| | |
| | | instance.setData(result.Result.DataInfo, 'gufei') |
| | | } |
| | | |
| | | // panTo |
| | | this.setPanTo = (pos, value) => { |
| | | var position = pos |
| | | position = this.layer.latLngToLayerPoint(position) |
| | | position.y += value |
| | | position = this.layer.layerPointToLatLng(position) |
| | | this.layer.flyTo(position) |
| | | } |
| | | // flayTo() |
| | | // this.setPanTo = (pos, value) => { |
| | | // var position = pos |
| | | // position = this.map.latLngToLayerPoint(position) |
| | | // position.y += value |
| | | // position = this.map.layerPointToLatLng(position) |
| | | // this.map.flyTo(position) |
| | | // } |
| | | |
| | | // 不同类型图片封装 |
| | | this.differentTypes = (judgeValue) => { |
| | |
| | | }) |
| | | const res = await mapApi.GetWasteGas() |
| | | const data = res.Result.DataInfo || {} |
| | | console.log(data) |
| | | // console.log(data) |
| | | for (let i = 0; i < data.length; i++) { |
| | | // 经纬度 位置 |
| | | const positionX = data[i].Latitude |
| | |
| | | layer: layer |
| | | }) |
| | | const res = await mapApi.getWasteWater() |
| | | console.log(res) |
| | | // console.log(res) |
| | | const data = res.Result.DataInfo |
| | | console.log(data) |
| | | // console.log(data) |
| | | for (let i = 0; i < data.length; i++) { |
| | | // 经纬度 位置 |
| | | const positionX = data[i].Latitude |
| | |
| | | init () { |
| | | const mapcontainer = this.$refs.rootmap |
| | | this.map = Sgis.initMap(mapcontainer) |
| | | this.$refs.toolBox.map = this.map |
| | | |
| | | window.popupComp = this.$refs.popup |
| | | var layerFactory = new LayerFactory({ |
| | |
| | | |
| | | // this.AddGasHelper() |
| | | // this.ChangeWaterState() |
| | | this.$refs.toolBox.init(this.map) |
| | | |
| | | this.saveMapStatus() |
| | | // this.setMapObj(this.mapObj) |
| | | // this.setBasemapHelper(this.basemapHelper) |