From d8cb402b82f93279531be6babbb89400a50a178d Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 05 Nov 2021 10:40:08 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/zhba_enterprises
---
src/views/securityGuard/securityCertificate.vue | 44 ++++++++++++++++++++++++++++++++------------
1 files changed, 32 insertions(+), 12 deletions(-)
diff --git a/src/views/securityGuard/securityCertificate.vue b/src/views/securityGuard/securityCertificate.vue
index 0c294ae..a3329c1 100644
--- a/src/views/securityGuard/securityCertificate.vue
+++ b/src/views/securityGuard/securityCertificate.vue
@@ -61,6 +61,9 @@
<script>
import { mapGetters } from "vuex";
import dictVertical from "../util/demo/dict-vertical.vue";
+import {
+ update
+} from "@/api/system/user";
export default {
data () {
return {
@@ -84,6 +87,8 @@
this.$message({ message: '请完善住址信息', type: 'warning' })
return
}
+ //更新发证时间
+ this.updateUserInfo();
var printDom = document.getElementById("securityCertificate");
printDom.style.position = "fixed";
printDom.style.top = "-28.5%";
@@ -109,6 +114,21 @@
*/
return [oneHoursAgoY, oneHoursAgoM]
},
+ //更新用户发证时间
+ updateUserInfo(){
+ var nowTime = new Date()
+ var oneHoursAgo = new Date(new Date(nowTime).getTime() - 1 * 60 * 60 * 1000)
+ var oneHoursAgoY = oneHoursAgo.getFullYear()
+ var oneHoursAgoM = oneHoursAgo.getMonth() + 1 < 10 ? '0' + (oneHoursAgo.getMonth() + 1) : oneHoursAgo.getMonth() + 1
+ var day = oneHoursAgo.getDay();
+ var date = oneHoursAgoY + "-" + oneHoursAgoM + "-" + day;
+ const data = {
+ id:this.data.id,
+ rtime:this.data.rtime,
+ paperTime:date
+ }
+ update(data);
+ }
},
};
</script>
@@ -151,8 +171,8 @@
//发证公安机关 (印章)
.security_m_l_center {
position: absolute;
- top: $downTop;
- left: 15px;
+ top: 270px;
+ left: 30px;
line-height: 40px;
}
//证件编号
@@ -197,7 +217,7 @@
//公民身份证
.security_m_r_d {
position: absolute;
- top: $downTop + $lineHigeht * 4;
+ top: 363px;
left: $rightLeft;
width: $rightWidth;
text-align: justify;
@@ -228,19 +248,19 @@
letter-spacing: 3px;
}
//发证时间
-$timeTop: 299px; //整体高度
+$timeTop: 309px; //整体高度
//年
.security_m_l_titlepaperTimenian {
position: absolute;
top: $timeTop;
- left: 95px;
+ left: 110px;
line-height: 40px;
}
//月
.security_m_l_titlepaperTimeyue {
position: absolute;
top: $timeTop;
- left: 154px;
+ left: 169px;
line-height: 40px;
}
//日
@@ -254,29 +274,29 @@
.security_m_l_downsecuritynumber {
position: absolute;
top: 379px; //整体高度
- left: 125px;
+ left: 145px;
}
//内容
// 姓名
-$centerLeft: 450px;
+$centerLeft: 458px;
.security_m_r_o_right {
position: absolute;
- top: $downTop + $lineHigeht*0+ 0px;
+ top: $downTop + $lineHigeht*0-2px;
left: $centerLeft;
// width: $rightWidth;
}
// 生日
.security_m_r_o_rightbirthday {
position: absolute;
- top: $downTop + $lineHigeht * 1-2px;
+ top: $downTop + $lineHigeht * 1-4px;
left: $centerLeft;
// width: $rightWidth;
}
// 地址
.security_m_r_o_rightaddress {
position: absolute;
- top: $downTop + $lineHigeht * 2 -4px;
+ top: $downTop + $lineHigeht * 2 -6px;
left: $centerLeft;
width: 160px;
font: bold 16px 'SimSun' !important;
@@ -284,7 +304,7 @@
// 身份证
.security_m_r_o_rightcardid {
position: absolute;
- top: $downTop + $lineHigeht * 4 +6px;
+ top: $downTop + $lineHigeht * 4 -12px;
left: $centerLeft;
// width: $rightWidth;
}
--
Gitblit v1.9.3