From 1d112d56632322f89f256545ee46e50f8d226dfd Mon Sep 17 00:00:00 2001 From: puhui999 Date: Sat, 14 Dec 2024 23:27:27 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E3=80=91IOT:=20=E7=89=A9=E6=A8=A1=E5=9E=8B=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E7=BB=84=E4=BB=B6=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/ThingModel/ThingModelDataSpecs.vue | 98 +++++-------------- .../product/detail/ThingModel/config.ts | 13 +++ .../dataSpecs/ThingModelDataType.vue | 38 ------- .../detail/ThingModel/dataSpecs/index.ts | 3 +- 4 files changed, 38 insertions(+), 114 deletions(-) delete mode 100644 src/views/iot/product/product/detail/ThingModel/dataSpecs/ThingModelDataType.vue 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 }