Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
05393006
authored
Mar 25, 2025
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【代码评审】AI:工作流
parent
047b9f32
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
4 deletions
+17
-4
src/router/modules/remaining.ts
+2
-1
src/views/ai/workflow/manager/WorkflowModelForm.vue
+8
-2
src/views/ai/workflow/manager/index.vue
+7
-1
No files found.
src/router/modules/remaining.ts
View file @
05393006
...
...
@@ -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'
}
}
...
...
src/views/ai/workflow/manager/WorkflowModelForm.vue
View file @
05393006
<!-- 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
()
...
...
src/views/ai/workflow/manager/index.vue
View file @
05393006
<!-- 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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment