From c41f9df24876724d46080dd59ae6c1de2655af8b Mon Sep 17 00:00:00 2001 From: wenshijun Date: Tue, 14 Apr 2026 08:31:58 +0800 Subject: [PATCH] =?UTF-8?q?mqtt=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/worn/mqttConfig.js | 44 ++++ src/api/worn/outbound.js | 44 ++++ src/views/worn/mqttConfig/index.vue | 339 +++++++++++++++++++++++++++ src/views/worn/mqttData/index.vue | 97 +------- src/views/worn/mqttDevice/index.vue | 83 ++++--- src/views/worn/outbound/index.vue | 352 ++++++++++++++++++++++++++++ 6 files changed, 833 insertions(+), 126 deletions(-) create mode 100644 src/api/worn/mqttConfig.js create mode 100644 src/api/worn/outbound.js create mode 100644 src/views/worn/mqttConfig/index.vue create mode 100644 src/views/worn/outbound/index.vue diff --git a/src/api/worn/mqttConfig.js b/src/api/worn/mqttConfig.js new file mode 100644 index 0000000..8fc55a4 --- /dev/null +++ b/src/api/worn/mqttConfig.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询MQTT主题配置列表 +export function listMqttConfig(query) { + return request({ + url: '/worn/mqttConfig/list', + method: 'get', + params: query + }) +} + +// 查询MQTT主题配置详细 +export function getMqttConfig(id) { + return request({ + url: '/worn/mqttConfig/' + id, + method: 'get' + }) +} + +// 新增MQTT主题配置 +export function addMqttConfig(data) { + return request({ + url: '/worn/mqttConfig', + method: 'post', + data: data + }) +} + +// 修改MQTT主题配置 +export function updateMqttConfig(data) { + return request({ + url: '/worn/mqttConfig', + method: 'put', + data: data + }) +} + +// 删除MQTT主题配置 +export function delMqttConfig(id) { + return request({ + url: '/worn/mqttConfig/' + id, + method: 'delete' + }) +} diff --git a/src/api/worn/outbound.js b/src/api/worn/outbound.js new file mode 100644 index 0000000..2de87eb --- /dev/null +++ b/src/api/worn/outbound.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询出库单据列表 +export function listOutbound(query) { + return request({ + url: '/worn/outbound/list', + method: 'get', + params: query + }) +} + +// 查询出库单据详细 +export function getOutbound(id) { + return request({ + url: '/worn/outbound/' + id, + method: 'get' + }) +} + +// 新增出库单据 +export function addOutbound(data) { + return request({ + url: '/worn/outbound', + method: 'post', + data: data + }) +} + +// 修改出库单据 +export function updateOutbound(data) { + return request({ + url: '/worn/outbound', + method: 'put', + data: data + }) +} + +// 删除出库单据 +export function delOutbound(id) { + return request({ + url: '/worn/outbound/' + id, + method: 'delete' + }) +} diff --git a/src/views/worn/mqttConfig/index.vue b/src/views/worn/mqttConfig/index.vue new file mode 100644 index 0000000..b92ca04 --- /dev/null +++ b/src/views/worn/mqttConfig/index.vue @@ -0,0 +1,339 @@ + + + diff --git a/src/views/worn/mqttData/index.vue b/src/views/worn/mqttData/index.vue index 51acee2..bcf38dc 100644 --- a/src/views/worn/mqttData/index.vue +++ b/src/views/worn/mqttData/index.vue @@ -1,22 +1,6 @@ - +