| | |
| | | :upload-after="uploadAfter2"> |
| | | </avue-form> |
| | | </el-dialog> |
| | | <div style="position: fixed; top: 9999px; width: 100%; height: 100%;"> |
| | | <div style="position: fixed; top: 9999px; width: 100%; height: 100%; "> |
| | | <div class="certificate_box" |
| | | id="certificateDom"> |
| | | <div class="security_main" |
| | |
| | | return |
| | | } |
| | | //更新发证时间 |
| | | this.updateUserInfo(); |
| | | var printDom = document.getElementById("certificateDom"); |
| | | printDom.style.position = "fixed"; |
| | | printDom.style.position = "absolute"; |
| | | printDom.style.top = "-27.5%"; |
| | | printDom.style.left = "-23%"; |
| | | printDom.style.width = "120%"; |
| | | printDom.style.height = "100%"; |
| | | printDom.style.fontFamily = "SimSun"; |
| | | this.$Print(this.$refs.certificateBox); |
| | | printDom.style.position = "relative"; |
| | | printDom.style.left = "0"; |
| | | printDom.style.width = "100%"; |
| | | printDom.style.height = "auto"; |
| | | |
| | | this.$print('#certificateDom', { |
| | | noPrint: '.noPrint', |
| | | onStart: () => { |
| | | // console.log('打印开始', Date.parse(new Date())); |
| | | }, |
| | | onEnd: () => { |
| | | this.updateUserInfo(); |
| | | // console.log('打印完成', Date.parse(new Date())); |
| | | } |
| | | }); |
| | | |
| | | |
| | | }, |
| | | getNewTime () { |
| | | var nowTime = new Date() |