马宇豪
2024-11-26 75f6a814525dfd3b19e359a3dfa3de3e9226f32d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<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>