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

59 lines
1.5 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>
<q-card bordered class="col-12 row shadow-0" :style="$q.screen.lt.sm ? '' : 'height: 60vh; overflow: scroll;' ">
<div class="col-12 row items-center q-px-sm">
<div class="q-pl-sm text-weight-medium" >เอกสารทปโหลด</div>
<q-space />
<q-btn
flat
color="primary"
icon="download"
target="_blank"
dense
:href="props.urlDownloadFile"
>
<q-tooltip>ดาวนโหลด</q-tooltip>
</q-btn>
<q-btn
flat
color="primary"
icon="mdi-fullscreen"
dense
@click="modalPerview = true"
><q-tooltip>เตมจอ</q-tooltip></q-btn
>
</div>
<ViewPDF :pdfSrc="props.pdfSrc" class="col-12" />
</q-card>
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>