From 38dbf9515280ac2befd8f0f0362bb2a7c823d1a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=81=82=E9=BB=8E?= <329261568@qq.com> Date: Mon, 11 Sep 2023 09:36:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E7=BD=91=E5=85=B3?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=8D=87=E7=BA=A7=E5=9B=BA=E4=BB=B6=E8=BF=9B?= =?UTF-8?q?=E5=BA=A6=E6=9F=A5=E8=AF=A2=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/api/iot/deviceOta.js | 11 +- src/assets/styles/ruoyi.scss | 6 +- src/components/DialogTemplate/index.vue | 2 +- .../profile/BatchFirmwareUpgrade/example.vue | 5 +- .../DeviceDetailsView/BatchUpgradeRate.vue | 173 ++++++++++++++++++ src/views/profile/DeviceDetailsView/index.vue | 21 ++- 7 files changed, 205 insertions(+), 15 deletions(-) create mode 100644 src/views/profile/DeviceDetailsView/BatchUpgradeRate.vue diff --git a/.env.development b/.env.development index 5abec8a2..260c812d 100644 --- a/.env.development +++ b/.env.development @@ -12,7 +12,7 @@ port= 9988 # 服务端地址 // 陈志荣 本地 - //target = http://192.168.18.140:8899 +// target = http://192.168.18.140:8899 // 黄明 本地 // target = http://192.168.18.134:8899 //target = http://192.168.18.139:8899 diff --git a/src/api/iot/deviceOta.js b/src/api/iot/deviceOta.js index 50bc1e76..688cbcec 100644 --- a/src/api/iot/deviceOta.js +++ b/src/api/iot/deviceOta.js @@ -62,7 +62,7 @@ export function upgradeOta(data) { } -// 新增固件版本 +// 批量升级固件版本 export function upgradeBatch(data) { return request({ url: '/iot/ota/upgradeBatch', @@ -70,4 +70,11 @@ export function upgradeBatch(data) { data: data }) } - \ No newline at end of file + +// 查询固件版本列表 +export function listUpgradeByDeviceKey(deviceKey) { + return request({ + url: '/iot/device/upgradeListByKey/' + deviceKey, + method: 'get', + }) +} diff --git a/src/assets/styles/ruoyi.scss b/src/assets/styles/ruoyi.scss index e4cc8c26..9cfc5152 100644 --- a/src/assets/styles/ruoyi.scss +++ b/src/assets/styles/ruoyi.scss @@ -87,9 +87,9 @@ .pagination-container { position: relative; height: 25px; - margin-bottom: 10px; - margin-top: 15px; - padding: 10px 20px !important; + margin-bottom: 20px; + margin-top: 5px; + padding: 15px 20px !important; } /* tree border */ diff --git a/src/components/DialogTemplate/index.vue b/src/components/DialogTemplate/index.vue index a176fd3a..8c061579 100644 --- a/src/components/DialogTemplate/index.vue +++ b/src/components/DialogTemplate/index.vue @@ -1,5 +1,5 @@