|
|
@@ -247,9 +247,16 @@ const WorklistPage: React.FC = () => {
|
|
|
currentWork={currentStudy}
|
|
|
onSuccess={() => {
|
|
|
setIsAppendModalOpen(false);
|
|
|
- // 追加成功后进入检查
|
|
|
+ // 追加成功后选中该study,然后进入检查
|
|
|
if (currentStudy) {
|
|
|
- console.log('[WorklistPage] 追加成功,进入检查:', currentStudy.StudyID);
|
|
|
+ const studyId = currentStudy.StudyID;
|
|
|
+ const entryId = currentStudy.entry_id;
|
|
|
+
|
|
|
+ // 更新选中状态
|
|
|
+ dispatch(workSelectionSlice.actions.setSelectedIds([studyId]));
|
|
|
+ dispatch(workSelectionSlice.actions.setSelectedSecondaryIds(entryId ? [entryId] : []));
|
|
|
+
|
|
|
+ console.log('[WorklistPage] 追加成功,选中study:', studyId, '进入检查');
|
|
|
worklistToExam(currentStudy);
|
|
|
}
|
|
|
}}
|