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
38c485b2
authored
Aug 10, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【功能新增】AI 大模型:支持思维导图的管理
parent
ab110f91
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
20 deletions
+10
-20
src/views/ai/mindmap/manager/index.vue
+10
-20
No files found.
src/views/ai/mindmap/manager/index.vue
View file @
38c485b2
...
@@ -94,16 +94,9 @@
...
@@ -94,16 +94,9 @@
</ContentWrap>
</ContentWrap>
<!-- 思维导图的预览 -->
<!-- 思维导图的预览 -->
<el-drawer
<el-drawer
v-model=
"previewVisible"
:with-header=
"false"
size=
"800px"
>
v-model=
"previewVisible"
:with-header=
"false"
size=
"800px"
@
opened=
"openedHandler"
@
close=
"closeHandler"
>
<Right
<Right
ref=
"rightRef"
v-if=
"previewVisible2"
v-if=
"drawerOpened"
:generatedContent=
"previewContent"
:generatedContent=
"previewContent"
:isEnd=
"true"
:isEnd=
"true"
:isGenerating=
"false"
:isGenerating=
"false"
...
@@ -175,19 +168,16 @@ const handleDelete = async (id: number) => {
...
@@ -175,19 +168,16 @@ const handleDelete = async (id: number) => {
}
}
/** 预览操作按钮 */
/** 预览操作按钮 */
const
previewVisible
=
ref
(
false
)
const
previewVisible
=
ref
(
false
)
// drawer 的显示隐藏
const
previewVisible2
=
ref
(
false
)
// right 的显示隐藏
const
previewContent
=
ref
(
''
)
const
previewContent
=
ref
(
''
)
const
openPreview
=
(
row
:
MindMapVO
)
=>
{
const
openPreview
=
async
(
row
:
MindMapVO
)
=>
{
preview
Content
.
value
=
row
.
generatedContent
preview
Visible2
.
value
=
false
previewVisible
.
value
=
true
previewVisible
.
value
=
true
}
// 在 drawer 渲染完后,再渲染 right 预览,不然会报错,需要保证 width 宽度先出来
await
nextTick
()
const
drawerOpened
=
ref
(
false
)
// drawer组件是否完全展开
previewVisible2
.
value
=
true
const
openedHandler
=
()
=>
{
// drawer完全打开时再渲染预览组件
previewContent
.
value
=
row
.
generatedContent
drawerOpened
.
value
=
true
}
const
closeHandler
=
()
=>
{
// drawer关闭时回调,更改一下drawerOpened的值为false
drawerOpened
.
value
=
false
}
}
/** 初始化 **/
/** 初始化 **/
...
...
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