diff --git a/easyflow-ui-admin/app/index.html b/easyflow-ui-admin/app/index.html index e622043..b642016 100644 --- a/easyflow-ui-admin/app/index.html +++ b/easyflow-ui-admin/app/index.html @@ -15,10 +15,10 @@ diff --git a/easyflow-ui-admin/app/package.json b/easyflow-ui-admin/app/package.json index 7fa4cb8..200d647 100644 --- a/easyflow-ui-admin/app/package.json +++ b/easyflow-ui-admin/app/package.json @@ -29,10 +29,10 @@ "@easyflow/types": "workspace:*", "@easyflow/utils": "workspace:*", "@element-plus/icons-vue": "^2.3.2", - "@wangeditor/editor": "^5.1.23", - "@wangeditor/editor-for-vue": "^5.1.12", "@tinyflow-ai/vue": "workspace:*", "@vueuse/core": "catalog:", + "@wangeditor/editor": "^5.1.23", + "@wangeditor/editor-for-vue": "^5.1.12", "dayjs": "catalog:", "dompurify": "^3.3.1", "element-plus": "catalog:", diff --git a/easyflow-ui-admin/app/src/adapter/component/index.ts b/easyflow-ui-admin/app/src/adapter/component/index.ts index d8d83aa..31ed4ec 100644 --- a/easyflow-ui-admin/app/src/adapter/component/index.ts +++ b/easyflow-ui-admin/app/src/adapter/component/index.ts @@ -10,7 +10,11 @@ import type { Recordable } from '@easyflow/types'; import { defineAsyncComponent, defineComponent, h, ref } from 'vue'; -import { ApiComponent, globalShareState, IconPicker } from '@easyflow/common-ui'; +import { + ApiComponent, + globalShareState, + IconPicker, +} from '@easyflow/common-ui'; import { $t } from '@easyflow/locales'; import { ElNotification } from 'element-plus'; diff --git a/easyflow-ui-admin/app/src/adapter/form.ts b/easyflow-ui-admin/app/src/adapter/form.ts index f4068ce..dbe04d0 100644 --- a/easyflow-ui-admin/app/src/adapter/form.ts +++ b/easyflow-ui-admin/app/src/adapter/form.ts @@ -1,11 +1,15 @@ import type { - EasyFlowFormSchema as FormSchema, EasyFlowFormProps, + EasyFlowFormSchema as FormSchema, } from '@easyflow/common-ui'; import type { ComponentType } from './component'; -import { setupEasyFlowForm, useEasyFlowForm as useForm, z } from '@easyflow/common-ui'; +import { + setupEasyFlowForm, + useEasyFlowForm as useForm, + z, +} from '@easyflow/common-ui'; import { $t } from '@easyflow/locales'; async function initSetupEasyFlowForm() { diff --git a/easyflow-ui-admin/app/src/adapter/vxe-table.ts b/easyflow-ui-admin/app/src/adapter/vxe-table.ts index 1b73c06..3b98df3 100644 --- a/easyflow-ui-admin/app/src/adapter/vxe-table.ts +++ b/easyflow-ui-admin/app/src/adapter/vxe-table.ts @@ -2,7 +2,10 @@ import type { VxeTableGridOptions } from '@easyflow/plugins/vxe-table'; import { h } from 'vue'; -import { setupEasyFlowVxeTable, useEasyFlowVxeGrid } from '@easyflow/plugins/vxe-table'; +import { + setupEasyFlowVxeTable, + useEasyFlowVxeGrid, +} from '@easyflow/plugins/vxe-table'; import { ElButton, ElImage } from 'element-plus'; diff --git a/easyflow-ui-admin/app/src/api/ai/knowledge.ts b/easyflow-ui-admin/app/src/api/ai/knowledge.ts index e69de29..cb0ff5c 100644 --- a/easyflow-ui-admin/app/src/api/ai/knowledge.ts +++ b/easyflow-ui-admin/app/src/api/ai/knowledge.ts @@ -0,0 +1 @@ +export {}; diff --git a/easyflow-ui-admin/app/src/components/cardPage/CardPage.vue b/easyflow-ui-admin/app/src/components/cardPage/CardPage.vue index b16053d..d377b5a 100644 --- a/easyflow-ui-admin/app/src/components/cardPage/CardPage.vue +++ b/easyflow-ui-admin/app/src/components/cardPage/CardPage.vue @@ -144,143 +144,8 @@ const filteredActions = computed(() => { diff --git a/easyflow-ui-admin/app/src/components/categoryPanel/CategoryCrudPanel.vue b/easyflow-ui-admin/app/src/components/categoryPanel/CategoryCrudPanel.vue index 39465c9..6f9017e 100644 --- a/easyflow-ui-admin/app/src/components/categoryPanel/CategoryCrudPanel.vue +++ b/easyflow-ui-admin/app/src/components/categoryPanel/CategoryCrudPanel.vue @@ -283,28 +283,28 @@ const handleDeleteClick = (event: any, item: any) => { diff --git a/easyflow-ui-admin/app/src/components/chat-history/ChatHistoryDetailDrawer.vue b/easyflow-ui-admin/app/src/components/chat-history/ChatHistoryDetailDrawer.vue index 30186f5..bfe94e4 100644 --- a/easyflow-ui-admin/app/src/components/chat-history/ChatHistoryDetailDrawer.vue +++ b/easyflow-ui-admin/app/src/components/chat-history/ChatHistoryDetailDrawer.vue @@ -1,7 +1,7 @@ - + diff --git a/easyflow-ui-admin/app/src/views/ai/workflow/WorkflowDesign.vue b/easyflow-ui-admin/app/src/views/ai/workflow/WorkflowDesign.vue index ff8a75a..fe3932c 100644 --- a/easyflow-ui-admin/app/src/views/ai/workflow/WorkflowDesign.vue +++ b/easyflow-ui-admin/app/src/views/ai/workflow/WorkflowDesign.vue @@ -4,7 +4,6 @@ import { useRoute } from 'vue-router'; import { usePreferences } from '@easyflow/preferences'; import { getOptions, sortNodes } from '@easyflow/utils'; -import { getIconByValue } from '#/views/ai/model/modelUtils/defaultIcon'; import { ArrowLeft, CircleCheck, Close } from '@element-plus/icons-vue'; import { Tinyflow } from '@tinyflow-ai/vue'; @@ -14,6 +13,7 @@ import { api } from '#/api/request'; import CommonSelectDataModal from '#/components/commonSelectModal/CommonSelectDataModal.vue'; import { $t } from '#/locales'; import { router } from '#/router'; +import { getIconByValue } from '#/views/ai/model/modelUtils/defaultIcon'; import ExecResult from '#/views/ai/workflow/components/ExecResult.vue'; import SingleRun from '#/views/ai/workflow/components/SingleRun.vue'; import WorkflowForm from '#/views/ai/workflow/components/WorkflowForm.vue'; @@ -143,7 +143,7 @@ const issueFocusActive = ref(false); const focusedIssueKey = ref(''); let focusPulseTimer: ReturnType | undefined; -type WorkflowCheckStage = 'SAVE' | 'PRE_EXECUTE'; +type WorkflowCheckStage = 'PRE_EXECUTE' | 'SAVE'; const builtInNodeIconMap: Record = { startNode: '', @@ -395,6 +395,15 @@ function checkStageText(stage?: string) { } return '-'; } + +function checkStageSummaryText(stage?: string) { + return `${$t('aiWorkflow.checkStageLabel')}:${checkStageText(stage)}`; +} + +function checkIssueCountText(count?: number) { + return `${$t('aiWorkflow.issueCount')}:${count || 0}`; +} + function issueKey(issue: any, index: number) { return `${issue.code || '-'}-${issue.nodeId || '-'}-${issue.edgeId || '-'}-${index}`; } @@ -616,16 +625,8 @@ function onAsyncExecute(info: any) { />
- {{ $t('aiWorkflow.checkStageLabel') }}:{{ - checkStageText(checkResult?.stage) - }} - {{ $t('aiWorkflow.issueCount') }}:{{ - checkResult?.issueCount || 0 - }} + +