| | |
| | | } |
| | | }) |
| | | } |
| | | // export const FlueGas = (url) => { |
| | | // return $http.get('./static/airQuality.json') |
| | | // } |
| | | export function FlueGas (data = {}) { |
| | | return $http.post('EPInterface/DataService/EPMapService.asmx/ObtainningConInfo', Qs.stringify(data), { |
| | | headers: { |
| | |
| | | } |
| | | }) |
| | | } |
| | | export function requestWasteWater (data = {}) { |
| | | return $http.post('EPInterface/DataService/EPMapService.asmx/ObtainningConInfo', Qs.stringify(data), { |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | | } |
| | | }) |
| | | } |
| | |
| | | } |
| | | |
| | | // 请求数据 data 为参数, 请求后台数据时 携带data参数 |
| | | requestData () { |
| | | requestWasteWater().then(res => { |
| | | this.DrawTheWasteWaterContent(res.Result.DataInfo) |
| | | requestData (data) { |
| | | requestWasteWater(data).then(res => { |
| | | console.log(res) |
| | | this.DrawWasteWaterContent(res.Result.DataInfo) |
| | | // console.log(res) |
| | | }).catch(err => { |
| | | console.log(err) |
| | |
| | | } |
| | | |
| | | // 根据获取数据 画出 内容 |
| | | DrawTheWasteWaterContent (data) { |
| | | DrawWasteWaterContent (data) { |
| | | // 图标样式扩展 |
| | | const WasteWaterIcon = this.WasteWaterIcon() |
| | | |
| | |
| | | } |
| | | for (let i = 0; i < data.length; i++) { |
| | | // 经纬度 位置 |
| | | const positionX = data[i].positionX |
| | | const positionY = data[i].positionY |
| | | const positionX = data[i].Latitude |
| | | const positionY = data[i].Longitude |
| | | |
| | | // 判断 经纬度位置信息是否存在 |
| | | // if (positionX != null && positionY != null) { |
| | |
| | | autoClose: false |
| | | }) |
| | | // 划过出现 展示数据 |
| | | marker.bindTooltip(data[i].StoragePlaceName, { |
| | | marker.bindTooltip(data[i].Name, { |
| | | permanent: true, |
| | | offset: [0, -16], |
| | | direction: 'top', |
| | |
| | | // console.log(e) |
| | | this.EffectOfPulse(e.target.getLatLng()) |
| | | this.WasteWaterPopup.setDate(data[i]) |
| | | return this.WasteWaterPopup.$el |
| | | } catch (error) { |
| | | console.log(error) |
| | | } |
| | |
| | | <el-button type="primary" @click="ChangeState" class="solid-waste">固废</el-button> |
| | | <SolidContent ref="SolidWastePopup"></SolidContent> |
| | | <el-button type="primary" @click="ChangeWaterState" class="Waste-water">废水</el-button> |
| | | <WasteWaterContent ref="WasteWaterPopup"></WasteWaterContent> |
| | | <PublicBounced ref="PublicBounced"></PublicBounced> |
| | | <!-- <SolidContent ref="SolidWastePopup"></SolidContent>--> |
| | | <el-button type="primary" @click="AddGasHelper" class="flue-gas">废气</el-button> |
| | | <popup-gas ref="FlueGas"></popup-gas> |
| | |
| | | import LegendPanel from '@components/panel/LegendPanel' |
| | | import Enterprise from '../components/table/enterprise' |
| | | import SolidContent from '@components/BaseNav/SolidWaste/SolidContent' |
| | | import WasteWaterContent from '@components/BaseNav/WasteWater/WasteWaterContent' |
| | | // import WasteWaterContent from '@components/BaseNav/WasteWater/WasteWaterContent' |
| | | // 底图业务js逻辑 |
| | | import AddSolidWasteHelper from '@components/BaseNav/SolidWaste/SolidWaste' |
| | | import AddWasteWaterHelper from '@components/BaseNav/WasteWater/WasteWater' |
| | |
| | | Popup, |
| | | summarySheets, |
| | | SolidContent, |
| | | WasteWaterContent |
| | | // WasteWaterContent, |
| | | // SolidContent, |
| | | PopupGas, |
| | | PublicBounced |
| | |
| | | longDayWarr: '' |
| | | } |
| | | const AddSolidWaste = new AddSolidWasteHelper({ map: this.map }) |
| | | AddSolidWaste.requestData() |
| | | AddSolidWaste.SetSolidWasteContent(this.config, this.$refs.SolidWastePopup) |
| | | }, |
| | | ChangeWaterState () { |
| | | if (this.show) { |
| | | const AddWasteWater = new AddWasteWaterHelper({ map: this.map }) |
| | | AddWasteWater.requestData() |
| | | AddWasteWater.SetWasteWaterContent(this.config, this.$refs.WasteWaterPopup) |
| | | } |
| | | 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) |
| | | }, |
| | | // isShowHidden () { |
| | | // this.isShowBtn = !this.isShowBtn |
| | |
| | | .Waste-water { |
| | | position: absolute; |
| | | top: 88px; |
| | | left: 380px; |
| | | left: 280px; |
| | | z-index: 999; |
| | | } |
| | | |