| | |
| | | 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() |