From 096190dfd5b6c0d3ff7ef0f95ea7885f85730f47 Mon Sep 17 00:00:00 2001 From: wangqi <magical1908@outlook.com> Date: 星期一, 29 三月 2021 11:12:37 +0800 Subject: [PATCH] 废气点动态加载 --- src/api/request.js | 28 ++++++++++------------------ 1 files changed, 10 insertions(+), 18 deletions(-) diff --git a/src/api/request.js b/src/api/request.js index a27be63..c3ce5bf 100644 --- a/src/api/request.js +++ b/src/api/request.js @@ -1,5 +1,6 @@ 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), { @@ -8,22 +9,13 @@ } }) } -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' + } + }) +} -- Gitblit v1.8.0