From 060912bc19b3e367dcac505887b9afe81982f5c5 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Fri, 9 Aug 2024 10:12:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgzb-ui/src/api/iotDevice/index.js | 18 ++++++++++++++++++ .../machinery/coding/component/BindIOT.vue | 2 +- .../machinery/coding/component/MapDIalog.vue | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/sgzb-ui/src/api/iotDevice/index.js b/sgzb-ui/src/api/iotDevice/index.js index 96d88c02..c6620325 100644 --- a/sgzb-ui/src/api/iotDevice/index.js +++ b/sgzb-ui/src/api/iotDevice/index.js @@ -49,6 +49,24 @@ export function deleteDeviceApi(id) { }) } +/** 获取机具设备的位置信息 */ +export const getIotDeviceLocationApi = (data) => { + return request.post('/material/iotMachine/getLocation', data) +} +/** 获取机具设备的行程信息 */ +export const getIotDeviceTripApi = (data) => { + return request.post('/material/iotMachine/searchItinerary', data) +} +/** 获取机具设备的停留点信息 */ +export const getIotDeviceParkDetailApi = (data) => { + return request.post('/material/iotMachine/reportParkDetailByTime', data) +} +/** 获取机具设备的报警信息 */ +export const getIotDeviceAlarmApi = (data) => { + return request.post('/material/iotMachine/reportAlarm', data) +} + + /** * ***** */ diff --git a/sgzb-ui/src/views/warehouseManage/machinery/coding/component/BindIOT.vue b/sgzb-ui/src/views/warehouseManage/machinery/coding/component/BindIOT.vue index ff81bfe5..f0f9595c 100644 --- a/sgzb-ui/src/views/warehouseManage/machinery/coding/component/BindIOT.vue +++ b/sgzb-ui/src/views/warehouseManage/machinery/coding/component/BindIOT.vue @@ -149,7 +149,7 @@ import { bindIot, getTypeList, unbindIot, -} from '@/api/store/iotManagement' +} from '@/api/iotDevice/index.js' export default { name: 'BindIOT', diff --git a/sgzb-ui/src/views/warehouseManage/machinery/coding/component/MapDIalog.vue b/sgzb-ui/src/views/warehouseManage/machinery/coding/component/MapDIalog.vue index c6e4873d..e3881a01 100644 --- a/sgzb-ui/src/views/warehouseManage/machinery/coding/component/MapDIalog.vue +++ b/sgzb-ui/src/views/warehouseManage/machinery/coding/component/MapDIalog.vue @@ -145,7 +145,7 @@ import { getIotDeviceTripApi, getIotDeviceParkDetailApi, getIotDeviceAlarmApi, -} from '@/api/store/iotManagement.js' +} from '@/api/iotDevice/index.js' export default { name: 'MapDialog', props: {