From c04569e75ef0c526f7f08169cc5724c83005d250 Mon Sep 17 00:00:00 2001
From: whyczyk <525500596@qq.com>
Date: 星期四, 30 九月 2021 20:11:39 +0800
Subject: [PATCH] 地图组件及图表模块跳转方法添加

---
 src/assets/js/api.js |   45 ++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 44 insertions(+), 1 deletions(-)

diff --git a/src/assets/js/api.js b/src/assets/js/api.js
index a69efd3..e2f8aaa 100644
--- a/src/assets/js/api.js
+++ b/src/assets/js/api.js
@@ -175,4 +175,47 @@
     }),
     asy: 1
   })
-}
\ No newline at end of file
+}
+
+/**
+ * 鍒犻櫎鍦板浘涓婄殑鏈烘埧
+ * 鍙傛暟锛歫son={"num":141,"StationId":"42070545",
+ * "StationName":"婀栧寳鐪�-姝︽眽甯�-BTS-涓滆タ婀栧尯-GDXG婕旂ず","StationName3":"",
+ * "Address":"婀栧寳鐪�-姝︽眽甯�-涓滆タ婀栧尯-鍏洯鍗楄矾","longitude":114.252963,"latitude":30.646197,"information":"",
+ * "FBSDeviceId":910000120}
+ */
+export const delMapHome = (params) => {
+  return axios({
+    method: "post",
+    url: "BattMap_informationAction!del",
+    data: "json=" + JSON.stringify(params),
+    asy: 1
+  });
+};
+
+/**
+ * 鏍规嵁璁惧id鏌ヨ閰嶇疆
+ * @param data
+ * @returns {AxiosPromise}
+ */
+export const searchByDevId = (data) => {
+  return axios({
+    method: 'post',
+    url: 'Station3DAction!getByDeviceId',
+    data: 'json=' + JSON.stringify(data),
+    asy: 1
+  });
+};
+
+/**
+ * 鏍规嵁鍩虹珯淇℃伅鏌ヨ鍩虹珯鐨勫憡璀﹀拰钀藉悗淇℃伅
+ * 鍙傛暟锛� json={"StationId":"@鏈烘埧缂栧彿","FBSDeviceId":"@璁惧id"}
+ */
+export const searchHomeNum = (data) => {
+  return axios({
+    method: "post",
+    url: "BattMap_informationAction!multiAmount",
+    data: 'json=' + JSON.stringify(data),
+    asy: 1
+  });
+};
\ No newline at end of file

--
Gitblit v1.9.1