From b223494bffada5000563f69557d8f503bec0897d Mon Sep 17 00:00:00 2001 From: TAIA Date: Mon, 21 Jul 2025 15:16:34 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=EF=BC=9A=E6=8A=A5=E8=A1=A8=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=AD=97=E6=AE=B5=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DataPreview/assign/assignDataView.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/DataPreview/assign/assignDataView.tsx b/src/components/DataPreview/assign/assignDataView.tsx index 877911fab..35241929b 100644 --- a/src/components/DataPreview/assign/assignDataView.tsx +++ b/src/components/DataPreview/assign/assignDataView.tsx @@ -53,8 +53,8 @@ export function AssignDataView({ assignTask }: IProps) { for (const d of things) { for (const attr of form.attributes) { - d[attr.id] = d[`R${attr.propId}`]; - delete d[`R${attr.propId}`]; + d[attr.id] = d[`T${attr.propId}`]; + delete d[`T${attr.propId}`]; } } -- Gitee From ceafddbc725bececd4d5eb860917944254f714d9 Mon Sep 17 00:00:00 2001 From: wangyang <123456@123.com> Date: Mon, 21 Jul 2025 15:33:44 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B7=B2=E5=AE=8C?= =?UTF-8?q?=E7=BB=93=E6=9C=88=E6=8A=A5=E6=97=A0=E6=B3=95=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DataPreview/assign/assignDataView.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/DataPreview/assign/assignDataView.tsx b/src/components/DataPreview/assign/assignDataView.tsx index 877911fab..adf88c9aa 100644 --- a/src/components/DataPreview/assign/assignDataView.tsx +++ b/src/components/DataPreview/assign/assignDataView.tsx @@ -53,8 +53,16 @@ export function AssignDataView({ assignTask }: IProps) { for (const d of things) { for (const attr of form.attributes) { - d[attr.id] = d[`R${attr.propId}`]; - delete d[`R${attr.propId}`]; + if (d[`R${attr.propId}`]) { + d[attr.id] = d[`R${attr.propId}`]; + } else { + d[attr.id] = d[`T${attr.propId}`]; + } + if (delete d[`R${attr.propId}`]) { + delete d[`R${attr.propId}`]; + } else { + delete d[`T${attr.propId}`]; + } } } -- Gitee