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
aeb59de6
authored
Feb 28, 2025
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【功能新增】AI:知识库文档上传:40%,SplitStep 初始化
parent
7cd6a5d9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
132 additions
and
111 deletions
+132
-111
src/views/ai/knowledge/document/create/SplitStep.vue
+123
-104
src/views/ai/knowledge/document/create/UploadStep.vue
+9
-7
No files found.
src/views/ai/knowledge/document/create/SplitStep.vue
View file @
aeb59de6
This diff is collapsed.
Click to expand it.
src/views/ai/knowledge/document/create/UploadStep.vue
View file @
aeb59de6
...
...
@@ -2,7 +2,9 @@
<el-form
ref=
"formRef"
:model=
"modelData"
label-width=
"0"
class=
"mt-20px"
>
<el-form-item
class=
"mb-20px"
>
<div
class=
"w-full"
>
<div
class=
"w-full border-2 border-[#dcdfe6] rounded-md text-center hover:border-[#409eff]"
>
<div
class=
"w-full border-2 border-dashed border-[#dcdfe6] rounded-md p-20px text-center hover:border-[#409eff]"
>
<el-upload
ref=
"uploadRef"
class=
"upload-demo"
...
...
@@ -35,18 +37,18 @@
<div
v-if=
"modelData.list && modelData.list.length > 0"
class=
"mt-15px grid grid-cols-1 gap-
3
"
class=
"mt-15px grid grid-cols-1 gap-
2
"
>
<div
v-for=
"(file, index) in modelData.list"
:key=
"index"
class=
"flex justify-between items-center p
-10px border-2 border-[#c0c4cc] rounded-md shadow-sm hover:border-[#409eff] transition-colors
duration-300"
class=
"flex justify-between items-center p
y-4px px-12px border-l-4 border-l-[#409eff] rounded-sm shadow-sm hover:bg-[#ecf5ff] transition-all
duration-300"
>
<div
class=
"flex items-center"
>
<el-icon
class=
"mr-8px text-[#
909399
]"
><document
/></el-icon>
<span
class=
"text-[1
4px] text-[#606266
] break-all"
>
{{
file
.
name
}}
</span>
<el-icon
class=
"mr-8px text-[#
409eff
]"
><document
/></el-icon>
<span
class=
"text-[1
3px] text-[#303133
] break-all"
>
{{
file
.
name
}}
</span>
</div>
<el-button
type=
"danger"
link
@
click=
"removeFile(index)"
>
<el-button
type=
"danger"
link
@
click=
"removeFile(index)"
class=
"ml-2"
>
<el-icon><delete
/></el-icon>
</el-button>
</div>
...
...
@@ -67,7 +69,7 @@
<
script
lang=
"ts"
setup
>
import
{
PropType
,
ref
,
computed
,
inject
,
getCurrentInstance
,
onMounted
}
from
'vue'
import
{
UploadFilled
,
Document
,
Delete
}
from
'@element-plus/icons-vue'
import
{
Document
,
Delete
}
from
'@element-plus/icons-vue'
// TODO @芋艿:晚点改
import
{
useMessage
}
from
'@/hooks/web/useMessage'
import
{
useUpload
}
from
'@/components/UploadFile/src/useUpload'
import
{
generateAcceptedFileTypes
}
from
'@/utils'
...
...
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