Skip to content

Commit 0539300

Browse files
committed
【代码评审】AI:工作流
1 parent 047b9f3 commit 0539300

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

src/router/modules/remaining.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
668668
activeMenu: '/ai/knowledge'
669669
}
670670
},
671+
// TODO @lesan::type =》 design 设计 AI 工作流
671672
{
672673
path: 'console/workflow/:type/:id',
673674
component: () => import('@/views/ai/workflow/manager/WorkflowModelForm.vue'),
@@ -676,7 +677,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
676677
noCache: true,
677678
hidden: true,
678679
canTo: true,
679-
title: '修改AI工作流',
680+
title: '修改 AI 工作流',
680681
activeMenu: '/ai/console/workflow'
681682
}
682683
}

src/views/ai/workflow/manager/WorkflowModelForm.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- TODO @lesan:要不叫搞个 design 单独一个路由 -->
12
<template>
23
<div style="width: 100%; height: calc(100vh - 160px)">
34
<Tinyflow
@@ -10,8 +11,12 @@
1011
/>
1112
</div>
1213
<div class="absolute top-30px right-30px">
13-
<el-button @click="updateWorkflowModel" type="primary" v-hasPermi="['ai:workflow:update']">保存</el-button>
14-
<el-button @click="testWorkflowModel" type="primary" v-hasPermi="['ai:workflow:test']">测试</el-button>
14+
<el-button @click="updateWorkflowModel" type="primary" v-hasPermi="['ai:workflow:update']">
15+
保存
16+
</el-button>
17+
<el-button @click="testWorkflowModel" type="primary" v-hasPermi="['ai:workflow:test']">
18+
测试
19+
</el-button>
1520
</div>
1621
</template>
1722

@@ -25,6 +30,7 @@ const message = useMessage() // 消息弹窗
2530
const { t } = useI18n() // 国际化
2631
2732
const tinyflowRef = ref()
33+
// TODO @lesan:待接入
2834
const provider = ref({ llm: () => [], knowledge: () => [], internal: () => [] })
2935
const initialData = ref()
3036

src/views/ai/workflow/manager/index.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- TODO @lesan:要不直接放到 workflow 根目录 -->
12
<template>
23
<!-- 搜索工作栏 -->
34
<ContentWrap>
@@ -40,7 +41,12 @@
4041
<el-form-item>
4142
<el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
4243
<el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
43-
<el-button type="primary" plain @click="openForm('create')" v-hasPermi="['ai:workflow:create']">
44+
<el-button
45+
type="primary"
46+
plain
47+
@click="openForm('create')"
48+
v-hasPermi="['ai:workflow:create']"
49+
>
4450
<Icon icon="ep:plus" /> 新增
4551
</el-button>
4652
</el-form-item>

0 commit comments

Comments
 (0)