diff --git a/src/views/iot/product/product/detail/ThingModel/ThingModelDataSpecs.vue b/src/views/iot/product/product/detail/ThingModel/ThingModelDataSpecs.vue index 59d65587..5a92fb2e 100644 --- a/src/views/iot/product/product/detail/ThingModel/ThingModelDataSpecs.vue +++ b/src/views/iot/product/product/detail/ThingModel/ThingModelDataSpecs.vue @@ -1,6 +1,13 @@ + + + + diff --git a/src/views/iot/product/product/detail/ThingModel/config.ts b/src/views/iot/product/product/detail/ThingModel/config.ts index d19de37c..1a028ac9 100644 --- a/src/views/iot/product/product/detail/ThingModel/config.ts +++ b/src/views/iot/product/product/detail/ThingModel/config.ts @@ -36,3 +36,16 @@ export const DataSpecsDataType = { STRUCT: 'struct', ARRAY: 'array' } as const + +/** 物体模型数据类型配置项 */ +export const dataTypeOptions = [ + { value: DataSpecsDataType.INT, label: 'int32 (整数型)' }, + { value: DataSpecsDataType.FLOAT, label: 'float (单精度浮点型)' }, + { value: DataSpecsDataType.DOUBLE, label: 'double (双精度浮点型)' }, + { value: DataSpecsDataType.ENUM, label: 'enum(枚举型)' }, + { value: DataSpecsDataType.BOOL, label: 'bool (布尔型)' }, + { value: DataSpecsDataType.TEXT, label: 'text (文本型)' }, + { value: DataSpecsDataType.DATE, label: 'date (时间型)' }, + { value: DataSpecsDataType.STRUCT, label: 'struct (结构体)' }, + { value: DataSpecsDataType.ARRAY, label: 'array (数组)' } +] diff --git a/src/views/iot/product/product/detail/ThingModel/dataSpecs/ThingModelDataType.vue b/src/views/iot/product/product/detail/ThingModel/dataSpecs/ThingModelDataType.vue deleted file mode 100644 index cf26e5eb..00000000 --- a/src/views/iot/product/product/detail/ThingModel/dataSpecs/ThingModelDataType.vue +++ /dev/null @@ -1,38 +0,0 @@ - - - - - diff --git a/src/views/iot/product/product/detail/ThingModel/dataSpecs/index.ts b/src/views/iot/product/product/detail/ThingModel/dataSpecs/index.ts index 6e0da102..076dcc50 100644 --- a/src/views/iot/product/product/detail/ThingModel/dataSpecs/index.ts +++ b/src/views/iot/product/product/detail/ThingModel/dataSpecs/index.ts @@ -1,5 +1,4 @@ -import ThingModelDataType from './ThingModelDataType.vue' import ThingModelEnumTypeDataSpecs from './ThingModelEnumTypeDataSpecs.vue' import ThingModelNumberTypeDataSpecs from './ThingModelNumberTypeDataSpecs.vue' -export { ThingModelDataType, ThingModelEnumTypeDataSpecs, ThingModelNumberTypeDataSpecs } +export { ThingModelEnumTypeDataSpecs, ThingModelNumberTypeDataSpecs }