From dc5998cf7247244a31fc57754dd7ff00ffd328ad Mon Sep 17 00:00:00 2001 From: v-zhangjc9 Date: Fri, 30 May 2025 17:35:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(web):=20=E5=A2=9E=E5=8A=A0=E5=91=BD?= =?UTF-8?q?=E4=B8=AD=E6=B5=8B=E8=AF=95=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/ai/knowledge/DataDetail.tsx | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/service-web/client/src/pages/ai/knowledge/DataDetail.tsx b/service-web/client/src/pages/ai/knowledge/DataDetail.tsx index dd1cb41..8be9b96 100644 --- a/service-web/client/src/pages/ai/knowledge/DataDetail.tsx +++ b/service-web/client/src/pages/ai/knowledge/DataDetail.tsx @@ -62,6 +62,42 @@ const DataDetail: React.FC = () => { }, }, }, + { + type: 'action', + icon: 'fa fa-magnifying-glass', + label: '', + tooltip: '命中测试', + tooltipPlacement: 'top', + actionType: 'dialog', + dialog: { + title: '命中测试', + size: 'lg', + actions: [], + body: [ + { + type: 'input-text', + addOn: { + type: 'action', + label: '检索', + icon: 'fa fa-magnifying-glass', + }, + }, + { + name: '182e8657-5352-42ad-9ab4-8252d33eef91', + type: 'crud', + source: '${search_items}', + ...crudCommonOptions(), + canAccessSuperData: false, + columns: [ + { + name: 'text', + label: '内容', + }, + ], + }, + ], + }, + }, ], columns: [ {