<template>
|
<div class="form-container">
|
<div class="certContent">
|
<div></div>
|
</div>
|
</div>
|
</template>
|
<script setup>
|
import {reactive, ref, toRefs, onMounted} from 'vue'
|
import {ElMessage, ElMessageBox} from "element-plus"
|
import htmlToPdf from '@/utils/htmlToPdf';
|
const { proxy } = getCurrentInstance();
|
|
const data = reactive({
|
info: {}
|
})
|
|
const {info} = toRefs(data)
|
const deptList = ref([]);
|
onMounted(()=>{
|
|
})
|
|
function getPdf(info) {
|
console.log(info,'info')
|
htmlToPdf();
|
}
|
|
onMounted(()=>{
|
|
})
|
|
defineExpose({
|
getPdf
|
})
|
</script>
|
|
<style scoped lang="scss">
|
.form-container{
|
padding: 20px;
|
display: flex;
|
flex-direction: column;
|
justify-content: center;
|
align-items: center;
|
|
.certContent{
|
width: 1123px;
|
height: 794px;
|
background: url("@/assets/images/certBg.jpg") no-repeat;
|
background-size: contain;
|
}
|
}
|
</style>
|