| | |
| | | import { mapGetters } from "vuex"; |
| | | import dictVertical from "../util/demo/dict-vertical.vue"; |
| | | import { |
| | | update |
| | | update |
| | | } from "@/api/system/user"; |
| | | export default { |
| | | data () { |
| | |
| | | } |
| | | //更新发证时间 |
| | | this.updateUserInfo(); |
| | | var printDom = document.getElementById("securityCertificate"); |
| | | var printDom = document.getElementById("securityCertificates"); |
| | | |
| | | console.log(printDom) |
| | | |
| | | |
| | | printDom.style.position = "fixed"; |
| | | printDom.style.top = "-28.5%"; |
| | | printDom.style.left = "-23%"; |
| | |
| | | return [oneHoursAgoY, oneHoursAgoM] |
| | | }, |
| | | //更新用户发证时间 |
| | | updateUserInfo(){ |
| | | updateUserInfo () { |
| | | var nowTime = new Date() |
| | | var oneHoursAgo = new Date(new Date(nowTime).getTime() - 1 * 60 * 60 * 1000) |
| | | var oneHoursAgoY = oneHoursAgo.getFullYear() |
| | |
| | | var day = oneHoursAgo.getDay(); |
| | | var date = oneHoursAgoY + "-" + oneHoursAgoM + "-" + day; |
| | | const data = { |
| | | id:this.data.id, |
| | | rtime:this.data.rtime, |
| | | paperTime:date |
| | | id: this.data.id, |
| | | rtime: this.data.rtime, |
| | | paperTime: date |
| | | } |
| | | update(data); |
| | | } |
| | |
| | | $centerLeft: 458px; |
| | | .security_m_r_o_right { |
| | | position: absolute; |
| | | top: $downTop + $lineHigeht*0-2px; |
| | | top: $downTop + $lineHigeht * 0-2px; |
| | | left: $centerLeft; |
| | | // width: $rightWidth; |
| | | } |