Prechádzať zdrojové kódy

fix: ota升级测试

lvkun996 2 rokov pred
rodič
commit
3dad37b1f9

+ 1 - 1
public/index.html

@@ -4,7 +4,7 @@
     <meta charset="utf-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
-    <link rel="icon" href="logo.ico">
+    <link rel="icon" href="./logo.ico">
     <title>蛟龙云联</title>
     <style type="text/css">
       .icon {

+ 0 - 1
src/hooks/effect.ts

@@ -2,7 +2,6 @@ import { Emitter } from '@/enum/emitter'
 import mitt from 'mitt'
 import { setBaseUrl } from '@/service/request'
 import { useRoute } from 'vue-router'
-
 import { ref, onUnmounted, onMounted } from 'vue'
 
 const emitter = mitt()

+ 10 - 4
src/pages/Iot/device/components/ota.vue

@@ -2,15 +2,20 @@
   <a-card>
     <a-row  align="middle" justify="space-between" style="width: 100%;height: 68px" class="title">
       <a-col :span="12" >
-        <a-space>
-          <span>设备名称:{{state.otaDetail.otaPkgLabel}}</span>
-          <span>设备版本:{{state.otaDetail.otaPkgVersion}}</span>
+        <a-space :size="50" >
+          <span  style="font-size: 14px;font-weight: 500;" >OTA包名称:    {{state.otaDetail.otaPkgLabel}}   </span>
+          <span  style="font-size: 14px;font-weight: 500;" >OTA包版本号:  {{state.otaDetail.otaPkgVersion}} </span>
         </a-space>
       </a-col>
       <a-col :span="4" >
         <a-button type="primary" @click="openModal" >下发OTA程序包</a-button>
       </a-col>
     </a-row>
+
+    <a-row style="margin-top: 20px;">
+      <a-col style="font-size: 20px;font-weight: 600;" >设备升级历史</a-col>
+    </a-row>
+
     <a-table
       style="margin-top: 20px;"
       :columns="columns"
@@ -21,7 +26,7 @@
     >
       <template #bodyCell="{column, record}">
         <template v-if="column.key === 'status'" >
-          <a-tag :colo="DeviceContriller.otaStatusMap.get(record.status)?.color">
+          <a-tag :color="DeviceContriller.otaStatusMap.get(record.status)?.color">
             {{DeviceContriller.otaStatusMap.get(record.status)?.label}}
           </a-tag>
         </template>
@@ -126,6 +131,7 @@ const { resetFields, validate, validateInfos } = useForm(otaState, {
 
 const openModal = () => {
   state.visible = true
+  resetFields({})
 }
 
 const ok = () => {