From b1ae56281d79ce8f9b0390964de96a4c790987db Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 25 Jun 2025 13:22:38 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E3=80=90IoT=20=E7=89=A9=E8=81=94?= =?UTF-8?q?=E7=BD=91=E3=80=91=E7=BB=A7=E7=BB=AD=E5=AE=9E=E7=8E=B0=E2=80=9C?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=B5=81=E8=BD=AC=E2=80=9D=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/iot/rule/data/rule/index.ts | 4 +- src/views/iot/rule/data/rule/DataRuleForm.vue | 79 +++-- .../data/rule/components/SourceConfigForm.vue | 272 ++++++++++++++++++ src/views/iot/rule/data/rule/index.vue | 16 +- src/views/iot/rule/data/sink/DataSinkForm.vue | 18 +- 5 files changed, 346 insertions(+), 43 deletions(-) create mode 100644 src/views/iot/rule/data/rule/components/SourceConfigForm.vue diff --git a/src/api/iot/rule/data/rule/index.ts b/src/api/iot/rule/data/rule/index.ts index ebd050132..f8059611b 100644 --- a/src/api/iot/rule/data/rule/index.ts +++ b/src/api/iot/rule/data/rule/index.ts @@ -6,8 +6,8 @@ export interface DataRule { name?: string // 场景名称 description: string // 场景描述 status?: number // 场景状态 - sourceConfigs?: string // 数据源配置数组 - sinkIds?: string // 数据目的编号数组 + sourceConfigs?: any[] // 数据源配置数组 + sinkIds?: number[] // 数据目的编号数组 } // IoT 数据流转规则 API diff --git a/src/views/iot/rule/data/rule/DataRuleForm.vue b/src/views/iot/rule/data/rule/DataRuleForm.vue index 3ebb7aec8..c6beb5135 100644 --- a/src/views/iot/rule/data/rule/DataRuleForm.vue +++ b/src/views/iot/rule/data/rule/DataRuleForm.vue @@ -1,5 +1,5 @@