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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + + 新增 + + + + + 修改 + + + + + 删除 + + + + + 导出 + + + + + + + + + + + + + + + + + {{ scope.row.status === '0' ? '启用' : '停用' }} + + + + + + + + 修改 + + + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 启用 + 停用 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 搜索 重置 @@ -179,8 +101,7 @@ - {{ scope.row.concentration }} - 正常 + {{ scope.row.concentration ?? 0 }} @@ -191,7 +112,7 @@ - + 修改 @@ -290,20 +211,8 @@ const data = reactive({ queryParams: { pageNum: 1, pageSize: 10, - deviceId: null, - topic: null, project: null, - warehouse: null, - payload: null, - dataJson: null, - battery: null, - temperature: null, - humidity: null, - nh3: null, - h2s: null, - concentration: null, - waterStatus: null, - isDelete: null + warehouse: null }, rules: { deviceId: [ diff --git a/src/views/worn/mqttDevice/index.vue b/src/views/worn/mqttDevice/index.vue index cbac932..1570a01 100644 --- a/src/views/worn/mqttDevice/index.vue +++ b/src/views/worn/mqttDevice/index.vue @@ -1,6 +1,6 @@ - + - - - 搜索 重置 @@ -88,9 +80,13 @@ - + + + 正常 + 不可用 + + - 修改 @@ -108,23 +104,39 @@ /> - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +