From 443e32fec6aec9dfa2ca802246950dc3c36e6251 Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期五, 25 七月 2025 15:35:12 +0800 Subject: [PATCH] 保存一个版本 --- zy-acs-flow/src/map/http.js | 63 +++++++++++++++++++++++++++++++ 1 files changed, 63 insertions(+), 0 deletions(-) diff --git a/zy-acs-flow/src/map/http.js b/zy-acs-flow/src/map/http.js index 88ab8dc..b126eed 100644 --- a/zy-acs-flow/src/map/http.js +++ b/zy-acs-flow/src/map/http.js @@ -309,4 +309,67 @@ console.error(error.message); } return false; +} + +export const locateAllAgv = async (param) => { + try { + const res = await request.post('/handler/locateAllAgv', param, { + headers: { + 'appKey': HANDLE_APP_KEY + } + }); + const { code, msg, data } = res.data; + if (code === 200) { + notify.success(msg); + return true; + } else { + notify.error(msg); + } + } catch (error) { + notify.error(error.message); + console.error(error.message); + } + return false; +} + +export const startPatrolBatch = async (param) => { + try { + const res = await request.post('/handler/patrol/batch/startup', param, { + headers: { + 'appKey': HANDLE_APP_KEY + } + }); + const { code, msg, data } = res.data; + if (code === 200) { + notify.success(msg); + return true; + } else { + notify.error(msg); + } + } catch (error) { + notify.error(error.message); + console.error(error.message); + } + return false; +} + +export const cancelPatrolBatch = async (param) => { + try { + const res = await request.post('/handler/patrol/batch/shutdown', param, { + headers: { + 'appKey': HANDLE_APP_KEY + } + }); + const { code, msg, data } = res.data; + if (code === 200) { + notify.success(msg); + return true; + } else { + notify.error(msg); + } + } catch (error) { + notify.error(error.message); + console.error(error.message); + } + return false; } \ No newline at end of file -- Gitblit v1.9.1