【代码评审】AI:工作流

This commit is contained in:
YunaiV 2025-03-25 09:54:55 +08:00
parent 047b9f327f
commit 05393006c1
3 changed files with 17 additions and 4 deletions

View File

@ -668,6 +668,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
activeMenu: '/ai/knowledge'
}
},
// TODO @lesan:type =》 design 设计 AI 工作流
{
path: 'console/workflow/:type/:id',
component: () => import('@/views/ai/workflow/manager/WorkflowModelForm.vue'),

View File

@ -1,3 +1,4 @@
<!-- TODO @lesan要不叫搞个 design 单独一个路由 -->
<template>
<div style="width: 100%; height: calc(100vh - 160px)">
<Tinyflow
@ -10,8 +11,12 @@
/>
</div>
<div class="absolute top-30px right-30px">
<el-button @click="updateWorkflowModel" type="primary" v-hasPermi="['ai:workflow:update']">保存</el-button>
<el-button @click="testWorkflowModel" type="primary" v-hasPermi="['ai:workflow:test']">测试</el-button>
<el-button @click="updateWorkflowModel" type="primary" v-hasPermi="['ai:workflow:update']">
保存
</el-button>
<el-button @click="testWorkflowModel" type="primary" v-hasPermi="['ai:workflow:test']">
测试
</el-button>
</div>
</template>
@ -25,6 +30,7 @@ const message = useMessage() // 消息弹窗
const { t } = useI18n() //
const tinyflowRef = ref()
// TODO @lesan
const provider = ref({ llm: () => [], knowledge: () => [], internal: () => [] })
const initialData = ref()

View File

@ -1,3 +1,4 @@
<!-- TODO @lesan要不直接放到 workflow 根目录 -->
<template>
<!-- 搜索工作栏 -->
<ContentWrap>
@ -40,7 +41,12 @@
<el-form-item>
<el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
<el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
<el-button type="primary" plain @click="openForm('create')" v-hasPermi="['ai:workflow:create']">
<el-button
type="primary"
plain
@click="openForm('create')"
v-hasPermi="['ai:workflow:create']"
>
<Icon icon="ep:plus" /> 新增
</el-button>
</el-form-item>