mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复对话日志导出,引用分段数、分段标题+内容、知识库检索结果 显示错误的缺陷
--bug=1048277 --user=王孝刚 【应用编排】对话日志导出,引用分段数、分段标题+内容、知识库检索结果 显示错误 https://www.tapd.cn/57709429/s/1599889
This commit is contained in:
parent
7babed349a
commit
c39c943971
|
|
@ -176,7 +176,8 @@ class ChatSerializers(serializers.Serializer):
|
|||
paragraph_list = details.get('search_step').get(
|
||||
'paragraph_list') if 'search_step' in details and 'paragraph_list' in details.get('search_step') else []
|
||||
for key, node in details.items():
|
||||
if node.get('type') == 'search-dataset-node':
|
||||
if node.get('type') == 'search-dataset-node' and node.get('paragraph_list') is not None and len(
|
||||
node.get('paragraph_list')) > 0:
|
||||
paragraph_list = node.get('paragraph_list')
|
||||
improve_paragraph_list = row.get('improve_paragraph_list')
|
||||
vote_status_map = {'-1': '未投票', '0': '赞同', '1': '反对'}
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
<app-table
|
||||
:data="tableData"
|
||||
:pagination-config="paginationConfig"
|
||||
@sizeChange="handleSizeChange"
|
||||
@sizeChange="getList"
|
||||
@changePage="getList"
|
||||
@row-click="rowClickHandle"
|
||||
v-loading="loading"
|
||||
|
|
@ -362,13 +362,7 @@ function deleteLog(row: any) {
|
|||
.catch(() => {})
|
||||
}
|
||||
|
||||
function handleSizeChange() {
|
||||
paginationConfig.current_page = 1
|
||||
getList()
|
||||
}
|
||||
|
||||
function getList() {
|
||||
paginationConfig.current_page = 1
|
||||
let obj: any = {
|
||||
start_time: daterange.value.start_time,
|
||||
end_time: daterange.value.end_time,
|
||||
|
|
|
|||
Loading…
Reference in New Issue