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 @@ - +