diff --git a/src/api/constants.ts b/src/api/constants.ts index 882dd85d..6231c1fb 100644 --- a/src/api/constants.ts +++ b/src/api/constants.ts @@ -344,6 +344,10 @@ export const actionStepOptions = [ title: i18n.global.t('actionStep.invokePlugin'), value: '调用插件', }, + { + title: i18n.global.t('actionStep.note'), + value: '备注', + }, ] // 操作步骤字典 diff --git a/src/components/dialog/ForkWorkflowDialog.vue b/src/components/dialog/ForkWorkflowDialog.vue index 9c5d3fa0..cdafd443 100644 --- a/src/components/dialog/ForkWorkflowDialog.vue +++ b/src/components/dialog/ForkWorkflowDialog.vue @@ -152,7 +152,7 @@ async function doDelete() {
-
+
+import { useI18n } from 'vue-i18n' + +const { t } = useI18n() + +defineProps({ + id: { + type: String, + required: true, + }, + data: { + type: Object, + required: true, + }, +}) + + + + diff --git a/src/layouts/components/WorkflowSidebar.vue b/src/layouts/components/WorkflowSidebar.vue index 39b1538a..68280251 100644 --- a/src/layouts/components/WorkflowSidebar.vue +++ b/src/layouts/components/WorkflowSidebar.vue @@ -74,6 +74,7 @@ function getActionIcon(type: string): string { 'SendMessageAction': 'mdi-message-arrow-right', 'TransferFileAction': 'mdi-file-move', 'InvokePluginAction': 'mdi-run', + 'NoteAction': 'mdi-note-text', } return iconMap[type] || 'mdi-puzzle-outline' diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts index bf93f477..2bb929e6 100644 --- a/src/locales/en-US.ts +++ b/src/locales/en-US.ts @@ -93,6 +93,7 @@ export default { sendMessage: 'Send Message', transferFile: 'Transfer File', invokePlugin: 'Invoke Plugin', + note: 'Note', }, qualityOptions: { all: 'All', @@ -660,6 +661,12 @@ export default { actionParams: 'Action Parameters', loadPluginSettingFailed: 'Failed to load plugin settings', }, + note: { + title: 'Note', + subtitle: 'Add workflow description notes', + content: 'Note Content', + placeholder: 'Please enter note content...', + }, title: 'Workflow', share: 'Workflow Share', searchShares: 'Search Workflow Shares', diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index e3b296cf..29482e09 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -93,6 +93,7 @@ export default { sendMessage: '发送消息', transferFile: '整理文件', invokePlugin: '调用插件', + note: '备注', }, qualityOptions: { all: '全部', @@ -657,6 +658,12 @@ export default { actionParams: '动作参数', loadPluginSettingFailed: '加载插件设置失败', }, + note: { + title: '备注', + subtitle: '添加流程说明注释', + content: '备注内容', + placeholder: '请输入备注内容...', + }, title: '工作流', share: '工作流分享', searchShares: '搜索工作流分享', diff --git a/src/locales/zh-TW.ts b/src/locales/zh-TW.ts index 561ff853..aa662e31 100644 --- a/src/locales/zh-TW.ts +++ b/src/locales/zh-TW.ts @@ -93,6 +93,7 @@ export default { sendMessage: '發送消息', transferFile: '整理文件', invokePlugin: '調用插件', + note: '備註', }, qualityOptions: { all: '全部', @@ -655,6 +656,12 @@ export default { actionParams: '動作參數', loadPluginSettingFailed: '加載插件設置失敗', }, + note: { + title: '備註', + subtitle: '添加流程說明註釋', + content: '備註內容', + placeholder: '請輸入備註內容...', + }, title: '工作流', share: '工作流分享', searchShares: '搜索工作流分享',