From 17fa3844c8a15bd0279cbc2e3369b50c16c84337 Mon Sep 17 00:00:00 2001 From: chenyabin <Chenab123!> Date: 星期三, 31 三月 2021 15:51:29 +0800 Subject: [PATCH] 添加企业点图层图标 --- src/api/mapApi.js | 22 +++++++++++++++++----- 1 files changed, 17 insertions(+), 5 deletions(-) diff --git a/src/api/mapApi.js b/src/api/mapApi.js index 3cde8cb..ef9ea26 100644 --- a/src/api/mapApi.js +++ b/src/api/mapApi.js @@ -3,13 +3,25 @@ // const $HOST = 'http://10.238.221.113' // 娴嬭瘯鐜IP锛歨ttp://10.238.221.113 import axios from '@utils/axios' +import * as mapUrl from './mapUrl' + /** * 璇ユ柟娉曢厤缃� */ -class MapAPI { - getToken (param) { - axios.get(param.url, param.option) +export default { + getUser (data) { + return axios.get(mapUrl.GetUser, data) + }, + getSolidWaste (data) { + return axios.get(mapUrl.getSolidWaste, data) + }, + getSolidWasteBaseInfo (data) { + return axios.get(mapUrl.getSolidWasteBaseInfo, data) + }, + GetWasteGas (data) { + return axios.get(mapUrl.GetWasteGas, data) + }, + getCompany (data) { + return axios.get(mapUrl.getCompany, data) } } - -export default new MapAPI() -- Gitblit v1.8.0