diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 335f5270..8b4bbe0e 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -637,7 +637,7 @@ const remainingRouter: AppRouteRecordRaw[] = [ hidden: true, activeMenu: '/iot/device' }, - component: () => import('@/views/iot/device/detail/index.vue') + component: () => import('@/views/iot/device/device/detail/index.vue') } ] } diff --git a/src/views/iot/product/product/detail/ThingModel/config.ts b/src/views/iot/product/product/detail/ThingModel/config.ts index e75fc082..6ba56515 100644 --- a/src/views/iot/product/product/detail/ThingModel/config.ts +++ b/src/views/iot/product/product/detail/ThingModel/config.ts @@ -1,6 +1,6 @@ /** dataSpecs 数值型数据结构 */ export interface DataSpecsNumberDataVO { - dataType: 'INT' | 'FLOAT' | 'DOUBLE' // 数据类型,取值为 INT、FLOAT 或 DOUBLE + dataType: 'int' | 'float' | 'double' // 数据类型,取值为 INT、FLOAT 或 DOUBLE max: string // 最大值,必须与 dataType 设置一致,且为 STRING 类型 min: string // 最小值,必须与 dataType 设置一致,且为 STRING 类型 step: string // 步长,必须与 dataType 设置一致,且为 STRING 类型 @@ -18,7 +18,7 @@ export interface DataSpecsTextDataVO { /** dataSpecs 枚举型数据结构 */ export interface DataSpecsEnumDataVO { - dataType: 'ENUM' | 'BOOL' + dataType: 'enum' | 'bool' defaultValue?: string // 默认值,可选 name: string // 枚举项的名称 value: number | undefined // 枚举值 @@ -35,4 +35,4 @@ export const DataSpecsDataType = { DATE: 'date', STRUCT: 'struct', ARRAY: 'array' -} +} as const diff --git a/src/views/iot/product/product/detail/ThingModel/dataSpecs/ThingModelEnumTypeDataSpecs.vue b/src/views/iot/product/product/detail/ThingModel/dataSpecs/ThingModelEnumTypeDataSpecs.vue index 7b977ae6..75adebdb 100644 --- a/src/views/iot/product/product/detail/ThingModel/dataSpecs/ThingModelEnumTypeDataSpecs.vue +++ b/src/views/iot/product/product/detail/ThingModel/dataSpecs/ThingModelEnumTypeDataSpecs.vue @@ -1,9 +1,9 @@