|
|
@@ -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 = () => {
|