@@ -20,7 +20,8 @@ import {
2020 Download ,
2121 Layers ,
2222 Pill ,
23- Library
23+ Library ,
24+ Send
2425} from 'lucide-react' ;
2526import { CDSSResponse , Citation } from '../types' ;
2627import { cn } from '../lib/utils' ;
@@ -804,9 +805,47 @@ export const CenterPanel: React.FC<CenterPanelProps> = ({
804805 </ div >
805806 </ motion . div >
806807 ) }
808+
807809 </ AnimatePresence >
810+
811+ { /* 模块追问功能 */ }
812+ { activeTab !== 'integrated' && (
813+ < motion . div
814+ initial = { { opacity : 0 , y : 10 } }
815+ animate = { { opacity : 1 , y : 0 } }
816+ className = "mt-8 pt-6 border-t border-slate-200/60"
817+ >
818+ < div className = "relative flex items-center bg-white border border-indigo-100 rounded-2xl shadow-[0_2px_10px_-3px_rgba(99,102,241,0.1)] focus-within:ring-4 focus-within:ring-indigo-500/10 focus-within:border-indigo-300 transition-all p-1.5 group" >
819+ < input
820+ type = "text"
821+ placeholder = {
822+ activeTab === 'guidelines' ? '基于当前指南推荐提问,例如:为什么没有推荐放疗?' :
823+ activeTab === 'evidence' ? '基于文献证据提问,例如:是否有关于高龄患者生存率的补充数据?' :
824+ activeTab === 'drug_info' ? '基于说明书提问,例如:出现输液反应时具体该如何处理?' :
825+ activeTab === 'user_kb' ? '基于内部知识库提问,例如:我院对于该亚型有什么特殊的补充检查要求?' :
826+ '输入您的追问...'
827+ }
828+ className = "w-full bg-transparent px-4 py-2.5 text-sm text-slate-700 outline-none placeholder:text-slate-400"
829+ />
830+ < button className = "flex-shrink-0 bg-indigo-600 text-white p-2.5 rounded-xl hover:bg-indigo-700 transition-colors shadow-sm active:scale-95 flex items-center gap-1.5 group-focus-within:bg-indigo-500" >
831+ < span className = "text-xs font-semibold pl-1 hidden sm:inline" > 发送</ span >
832+ < Send className = "w-4 h-4" />
833+ </ button >
834+ </ div >
835+ < div className = "flex items-center gap-2 mt-3 px-2" >
836+ < Sparkles className = "w-3.5 h-3.5 text-indigo-400" />
837+ < span className = "text-xs text-slate-400" > AI 将结合当前患者特征与 < strong className = "text-slate-500 font-medium" > {
838+ activeTab === 'guidelines' ? '指南推荐' :
839+ activeTab === 'evidence' ? '循证证据' :
840+ activeTab === 'drug_info' ? '药品说明书' :
841+ activeTab === 'user_kb' ? '科室私有知识库' : ''
842+ } </ strong > 为您解答</ span >
843+ </ div >
844+ </ motion . div >
845+ ) }
846+
847+ </ div >
808848 </ div >
809- </ div >
810849
811850 { /* Bottom Action Bar */ }
812851 { response ?. diagnosisStatus !== 'unclear' && (
0 commit comments