Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-fe
Commits
5147ed7c
Commit
5147ed7c
authored
Nov 06, 2024
by
nick zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 知识库文件icon模糊
parent
ae77e323
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
document-detail.vue
...ews/personal-space/personal-knowledge/document-detail.vue
+1
-1
knowledge-type.ts
...views/personal-space/personal-knowledge/knowledge-type.ts
+1
-0
data-process.vue
...e/upload-knowledge/upload-local-document/data-process.vue
+1
-1
upload-file.vue
...ge/upload-knowledge/upload-local-document/upload-file.vue
+1
-1
No files found.
src/views/personal-space/personal-knowledge/document-detail.vue
View file @
5147ed7c
...
@@ -54,7 +54,7 @@ const currentKnowledgeChunkInfo = ref<KnowledgeChunkItem>({ ...defaultKnowledgeC
...
@@ -54,7 +54,7 @@ const currentKnowledgeChunkInfo = ref<KnowledgeChunkItem>({ ...defaultKnowledgeC
const
documentIcon
=
computed
(()
=>
(
documentUrl
:
string
)
=>
{
const
documentIcon
=
computed
(()
=>
(
documentUrl
:
string
)
=>
{
const
type
=
documentUrl
.
substring
(
documentUrl
.
lastIndexOf
(
'.'
)
+
1
)
const
type
=
documentUrl
.
substring
(
documentUrl
.
lastIndexOf
(
'.'
)
+
1
)
return
`https://gsst-poe-sit.gz.bcebos.com/icon/
${
type
}
.
pn
g`
return
`https://gsst-poe-sit.gz.bcebos.com/icon/
${
type
}
.
sv
g`
})
})
const
emptyKnowledgeChunkListText
=
computed
(()
=>
{
const
emptyKnowledgeChunkListText
=
computed
(()
=>
{
...
...
src/views/personal-space/personal-knowledge/knowledge-type.ts
View file @
5147ed7c
...
@@ -13,6 +13,7 @@ export interface KnowledgeItem {
...
@@ -13,6 +13,7 @@ export interface KnowledgeItem {
trainStatus
:
TrainStatus
trainStatus
:
TrainStatus
isOpen
:
'Y'
|
'N'
isOpen
:
'Y'
|
'N'
createdTime
:
Date
createdTime
:
Date
documentInfos
:
KnowledgeDocumentItem
[]
}
}
export
interface
SegmentationConfigInterface
{
export
interface
SegmentationConfigInterface
{
...
...
src/views/personal-space/personal-knowledge/upload-knowledge/upload-local-document/data-process.vue
View file @
5147ed7c
...
@@ -66,7 +66,7 @@ const trainFileFontColor = computed(() => (status: TrainStatus) => {
...
@@ -66,7 +66,7 @@ const trainFileFontColor = computed(() => (status: TrainStatus) => {
const
trainFileIcon
=
computed
(()
=>
(
documentUrl
:
string
)
=>
{
const
trainFileIcon
=
computed
(()
=>
(
documentUrl
:
string
)
=>
{
const
type
=
documentUrl
.
substring
(
documentUrl
.
lastIndexOf
(
'.'
)
+
1
)
const
type
=
documentUrl
.
substring
(
documentUrl
.
lastIndexOf
(
'.'
)
+
1
)
return
`https://gsst-poe-sit.gz.bcebos.com/icon/
${
type
}
.
pn
g`
return
`https://gsst-poe-sit.gz.bcebos.com/icon/
${
type
}
.
sv
g`
})
})
const
isTrainFileListFinish
=
computed
(()
=>
{
const
isTrainFileListFinish
=
computed
(()
=>
{
...
...
src/views/personal-space/personal-knowledge/upload-knowledge/upload-local-document/upload-file.vue
View file @
5147ed7c
...
@@ -34,7 +34,7 @@ const emit = defineEmits<Emit>()
...
@@ -34,7 +34,7 @@ const emit = defineEmits<Emit>()
const
uploadFileList
=
ref
<
FileItem
[]
>
([])
const
uploadFileList
=
ref
<
FileItem
[]
>
([])
const
uploadFileIcon
=
(
type
:
string
)
=>
{
const
uploadFileIcon
=
(
type
:
string
)
=>
{
return
`https://gsst-poe-sit.gz.bcebos.com/icon/
${
type
}
.
pn
g`
return
`https://gsst-poe-sit.gz.bcebos.com/icon/
${
type
}
.
sv
g`
}
}
const
isDisabledNextBtn
=
computed
(()
=>
{
const
isDisabledNextBtn
=
computed
(()
=>
{
...
...
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