From 7ed1cc83bfa62d8c9660ff1ee61b1f96661ef45a Mon Sep 17 00:00:00 2001 From: hasyim_kai Date: Mon, 17 Nov 2025 15:04:01 +0700 Subject: [PATCH] Feat: add doc preview in Resume List --- app/components/content/resume/list.vue | 8 ++++- .../pub/my-ui/modal/doc-preview-dialog.vue | 29 +++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 app/components/pub/my-ui/modal/doc-preview-dialog.vue diff --git a/app/components/content/resume/list.vue b/app/components/content/resume/list.vue index ad60e0e0..d8d8c721 100644 --- a/app/components/content/resume/list.vue +++ b/app/components/content/resume/list.vue @@ -18,6 +18,7 @@ import Dialog from '~/components/pub/my-ui/modal/dialog.vue' import Confirmation from '~/components/pub/my-ui/confirmation/confirmation.vue' import type { ExposedForm } from '~/types/form' import { VerificationSchema } from '~/schemas/verification.schema' +import DocPreviewDialog from '~/components/pub/my-ui/modal/doc-preview-dialog.vue' // #endregion @@ -41,6 +42,7 @@ const refSearchNav: RefSearchNav = { const verificationInputForm = ref | null>(null) const isVerifyDialogOpen = ref(false) +const isDocPreviewDialogOpen = ref(false) const isRecordConfirmationOpen = ref(false) const summaryLoading = ref(false) @@ -152,7 +154,7 @@ watch([recId, recAction], () => { isRecordConfirmationOpen.value = true break case ActionEvents.showPrint: - navigateTo('https://google.com', {external: true,open: { target: "_blank" },}); + isDocPreviewDialogOpen.value = true break } }) @@ -179,6 +181,10 @@ watch([recId, recAction], () => { + + + + + +const props = defineProps<{ + link: string +}>() + +const emit = defineEmits<{ + // submit: [values: InstallationFormData, resetForm: () => void] + // cancel: [resetForm: () => void] +}>() + +// Form cancel handler +// function onCancelForm({ resetForm }: { resetForm: () => void }) { +// emit('cancel', resetForm) +// } +function onExternalLink() { + navigateTo(props.link, {external: true,open: { target: "_blank" },}); +} + + + \ No newline at end of file