#
luxiaotao1123
2024-10-19 6fb170791974cbfa4f7bd46eaa56d2cd1a9f732a
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: {