diff --git a/src/views/review/meeting/MeetingEdit.vue b/src/views/review/meeting/MeetingEdit.vue index 239c28865..d5fe62ee2 100644 --- a/src/views/review/meeting/MeetingEdit.vue +++ b/src/views/review/meeting/MeetingEdit.vue @@ -244,6 +244,15 @@ + + + @@ -269,6 +278,7 @@ import { getReviewProjectPage, updateReviewProjectTimeBatch } from '@/api/review import { getExpertUserList } from '@/api/system/user/index' import download from '@/utils/download' import ExpertSelectTable from './components/ExpertSelectTable.vue' +import FilePreviewDialog from './components/FilePreviewDialog.vue' import { applyDefaultReviewDate } from './projectReviewDate' import { buildScheduledProjectItems, @@ -297,6 +307,10 @@ const isSubmitting = ref(false) // 防止重复提交 const agendaDialogVisible = ref(false) const agendaDialogLoading = ref(false) +// 预览对话框 +const previewDialogVisible = ref(false) +const previewAttachmentType = ref<'agenda' | 'minutes'>('agenda') + // 从路由参数判断模式 const meetingId = computed(() => { const id = route.params.id @@ -537,13 +551,15 @@ const clearAgendaAttachment = () => { const previewAgendaAttachment = () => { if (formData.agendaAttachmentUrl) { - window.open(formData.agendaAttachmentUrl, '_blank') + previewAttachmentType.value = 'agenda' + previewDialogVisible.value = true } } const previewMinutesAttachment = () => { if (formData.minutesAttachmentUrl) { - window.open(formData.minutesAttachmentUrl, '_blank') + previewAttachmentType.value = 'minutes' + previewDialogVisible.value = true } }