From 01f7c39e9b7cd4e66efe08023ee57c535f972a93 Mon Sep 17 00:00:00 2001 From: Junyi Date: Tue, 15 Oct 2024 20:20:10 +0800 Subject: [PATCH] fix(plugin-workflow): fix hint of update node (#5426) --- .../@nocobase/plugin-workflow/src/client/nodes/update.tsx | 2 +- .../plugins/@nocobase/plugin-workflow/src/locale/zh-CN.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/update.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/update.tsx index e1d291faae..46b0f42fc0 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/update.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/update.tsx @@ -73,7 +73,7 @@ export default class extends Instruction { { label: `{{t("Update in a batch", { ns: "${NAMESPACE}" })}}`, value: false, - tooltip: `{{t("Update all eligible data at one time, which has better performance when the amount of data is large. But the updated data will not trigger other workflows, and will not record audit logs.", { ns: "${NAMESPACE}" })}}`, + tooltip: `{{t("Update all eligible data at one time, which has better performance when the amount of data is large. But association fields are not supported (unless foreign key in current collection), and the updated data will not trigger other workflows.", { ns: "${NAMESPACE}" })}}`, }, { label: `{{t("Update one by one", { ns: "${NAMESPACE}" })}}`, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/locale/zh-CN.json b/packages/plugins/@nocobase/plugin-workflow/src/locale/zh-CN.json index ed7565f3e2..170bba5b2f 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/locale/zh-CN.json +++ b/packages/plugins/@nocobase/plugin-workflow/src/locale/zh-CN.json @@ -169,8 +169,8 @@ "Update mode": "更新模式", "Update in a batch": "批量更新", "Update one by one": "逐条更新", - "Update all eligible data at one time, which has better performance when the amount of data is large. But the updated data will not trigger other workflows, and will not record audit logs.": - "一次性更新所有符合条件的数据,在数据量较大时有比较好的性能;但被更新的数据不会触发其他工作流,也不会记录更新日志。", + "Update all eligible data at one time, which has better performance when the amount of data is large. But association fields are not supported (unless foreign key in current collection), and the updated data will not trigger other workflows.": + "一次性更新所有符合条件的数据,在数据量较大时有比较好的性能;但不支持关系字段的更新(除非是在当前表中的外键),被更新的数据也不会触发其他工作流。", "The updated data can trigger other workflows, and the audit log will also be recorded. But it is usually only applicable to several or dozens of pieces of data, otherwise there will be performance problems.": "被更新的数据可以再次触发其他工作流,也会记录更新日志;但通常只适用于数条或数十条数据,否则会有性能问题。", "Query record": "查询数据",