From fb026e6052b4d843d327312db398cf791ac57ab9 Mon Sep 17 00:00:00 2001
From: cyy <cuiqian2004@163.com>
Date: 星期日, 28 九月 2025 22:43:29 +0800
Subject: [PATCH] test

---
 api/vehicle.js |   86 ++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 85 insertions(+), 1 deletions(-)

diff --git a/api/vehicle.js b/api/vehicle.js
index f98fa91..c440418 100644
--- a/api/vehicle.js
+++ b/api/vehicle.js
@@ -89,6 +89,7 @@
 		method: "GET",
 		url,
 		header,
+		
 	})
 
 
@@ -109,6 +110,8 @@
 		method: "GET",
 		url,
 		header,
+		timeout: 5000,
+		
 	})
 
 }
@@ -893,4 +896,85 @@
 		data: {data}
 
 	})
-}
\ No newline at end of file
+}
+
+
+/**
+ * GET 5000/api/check_mapserver_is_start
+ * 鍒ゆ柇鏋勫浘绋嬪簭鏄惁鍚姩
+ * @param 
+ * @returns 
+ */
+
+export const checkMapServerIsStart = (ip) => {
+	var header = {
+		"Content-Type": "application/json;charset=UTF-8"
+	};
+	var url = `http://${ip}:5000/api/check_mapserver_is_start/`;
+	return http.request({
+		method: "GET",
+		url,
+		header,
+	})
+}
+
+/**
+ * POST 5000/api/start_or_stop_mapserver
+ * 寮�惎鎴栬�鍏抽棴鏋勫浘绋嬪簭锛�1寮�惎2鍏抽棴
+ * @param  status 1寮�惎2鍏抽棴
+ * @returns 
+ */
+
+export const startOrStopMapServer = (ip, status) => {
+	var header = {
+		"Content-Type": "application/json;charset=UTF-8"
+	};
+	var url = `http://${ip}:5000/api/start_or_stop_mapserver/`;
+	return http.request({
+		method: "POST",
+		url,
+		header,
+		data: {status}
+
+	})
+}
+ 
+ 
+ /**
+  * GET 5000/api/check_mapserver_is_ok
+  * 鏋勫浘绋嬪簭鏄惁鍑嗗鍒颁綅
+  * @param 
+  * @returns 
+  */
+ 
+ export const checkMapServerIsOk = (ip) => {
+ 	var header = {
+ 		"Content-Type": "application/json;charset=UTF-8"
+ 	};
+ 	var url = `http://${ip}:5000/api/check_mapserver_is_ok/`;
+ 	return http.request({
+ 		method: "GET",
+ 		url,
+ 		header,
+ 	})
+ }
+ 
+ /**
+  * GET 5000/api/check_save_map_is_ok
+  * 缁撴潫鏋勫浘鏄惁淇濆瓨瀹屾垚
+  * @param 
+  * @returns 
+  */
+ 
+ export const checkSaveMapIsOk = (ip) => {
+ 	var header = {
+ 		"Content-Type": "application/json;charset=UTF-8"
+ 	};
+ 	var url = `http://${ip}:5000/api/check_save_map_is_ok/`;
+ 	return http.request({
+ 		method: "GET",
+ 		url,
+ 		header,
+ 	})
+ }
+ 

--
Gitblit v1.9.1