hrms-user/src/modules/06_evaluate/components/viewstep/viewStep7.vue

56 lines
1.2 KiB
Vue
Raw Normal View History

2023-12-13 16:56:43 +07:00
<script setup lang="ts">
2023-12-27 15:18:23 +07:00
import { ref } from "vue";
import DialogHeader from "@/components/DialogHeader.vue";
2023-12-14 14:49:27 +07:00
import ViewPDF from "@/modules/06_evaluate/components/viewstep/viewPDF.vue";
2023-12-13 16:56:43 +07:00
2023-12-22 16:00:05 +07:00
const props = defineProps({
pdfSrc: {
type: String,
},
urlDownloadFile: {
type: String,
},
2023-12-22 16:00:05 +07:00
});
2023-12-27 15:18:23 +07:00
const modalPerview = ref<boolean>(false);
2023-12-13 16:56:43 +07:00
</script>
<template>
2023-12-27 15:18:23 +07:00
<div class="col-12 row">
<q-space />
<q-btn
flat
round
color="primary"
icon="download"
target="_blank"
:href="props.urlDownloadFile"
>
2023-12-27 15:18:23 +07:00
<q-tooltip>ดาวนโหลด</q-tooltip>
</q-btn>
<q-btn
flat
round
color="primary"
icon="mdi-fullscreen"
@click="modalPerview = true"
><q-tooltip>เตมจอ</q-tooltip></q-btn
>
</div>
2023-12-22 16:00:05 +07:00
<ViewPDF :pdfSrc="props.pdfSrc" />
2023-12-27 15:18:23 +07:00
<q-dialog v-model="modalPerview" full-width fullHeight>
<q-card>
<q-card-section>
<DialogHeader :close="() => (modalPerview = false)" />
</q-card-section>
<q-card-section class="q-pt-none">
<ViewPDF :pdfSrc="props.pdfSrc" :type="'popup'" />
</q-card-section>
</q-card>
</q-dialog>
2023-12-13 16:56:43 +07:00
</template>
<style scoped></style>