From 6fb170791974cbfa4f7bd46eaa56d2cd1a9f732a Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期六, 19 十月 2024 15:37:03 +0800 Subject: [PATCH] # --- zy-acs-flow/src/map/http.js | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/zy-acs-flow/src/map/http.js b/zy-acs-flow/src/map/http.js index 22fe804..5fa8812 100644 --- a/zy-acs-flow/src/map/http.js +++ b/zy-acs-flow/src/map/http.js @@ -163,6 +163,25 @@ }) } +export const getPointInfo = async (point, callback) => { + await request.post('/map/point/info', { + codeData: point, + }, { + headers: { 'Content-Type': 'application/x-www-form-urlencoded' } + }).then((res) => { + const { code, msg, data } = res.data; + if (code === 200) { + callback(data) + } else { + notify.error(msg); + } + }).catch((error) => { + notify.error(error.message); + console.error(error.message); + }) +} + + export const handleControlAgv = async (param, callback) => { await request.post('/handler/control/agv', param, { headers: { -- Gitblit v1.9.1