From 488800b304fbf71eb67bcf6abc717dfbb0dfddf6 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Sun, 15 Dec 2024 00:21:40 +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=E7=BB=84?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B=E7=BB=84=E4=BB=B6=E5=AE=8C?= =?UTF-8?q?=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/ThingModel/ThingModelDataSpecs.vue | 14 +++++++- .../product/detail/ThingModel/config.ts | 6 ---- .../ThingModelArrayTypeDataSpecs.vue | 34 +++++++++++++++++++ .../detail/ThingModel/dataSpecs/index.ts | 3 +- 4 files changed, 49 insertions(+), 8 deletions(-) create mode 100644 src/views/iot/product/product/detail/ThingModel/dataSpecs/ThingModelArrayTypeDataSpecs.vue diff --git a/src/views/iot/product/product/detail/ThingModel/ThingModelDataSpecs.vue b/src/views/iot/product/product/detail/ThingModel/ThingModelDataSpecs.vue index 5a92fb2e..ac585611 100644 --- a/src/views/iot/product/product/detail/ThingModel/ThingModelDataSpecs.vue +++ b/src/views/iot/product/product/detail/ThingModel/ThingModelDataSpecs.vue @@ -47,12 +47,21 @@ + + diff --git a/src/views/iot/product/product/detail/ThingModel/config.ts b/src/views/iot/product/product/detail/ThingModel/config.ts index 1a028ac9..cd9d059d 100644 --- a/src/views/iot/product/product/detail/ThingModel/config.ts +++ b/src/views/iot/product/product/detail/ThingModel/config.ts @@ -10,12 +10,6 @@ export interface DataSpecsNumberDataVO { unitName: string // 单位的名称 } -/** dataSpecs 文本型数据结构 */ -export interface DataSpecsTextDataVO { - dataType: 'TEXT' - length: number -} - /** dataSpecs 枚举型数据结构 */ export interface DataSpecsEnumOrBoolDataVO { dataType: 'enum' | 'bool' diff --git a/src/views/iot/product/product/detail/ThingModel/dataSpecs/ThingModelArrayTypeDataSpecs.vue b/src/views/iot/product/product/detail/ThingModel/dataSpecs/ThingModelArrayTypeDataSpecs.vue new file mode 100644 index 00000000..d96bd7fc --- /dev/null +++ b/src/views/iot/product/product/detail/ThingModel/dataSpecs/ThingModelArrayTypeDataSpecs.vue @@ -0,0 +1,34 @@ + + + + + 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 076dcc50..f2e1daaf 100644 --- a/src/views/iot/product/product/detail/ThingModel/dataSpecs/index.ts +++ b/src/views/iot/product/product/detail/ThingModel/dataSpecs/index.ts @@ -1,4 +1,5 @@ import ThingModelEnumTypeDataSpecs from './ThingModelEnumTypeDataSpecs.vue' import ThingModelNumberTypeDataSpecs from './ThingModelNumberTypeDataSpecs.vue' +import ThingModelArrayTypeDataSpecs from './ThingModelArrayTypeDataSpecs.vue' -export { ThingModelEnumTypeDataSpecs, ThingModelNumberTypeDataSpecs } +export { ThingModelEnumTypeDataSpecs, ThingModelNumberTypeDataSpecs, ThingModelArrayTypeDataSpecs }