+
请上传
大小不超过 {{ fileSize }}MB
-
+
格式为 {{ fileType.join("/") }}
的文件
@@ -35,9 +35,9 @@
tag="ul"
>
{{ getFileName(file.name) }}
- 删除
+ 删除
+
@@ -158,7 +158,7 @@ function handleUploadError(err) {
// 上传成功回调
function handleUploadSuccess(res, file) {
if (res.code === 200) {
- uploadList.value.push({ name: res.fileName, url: res.fileName });
+ uploadList.value.push({ name: res.fileName, url: res.url });
uploadedSuccessfully();
} else {
number.value--;
@@ -210,22 +210,25 @@ function listToString(list, separator) {
}
-
+
diff --git a/src/views/firmware/log/index.vue b/src/views/firmware/log/index.vue
new file mode 100644
index 0000000..57103fc
--- /dev/null
+++ b/src/views/firmware/log/index.vue
@@ -0,0 +1,355 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/iot/device/detail.vue b/src/views/iot/device/detail.vue
index d41bfc9..1cc4e4b 100644
--- a/src/views/iot/device/detail.vue
+++ b/src/views/iot/device/detail.vue
@@ -145,7 +145,11 @@
-
+
@@ -159,7 +163,7 @@ import { addDevice, getDevice, updateDevice } from "@/api/iot/device";
import { useRoute } from "vue-router";
import { ElMessage } from "element-plus";
import DeviceLog from "@/views/iot/device/detail-panes/DeviceLog.vue";
-import UpgradeLog from "@/views/iot/device/detail-panes/UpgradeLog.vue";
+import UpgradeLog from "@/views/firmware/log/index.vue";
import MapSelect from "@/components/MapSelect/index.vue";
import { generateRandomString } from "@/utils";
import { listModel } from "@/api/thingsmodel/model";
diff --git a/src/views/product/firmware/index.vue b/src/views/product/firmware/index.vue
index 66084d9..f9b22cc 100644
--- a/src/views/product/firmware/index.vue
+++ b/src/views/product/firmware/index.vue
@@ -147,8 +147,6 @@
@selection-change="handleSelectionChange"
>
-
-
@@ -167,11 +165,7 @@
-
+
-
+
+
+
+
+
+
+
+
+
-->
-
-
+
-
-
+
+
+
{
+ try {
+ navigator.clipboard.writeText(
+ `${location.protocol}//${location.host}${baseUrl}${downloadUrl}`
+ );
+ ElMessage.success("已复制到剪贴板");
+ } catch (e) {
+ ElMessage.error("复制失败");
+ }
+};
const getTenantOptions = async (keyword) => {
const response = await listTenant({
pageNum: 1,