From 19ebfac8e4b4a7c717e8c19a930de7c359a6cfee Mon Sep 17 00:00:00 2001 From: whyczyk <525500596@qq.com> Date: 星期三, 29 九月 2021 10:12:54 +0800 Subject: [PATCH] 地图数据提交 --- src/assets/js/api.js | 42 ++++++++++++++++++++++++++++++++++++------ 1 files changed, 36 insertions(+), 6 deletions(-) diff --git a/src/assets/js/api.js b/src/assets/js/api.js index ea07b1f..a69efd3 100644 --- a/src/assets/js/api.js +++ b/src/assets/js/api.js @@ -138,11 +138,41 @@ * 棣栭〉鍦板浘json鏁版嵁閰嶇疆 鏌ヨ鍏宠仈鍦板浘 * 鍙傛暟锛� json={"id":id} */ - export const getAllMapOutlineAction = (data) => { +export const getAllMapOutlineAction = (data) => { return axios({ - method: "post", - url: "MapOutlineAction!getAll", - data: 'json=' + JSON.stringify(data), - asy:1 + method: "post", + url: "MapOutlineAction!getAll", + data: 'json=' + JSON.stringify(data), + asy: 1 }); -}; \ No newline at end of file +}; + +export const searchMapHomeState = () => { + return axios({ + method: "post", + url: 'BattMap_informationAction!findStationState', + data: null, + asy: 1 + }); +} + +/** + * 鏌ヨ宸叉坊鍔犲埌鍦板浘鐨勬満鎴� + * 鍙傛暟:json={"adata":{"alm_cleared_type":0,"alm_id":1},"bplan":{"discharge_reason":3}} + */ +export const searchMap = () => { + return axios({ + method: "post", + url: "BattMap_informationAction!searchUserManageStation", + data: "json=" + JSON.stringify({ + adata: { + alm_cleared_type: 0, + alm_id: 1, + }, + bplan: { + discharge_reason: 3, + } + }), + asy: 1 + }) +} \ No newline at end of file -- Gitblit v1.9.1