From 04becaf3ab49e8151a0725c6c1191ad2215ee44c Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Mon, 4 Aug 2025 19:32:13 +0800 Subject: [PATCH] refactor: fallow flow update --- .../workflow/components/flow-designer.vue | 2 +- .../views/workflow/processDefinition/data.tsx | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/apps/web-antd/src/views/workflow/components/flow-designer.vue b/apps/web-antd/src/views/workflow/components/flow-designer.vue index cce411a1..295546a7 100644 --- a/apps/web-antd/src/views/workflow/components/flow-designer.vue +++ b/apps/web-antd/src/views/workflow/components/flow-designer.vue @@ -21,7 +21,7 @@ const params = { Authorization: `Bearer ${accessStore.accessToken}`, id: definitionId, clientid: clientId, - disabled, + onlyDesignShow: disabled, }; /** diff --git a/apps/web-antd/src/views/workflow/processDefinition/data.tsx b/apps/web-antd/src/views/workflow/processDefinition/data.tsx index dafc2e1a..8b309089 100644 --- a/apps/web-antd/src/views/workflow/processDefinition/data.tsx +++ b/apps/web-antd/src/views/workflow/processDefinition/data.tsx @@ -5,6 +5,17 @@ import { OptionsTag } from '#/components/table'; import { publishStatusOptions } from './constant'; +export const designerModeOptions = [ + { + label: '经典模式', + value: 'CLASSICS', + }, + { + label: '仿钉钉模式', + value: 'MIMIC', + }, +]; + export const querySchema: FormSchemaGetter = () => [ { component: 'Input', @@ -30,6 +41,11 @@ export const columns: VxeGridProps['columns'] = [ title: '流程code', minWidth: 150, }, + // { + // field: 'modelValue', + // title: '设计器模式', + // minWidth: 150, + // }, { field: 'version', title: '版本号', @@ -94,6 +110,17 @@ export const modalSchema: FormSchemaGetter = () => [ label: '流程名称', rules: 'required', }, + { + component: 'RadioGroup', + fieldName: 'modelValue', + label: '设计器模式', + componentProps: { + options: designerModeOptions, + optionType: 'button', + buttonStyle: 'solid', + }, + rules: 'selectRequired', + }, { component: 'Input', fieldName: 'formPath',