From b3ebefeb02a79ec6cbe37b304e0e559345a9661a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?cls=5F=E5=AE=81=E6=B3=A2=E6=9C=AC=E6=9C=BA?= <908705107@qq.com> Date: Thu, 11 Jun 2026 07:36:17 +0800 Subject: [PATCH] Refine workflow list for agent orchestration --- .../src/views/ai-platform/workflow/index.vue | 40 ++++++++----------- 1 file changed, 16 insertions(+), 24 deletions(-) diff --git a/web/apps/web-ele/src/views/ai-platform/workflow/index.vue b/web/apps/web-ele/src/views/ai-platform/workflow/index.vue index bad90cc..990dd32 100644 --- a/web/apps/web-ele/src/views/ai-platform/workflow/index.vue +++ b/web/apps/web-ele/src/views/ai-platform/workflow/index.vue @@ -36,7 +36,6 @@ import { ElOption, ElPagination, ElSelect, - ElSwitch, ElTag, ElTooltip, } from 'element-plus'; @@ -62,14 +61,20 @@ const appContextStore = useAppContextStore(); // 工作流类型选项 const workflowTypeOptions = computed(() => [ - { label: $t('ai-platform.workflow.type.general'), value: 'general' }, - { label: $t('ai-platform.workflow.type.application'), value: 'application' }, - { label: $t('ai-platform.workflow.type.form'), value: 'form' }, - { label: $t('ai-platform.workflow.type.report'), value: 'report' }, - { label: $t('ai-platform.workflow.type.dataProcess'), value: 'data_process' }, - { label: $t('ai-platform.workflow.type.automation'), value: 'automation' }, + { label: '智能体协作', value: 'general' }, + { label: '自动化编排', value: 'automation' }, + { label: 'LLM 数据流', value: 'data_process' }, ]); +const workflowTypeLabelMap: Record = { + application: '智能体协作', + automation: '自动化编排', + data_process: 'LLM 数据流', + form: '智能体协作', + general: '智能体协作', + report: '智能体协作', +}; + // 弹窗表单数据 const createForm = reactive({ id: '', @@ -81,7 +86,6 @@ const createForm = reactive({ }); // 是否在主应用下(只有主应用才显示“子应用可见”开关) -const isMainApp = !appContextStore.currentApp?.id; const formRef = ref(); const isEditMode = ref(false); const formLoading = ref(false); @@ -344,7 +348,7 @@ const getWorkflowTypeText = (type: string) => { const item = workflowTypeOptions.value.find( (o: { label: string; value: string }) => o.value === type, ); - return item?.label || type; + return item?.label || workflowTypeLabelMap[type] || '智能体协作'; }; const getStatusType = (status: string) => { @@ -469,11 +473,7 @@ onMounted(() => { {{ $t('ai-platform.workflow.publish') }} @@ -518,10 +518,8 @@ onMounted(() => {
- {{ - item.application_name - }} - {{ $t('ai-platform.workflow.mainApp') }} + v{{ item.published_version || item.version || '-' }} · + {{ item.run_count || 0 }} 次运行
{{ item.sys_create_datetime }} @@ -625,12 +623,6 @@ onMounted(() => { :rows="3" /> - - -