From 0f3e5daa1152657deac4282086578f3a0081c85c Mon Sep 17 00:00:00 2001
From: abang
Date: Tue, 30 Jul 2024 22:47:39 +0800
Subject: [PATCH 11/12] =?UTF-8?q?feat=EF=BC=9Aota=E5=88=97=E8=A1=A8?=
=?UTF-8?q?=E6=96=B0=E5=BB=BA=E7=BC=96=E8=BE=91=E5=A4=84=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
thinglinks-ui/src/api/link/ota/otaList.js | 18 +
thinglinks-ui/src/views/link/ota/index.vue | 495 +++++++--------------
2 files changed, 186 insertions(+), 327 deletions(-)
diff --git a/thinglinks-ui/src/api/link/ota/otaList.js b/thinglinks-ui/src/api/link/ota/otaList.js
index 3645fa1a..1908d0d9 100644
--- a/thinglinks-ui/src/api/link/ota/otaList.js
+++ b/thinglinks-ui/src/api/link/ota/otaList.js
@@ -19,4 +19,22 @@ export function deleteOta(data) {
method: 'delete',
data: data
})
+}
+
+// 查询新建ota base信息
+export function getCreateBaseInfo(data) {
+ return request({
+ url: '/oauth/anyUser/dict/findDictMapItemListByKey',
+ method: 'post',
+ data: data
+ })
+}
+
+// 更新Ota资源
+export function updateOta(data) {
+ return request({
+ url: '/link/otaUpgrades',
+ method: 'put',
+ data: data
+ })
}
\ No newline at end of file
diff --git a/thinglinks-ui/src/views/link/ota/index.vue b/thinglinks-ui/src/views/link/ota/index.vue
index 7b672ffe..e712b676 100644
--- a/thinglinks-ui/src/views/link/ota/index.vue
+++ b/thinglinks-ui/src/views/link/ota/index.vue
@@ -150,19 +150,19 @@
-
+
-
+
@@ -351,246 +351,124 @@
:visible.sync="open"
append-to-body
width="48%"
+ custom-class="ota-dialog"
>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 点击上传
+ 只能上传zip文件,且不超过2048MB
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+