From 11be4fa888dcbb55bbf43b6caf1f4a4abd16a208 Mon Sep 17 00:00:00 2001 From: whyczyk <525500596@qq.com> Date: 星期四, 09 六月 2022 10:05:36 +0800 Subject: [PATCH] 大屏对接2.0项目 --- src/assets/js/api.js | 38 ++++++++++++++------------------------ 1 files changed, 14 insertions(+), 24 deletions(-) diff --git a/src/assets/js/api.js b/src/assets/js/api.js index 166e418..12173f0 100644 --- a/src/assets/js/api.js +++ b/src/assets/js/api.js @@ -140,17 +140,16 @@ */ export const getAllMapOutlineAction = () => { return axios({ - method: "post", - url: "MapOutlineAction!getAll", + method: "GET", + url: "/mapOutline/all", asy: 1 }); }; export const searchMapHomeState = () => { return axios({ - method: "post", - url: 'BattMap_informationAction!findStationState', - data: null, + method: "GET", + url: '/battMapInformation/findStationState', asy: 1 }); } @@ -161,17 +160,8 @@ */ 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, - } - }), + method: "GET", + url: "/battMapInformation/searchUserManageStation", asy: 1 }) } @@ -197,11 +187,11 @@ * @param data * @returns {AxiosPromise} */ -export const searchByDevId = (data) => { +export const searchByDevId = (params) => { return axios({ - method: 'post', - url: 'Station3DAction!getByDeviceId', - data: 'json=' + JSON.stringify(data), + method: 'GET', + url: '/station3D/byDeviceId', + params: params, asy: 1 }); }; @@ -210,11 +200,11 @@ * 鏍规嵁鍩虹珯淇℃伅鏌ヨ鍩虹珯鐨勫憡璀﹀拰钀藉悗淇℃伅 * 鍙傛暟锛� json={"StationId":"@鏈烘埧缂栧彿","FBSDeviceId":"@璁惧id"} */ -export const searchHomeNum = (data) => { +export const searchHomeNum = (params) => { return axios({ - method: "post", - url: "BattMap_informationAction!multiAmount", - data: 'json=' + JSON.stringify(data), + method: "GET", + url: "/battMapInformation/multAmout", + params: params, asy: 1 }); }; -- Gitblit v1.9.1