shuishen
2021-11-05 c28d08def0b232fd1d4b76915418d7c1da37a953
src/views/securityGuard/securityCertificate.vue
@@ -62,7 +62,7 @@
import { mapGetters } from "vuex";
import dictVertical from "../util/demo/dict-vertical.vue";
import {
  update
    update
} from "@/api/system/user";
export default {
    data () {
@@ -89,7 +89,11 @@
            }
            //更新发证时间
            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%";
@@ -115,7 +119,7 @@
            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()
@@ -123,9 +127,9 @@
            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);
        }
@@ -282,7 +286,7 @@
$centerLeft: 458px;
.security_m_r_o_right {
    position: absolute;
    top: $downTop + $lineHigeht*0-2px;
    top: $downTop + $lineHigeht * 0-2px;
    left: $centerLeft;
    // width: $rightWidth;
}