mirror of
https://gitee.com/myxzgzs/boyue-ui-admin-vue3
synced 2025-08-08 08:22:41 +08:00
【代码评审】AI:工作流
This commit is contained in:
parent
047b9f327f
commit
05393006c1
@ -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'),
|
||||
@ -676,7 +677,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
|
||||
noCache: true,
|
||||
hidden: true,
|
||||
canTo: true,
|
||||
title: '修改AI工作流',
|
||||
title: '修改 AI 工作流',
|
||||
activeMenu: '/ai/console/workflow'
|
||||
}
|
||||
}
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user