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: [ {