From 538d04a38051cfbc4f3716029637d8fd6194c092 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 20 May 2026 09:54:33 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=88iot=EF=BC=89:=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=20data=20rule=EF=BC=8C=E4=BD=BF=E7=94=A8=20vxe=20=E7=AE=80?= =?UTF-8?q?=E5=8C=96=E8=A1=A8=E5=8D=95=EF=BC=8C=E6=8F=90=E5=8D=87=20antd?= =?UTF-8?q?=E3=80=81ele=20=E7=9A=84=E4=BB=A3=E7=A0=81=E5=A4=8D=E7=94=A8?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/iot/rule/data/rule/data.ts | 36 +++ .../data/rule/modules/source-config-form.vue | 301 +++++++++--------- 2 files changed, 178 insertions(+), 159 deletions(-) diff --git a/apps/web-antd/src/views/iot/rule/data/rule/data.ts b/apps/web-antd/src/views/iot/rule/data/rule/data.ts index 9e07c8573..fc496dc93 100644 --- a/apps/web-antd/src/views/iot/rule/data/rule/data.ts +++ b/apps/web-antd/src/views/iot/rule/data/rule/data.ts @@ -98,6 +98,42 @@ export function useRuleFormSchema(): VbenFormSchema[] { ]; } +/** 数据源配置(行编辑表)的字段 */ +export function useSourceConfigColumns(): VxeTableGridOptions['columns'] { + return [ + { + field: 'productId', + title: '产品', + minWidth: 200, + slots: { default: 'productId' }, + }, + { + field: 'deviceId', + title: '设备', + minWidth: 200, + slots: { default: 'deviceId' }, + }, + { + field: 'method', + title: '消息', + minWidth: 200, + slots: { default: 'method' }, + }, + { + field: 'identifier', + title: '标识符', + minWidth: 250, + slots: { default: 'identifier' }, + }, + { + title: '操作', + width: 80, + fixed: 'right', + slots: { default: 'actions' }, + }, + ]; +} + /** 列表的字段 */ export function useGridColumns(): VxeTableGridOptions['columns'] { return [ diff --git a/apps/web-antd/src/views/iot/rule/data/rule/modules/source-config-form.vue b/apps/web-antd/src/views/iot/rule/data/rule/modules/source-config-form.vue index 0e4cbef37..ce545c8ab 100644 --- a/apps/web-antd/src/views/iot/rule/data/rule/modules/source-config-form.vue +++ b/apps/web-antd/src/views/iot/rule/data/rule/modules/source-config-form.vue @@ -1,33 +1,30 @@