将AddDeviceParams中的hardware字段改为可选以匹配业务需求 修复添加设备时错误地将固件版本赋值给hardware字段的问题 修正设备详情页中固件版本的显示字段从hardware改为software
@@ -120,7 +120,7 @@ export interface AddDeviceParams {
clientId: string // 设备ID
devType: string // 设备类型
software?: string // 软件版本
- hardware: string // 硬件版本
+ hardware?: string // 硬件版本
tenantId: string | null // 租户ID
}
@@ -92,7 +92,7 @@
<info-item label="设备ID">{{ detailState.clientId }}</info-item>
<info-item label="设备名称">{{ detailState.devName }}</info-item>
<info-item label="设备类型">{{ detailState.devType }}</info-item>
- <info-item label="固件版本号">{{ detailState.hardware }}</info-item>
+ <info-item label="固件版本号">{{ detailState.software }}</info-item>
<info-item label="激活日期">{{ detailState.activeTime }}</info-item>
<info-item label="在离线状态">
<template v-if="detailState.clientId">
@@ -134,7 +134,7 @@ const submit = () => {
.addDevice({
clientId: formState.deviceId,
devType: formState.deviceType,
- hardware: formState.firmwareVersion,
+ software: formState.firmwareVersion,
tenantId: formState.tenantId,
})
.then((res) => {