From c1afcbf2bcb1e790cb02d5c7943cdcf48d9daf8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A3=B7=E5=8F=B6?= <14103883+leaf-phos@user.noreply.gitee.com> Date: Mon, 24 Mar 2025 18:05:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E8=BE=86=E8=BD=A8=E8=BF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/bst/device.js | 7 +- src/api/bst/locationLog.js | 44 ++ src/api/bst/order.js | 44 ++ .../components/LocationLogViewDialog.vue | 117 +++++ src/views/bst/locationLog/index.vue | 330 ++++++++++++ src/views/bst/order/index.vue | 474 ++++++++++++++++++ 6 files changed, 1013 insertions(+), 3 deletions(-) create mode 100644 src/api/bst/locationLog.js create mode 100644 src/api/bst/order.js create mode 100644 src/views/bst/locationLog/components/LocationLogViewDialog.vue create mode 100644 src/views/bst/locationLog/index.vue create mode 100644 src/views/bst/order/index.vue diff --git a/src/api/bst/device.js b/src/api/bst/device.js index 9322dc6..d9f3596 100644 --- a/src/api/bst/device.js +++ b/src/api/bst/device.js @@ -10,10 +10,11 @@ export function listDevice(query) { } // 查询设备详细 -export function getDevice(id) { +export function getDevice(id, sn = null) { return request({ - url: '/bst/device/' + id, - method: 'get' + url: '/bst/device', + method: 'get', + params: {id, sn } }) } diff --git a/src/api/bst/locationLog.js b/src/api/bst/locationLog.js new file mode 100644 index 0000000..ed438ad --- /dev/null +++ b/src/api/bst/locationLog.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询定位日志列表 +export function listLocationLog(query) { + return request({ + url: '/bst/locationLog/list', + method: 'get', + params: query + }) +} + +// 查询定位日志详细 +export function getLocationLog(id) { + return request({ + url: '/bst/locationLog/' + id, + method: 'get' + }) +} + +// 新增定位日志 +export function addLocationLog(data) { + return request({ + url: '/bst/locationLog', + method: 'post', + data: data + }) +} + +// 修改定位日志 +export function updateLocationLog(data) { + return request({ + url: '/bst/locationLog', + method: 'put', + data: data + }) +} + +// 删除定位日志 +export function delLocationLog(id) { + return request({ + url: '/bst/locationLog/' + id, + method: 'delete' + }) +} diff --git a/src/api/bst/order.js b/src/api/bst/order.js new file mode 100644 index 0000000..844e04a --- /dev/null +++ b/src/api/bst/order.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询订单列表 +export function listOrder(query) { + return request({ + url: '/bst/order/list', + method: 'get', + params: query + }) +} + +// 查询订单详细 +export function getOrder(id) { + return request({ + url: '/bst/order/' + id, + method: 'get' + }) +} + +// 新增订单 +export function addOrder(data) { + return request({ + url: '/bst/order', + method: 'post', + data: data + }) +} + +// 修改订单 +export function updateOrder(data) { + return request({ + url: '/bst/order', + method: 'put', + data: data + }) +} + +// 删除订单 +export function delOrder(id) { + return request({ + url: '/bst/order/' + id, + method: 'delete' + }) +} diff --git a/src/views/bst/locationLog/components/LocationLogViewDialog.vue b/src/views/bst/locationLog/components/LocationLogViewDialog.vue new file mode 100644 index 0000000..fd9eff6 --- /dev/null +++ b/src/views/bst/locationLog/components/LocationLogViewDialog.vue @@ -0,0 +1,117 @@ + + + + + \ No newline at end of file diff --git a/src/views/bst/locationLog/index.vue b/src/views/bst/locationLog/index.vue new file mode 100644 index 0000000..982357b --- /dev/null +++ b/src/views/bst/locationLog/index.vue @@ -0,0 +1,330 @@ + + + diff --git a/src/views/bst/order/index.vue b/src/views/bst/order/index.vue new file mode 100644 index 0000000..14b1488 --- /dev/null +++ b/src/views/bst/order/index.vue @@ -0,0 +1,474 @@ + + +