From b6cfd9646bb823e81e5f71de67133bfca8c6c2be Mon Sep 17 00:00:00 2001 From: HuangHai <10402852@qq.com> Date: Tue, 15 Jul 2025 13:46:49 +0800 Subject: [PATCH] 'commit' --- dsLightRag/static/ChangChunManager.html | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/dsLightRag/static/ChangChunManager.html b/dsLightRag/static/ChangChunManager.html index b29c1cfe..a5193349 100644 --- a/dsLightRag/static/ChangChunManager.html +++ b/dsLightRag/static/ChangChunManager.html @@ -41,10 +41,18 @@ elem: '#sourceTable', url: '/api/sources', page: true, + parseData: function(res) { // 新增parseData函数处理返回数据 + return { + "code": res.code, + "msg": res.msg, + "count": res.data.total, + "data": res.data.list + }; + }, cols: [[ {field: 'id', title: 'ID', width:80}, - {field: 'name', title: '简称'}, - {field: 'type', title: '名称'}, + {field: 'name', title: '账号名称'}, + {field: 'type', title: '来源类型'}, {field: 'update_time', title: '更新时间'} ]] }); @@ -54,6 +62,14 @@ elem: '#articleTable', url: '/api/articles', page: true, + parseData: function(res) { + return { + "code": res.code, + "msg": res.msg, + "count": res.data.total, + "data": res.data.list + }; + }, cols: [[ {field: 'id', title: 'ID', width:80}, {field: 'title', title: '标题'},