| | |
| | | import $http from '@utils/axios' |
| | | import Qs from 'qs' |
| | | // import axios from 'axios' |
| | | |
| | | export const QueryStoragePlaceListByCompanyAndName = (data = {}) => { |
| | | return $http.post('/EPInterface/DataService/EPMapService.asmx/QueryStoragePlaceListByCompanyAndName', Qs.stringify(data), { |
| | |
| | | } |
| | | }) |
| | | } |
| | | export const FlueGas = (url) => { |
| | | return $http.get('./static/airQuality.json') |
| | | } |
| | | // export function FlueGas () { |
| | | // return axios.post('http://10.246.162.140:8080/EPInterface/DataService/EPMapService.asmx/ObtainningConInfo', { |
| | | // companyId: 3900100145, |
| | | // id: '', |
| | | // monType: 2, |
| | | // userCode: 'wenchun.deng', |
| | | // monDuration: '', |
| | | // epName: '', |
| | | // secdDeptId: '', |
| | | // contrLevel: '', |
| | | // dataStatus: '', |
| | | // dataFlag: '', |
| | | // runStatus: '', |
| | | // emissTypeId: '' |
| | | // }) |
| | | // 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: { |
| | | 'Content-Type': 'application/json' |
| | | } |
| | | }) |
| | | } |
| | |
| | | // 请求数据 data 为参数, 请求后台数据时 携带data参数 |
| | | requestData (data) { |
| | | QueryStoragePlaceListByCompanyAndName(data).then(res => { |
| | | console.log(res) |
| | | // console.log(res) |
| | | this.DrawTheSolidWasteContent(res.Result.DataInfo) |
| | | }).catch(err => { |
| | | console.log(err) |
| | |
| | | } |
| | | |
| | | // 获取数据 |
| | | requestData () { |
| | | FlueGas().then(res => { |
| | | requestData (data) { |
| | | FlueGas(data).then(res => { |
| | | console.log(res) |
| | | this.DrawFlueGasContent(res.Result.DataInfo) |
| | | }).catch(err => { |
| | |
| | | } |
| | | 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) { |
| | |
| | | // 脉冲效果设置实现 |
| | | EffectOfPulse (position, markers, layerGroup) { |
| | | // // 区分直接执行 和判断执行的不同区别 |
| | | var differentColor = '' |
| | | let differentColor = '' |
| | | if (markers) { |
| | | differentColor = '#ff0000' |
| | | } else { |
| | |
| | | |
| | | // 创建axios实例 |
| | | const Service = axios.create({ |
| | | timeout: 1000, |
| | | timeout: 5000, |
| | | baseURL: 'http://10.246.162.140:8080/' |
| | | }) |
| | | |
| | |
| | | <!-- <SolidContent ref="SolidWastePopup"></SolidContent>--> |
| | | <el-button type="primary" @click="AddGasHelper" class="flue-gas">废气</el-button> |
| | | <popup-gas ref="FlueGas"></popup-gas> |
| | | <public-bouncedounced ref="PublicBounced"></public-bouncedounced> |
| | | <PublicBounced ref="PublicBounced"></PublicBounced> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import AddGasHelper from '@components/flueGas/flueGas' |
| | | import PopupGas from '@/components/flueGas/popup-gas' |
| | | // // 公共展示数据 |
| | | // import PublicBounced from '@components/BaseNav/PublicBounced/PublicBounced' |
| | | |
| | | import PublicBounced from '@components/BaseNav/PublicBounced/PublicBounced' |
| | | export default { |
| | | name: 'MapTemplate', |
| | | components: { |
| | |
| | | Popup, |
| | | summarySheets, |
| | | // SolidContent, |
| | | PopupGas |
| | | // PublicBounced |
| | | PopupGas, |
| | | PublicBounced |
| | | }, |
| | | data () { |
| | | return { |
| | |
| | | }, |
| | | methods: { |
| | | 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() |
| | | AddGas.SetPlueGasContent(this.config, this.$refs.FlueGas) |
| | | AddGas.requestData(data) |
| | | AddGas.SetPlueGasContent(this.config, this.$refs.PublicBounced) |
| | | }, |
| | | ChangeState () { |
| | | const data = { |