From 11ff458b2571233c1096919e75ffec8597cfe2ce 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: Sat, 7 Jun 2025 15:45:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AF=E4=BB=B6=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/bst/device.js | 2 +- src/api/bst/deviceIot.js | 9 +++++++ src/views/bst/commandLog/index.vue | 18 +++++++++++-- src/views/bst/device/view/view.vue | 39 ++++++++++++++++++++++++----- src/views/bst/orderDevice/index.vue | 35 ++++++++++++-------------- 5 files changed, 75 insertions(+), 28 deletions(-) diff --git a/src/api/bst/device.js b/src/api/bst/device.js index 574d0f8..18178cc 100644 --- a/src/api/bst/device.js +++ b/src/api/bst/device.js @@ -114,4 +114,4 @@ export function listAllDevice(query) { method: 'get', params: query }) -} +} \ No newline at end of file diff --git a/src/api/bst/deviceIot.js b/src/api/bst/deviceIot.js index 01a1e82..e7aacca 100644 --- a/src/api/bst/deviceIot.js +++ b/src/api/bst/deviceIot.js @@ -62,3 +62,12 @@ export function setDeviceMusic(data) { params: data }) } + +// 管理员升级设备 +export function iotUpdateDevice(data) { + return request({ + url: '/bst/device/iot/update', + method: 'put', + params: data + }) +} diff --git a/src/views/bst/commandLog/index.vue b/src/views/bst/commandLog/index.vue index 4760da8..5b027e0 100644 --- a/src/views/bst/commandLog/index.vue +++ b/src/views/bst/commandLog/index.vue @@ -25,6 +25,14 @@ @keyup.enter.native="handleQuery" /> + + +