diff --git a/frontend/src/components/business/ms-detail-drawer/index.vue b/frontend/src/components/business/ms-detail-drawer/index.vue index 04b925845c..f8b0f77803 100644 --- a/frontend/src/components/business/ms-detail-drawer/index.vue +++ b/frontend/src/components/business/ms-detail-drawer/index.vue @@ -111,6 +111,16 @@ } ); + watch( + () => props.detailId, + (val) => { + nextTick(() => { + // 为了确保 prevNextButtonRef 已渲染 + openNextDetail(); + }); + } + ); + defineExpose({ initDetail, openPrevDetail, diff --git a/frontend/src/components/business/ms-prev-next-button/index.vue b/frontend/src/components/business/ms-prev-next-button/index.vue index 40d69cc31e..af8c5cfa5f 100644 --- a/frontend/src/components/business/ms-prev-next-button/index.vue +++ b/frontend/src/components/business/ms-prev-next-button/index.vue @@ -78,7 +78,8 @@ () => props.detailId, (val) => { activeDetailId.value = val; - } + }, + { immediate: true } ); const activeDetailIndex = ref(props.detailIndex); diff --git a/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue b/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue index a6b02a4fe5..909fcdcb3a 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue @@ -46,18 +46,19 @@ @batch-action="handleTableBatch" @change="changeHandler" @module-change="initData()" + @cell-click="showCaseDetailEvent" > - + @@ -345,7 +346,7 @@