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
8dde243d
Commit
8dde243d
authored
Dec 10, 2024
by
shirlyn.guo
👌🏻
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.gsstcloud.com/poc/poc-fe
into shirlyn
parents
ff7b0ded
5b8ffb5a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
footer-operation.vue
src/views/home/components/footer-operation.vue
+6
-0
history-menu-sidebar.vue
src/views/home/components/history-menu-sidebar.vue
+3
-0
home.vue
src/views/home/home.vue
+7
-0
No files found.
src/views/home/components/footer-operation.vue
View file @
8dde243d
...
...
@@ -97,6 +97,7 @@ function handleCreateNewSession() {
isAgentResponding
.
value
=
false
emit
(
'createNewSession'
)
handleFileUploadCancel
()
/* 延时,避免页面刷新后,历史记录列表未刷新 */
setTimeout
(()
=>
{
...
...
@@ -111,6 +112,7 @@ function handleCreateNewSession() {
}
emit
(
'createNewSession'
)
handleFileUploadCancel
()
}
}
...
...
@@ -283,6 +285,10 @@ function handleFileUploadCancel() {
function
handleFileUploadReplace
()
{
handleFileUploadPopup
()
}
defineExpose
({
clearSessionReferenceFile
:
handleFileUploadCancel
,
})
</
script
>
<
template
>
...
...
src/views/home/components/history-menu-sidebar.vue
View file @
8dde243d
...
...
@@ -19,6 +19,7 @@ const emit = defineEmits<{
getMessageRecordList
:
[
recordId
:
string
]
createNewSession
:
[]
historyRecordListUpdate
:
[]
clearSessionReferenceFile
:
[]
}
>
()
const
isShowHistoryMenu
=
defineModel
<
boolean
>
({
default
:
true
})
...
...
@@ -143,6 +144,7 @@ function handleRecordItemApply(dialogsId: string) {
isAgentResponding
.
value
=
false
emit
(
'getMessageRecordList'
,
dialogsId
)
emit
(
'clearSessionReferenceFile'
)
/* 延时,避免页面刷新后,历史记录列表未刷新 */
setTimeout
(()
=>
{
...
...
@@ -155,6 +157,7 @@ function handleRecordItemApply(dialogsId: string) {
// })
emit
(
'getMessageRecordList'
,
dialogsId
)
emit
(
'clearSessionReferenceFile'
)
}
}
...
...
src/views/home/home.vue
View file @
8dde243d
...
...
@@ -17,6 +17,7 @@ const { t } = useI18n()
const
homeContainerRef
=
useTemplateRef
<
HTMLDivElement
>
(
'homeContainerRef'
)
const
messageListRef
=
useTemplateRef
<
InstanceType
<
typeof
MessageList
>>
(
'messageListRef'
)
const
historyMenuSidebarRef
=
useTemplateRef
<
InstanceType
<
typeof
HistoryMenuSidebar
>>
(
'historyMenuSidebarRef'
)
const
footerOperationRef
=
useTemplateRef
<
InstanceType
<
typeof
FooterOperation
>>
(
'footerOperationRef'
)
const
{
width
:
homeContainerWidth
}
=
useElementSize
(
homeContainerRef
)
...
...
@@ -195,6 +196,10 @@ function onGetMessageRecordList(recordId: string) {
loadingCtl
.
destroy
()
})
}
function
onClearSessionReferenceFile
()
{
footerOperationRef
.
value
&&
footerOperationRef
.
value
.
clearSessionReferenceFile
()
}
</
script
>
<
template
>
...
...
@@ -213,6 +218,7 @@ function onGetMessageRecordList(recordId: string) {
<MessageList
v-show=
"isShowMessageList"
ref=
"messageListRef"
:message-list=
"messageList"
/>
<FooterOperation
ref=
"footerOperationRef"
v-model:current-agent-application=
"currentAgentApplication"
v-model:is-agent-responding=
"isAgentResponding"
v-model:question-content=
"questionContent"
...
...
@@ -237,6 +243,7 @@ function onGetMessageRecordList(recordId: string) {
@
get-message-record-list=
"onGetMessageRecordList"
@
create-new-session=
"onCreateNewSession"
@
history-record-list-update=
"onHistoryRecordListUpdate"
@
clear-session-reference-file=
"onClearSessionReferenceFile"
/>
</div>
...
...
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