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 | 41 +++++++++++++++++------------------------
1 files changed, 17 insertions(+), 24 deletions(-)
diff --git a/src/api/request.js b/src/api/request.js
index 52c549f..c3ce5bf 100644
--- a/src/api/request.js
+++ b/src/api/request.js
@@ -1,28 +1,21 @@
import $http from '@utils/axios'
+import Qs from 'qs'
// import axios from 'axios'
-// // 鍥哄簾鎺ュ彛
-// export const requestSolidWaste = (url, data = {}) => {
-// return $http.post('./static/SolidWaste.json', data)
-// }
-export const requestSolidWaste = (url) => {
- return $http.get('./static/SolidWaste.json')
+
+export const QueryStoragePlaceListByCompanyAndName = (data = {}) => {
+ return $http.post('/EPInterface/DataService/EPMapService.asmx/QueryStoragePlaceListByCompanyAndName', Qs.stringify(data), {
+ headers: {
+ 'Content-Type': 'application/json'
+ }
+ })
}
-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