From 79d9fc857559982b00b68b2d709807bdc4cd286f Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Mon, 11 Apr 2022 10:58:17 +0800
Subject: [PATCH] minio 地址修改
---
src/views/securityGuard/securityCertificate.vue | 96 +++++++++++++++++++++++++++++++----------------
1 files changed, 63 insertions(+), 33 deletions(-)
diff --git a/src/views/securityGuard/securityCertificate.vue b/src/views/securityGuard/securityCertificate.vue
index 36a758a..5f0f94c 100644
--- a/src/views/securityGuard/securityCertificate.vue
+++ b/src/views/securityGuard/securityCertificate.vue
@@ -13,7 +13,7 @@
<div class="security_m_l_center no-print">
发证公安机关 (印章)<br />
发证日期
- 年 月
+ 年 月
</div>
<div class="security_m_l_down no-print">证件编号</div>
<div class="security_m_r_a no-print">姓名</div>
@@ -45,20 +45,25 @@
{{ data.cardid.slice(6, 10) }}.{{ data.cardid.slice(10, 12) }}.{{ data.cardid.slice(12, 14) }}
</div>
<div class="security_m_r_o_rightaddress security_m_r_o_l_r widt">
- {{ data.address }}
+ {{ data.registered }}
</div>
<div class="security_m_r_o_rightcardid">{{ data.cardid }}</div>
</div>
- <span slot="footer"
- class="dialog-footer no-print PrintBut">
+ <!-- <span slot="footer"
+ class="dialog-footer no-print PrintBut"
+ v-if='permission.securityGuard_securityCertificate'>
<el-button type="primary"
@click="Print">打 印</el-button>
- </span>
+ </span> -->
</div>
</template>
<script>
+import { mapGetters } from "vuex";
import dictVertical from "../util/demo/dict-vertical.vue";
+import {
+ updatePaperTime
+} from "@/api/system/user";
export default {
data () {
return {
@@ -69,21 +74,29 @@
components: { dictVertical },
props: ["data"],
created () {
-
var time = this.getNewTime()
this.year = time[0]
this.month = time[1]
},
+ computed: {
+ ...mapGetters(["userInfo", "permission"]),
+ },
methods: {
Print () {
- if (this.data.address == '' || this.data.address == null) {
- this.$message({ message: '请完善地址信息', type: 'warning' })
+ if (this.data.registered == '' || this.data.registered == null) {
+ this.$message({ message: '请完善住址信息', type: 'warning' })
return
}
- var printDom = document.getElementById("securityCertificate");
+ //更新发证时间
+ this.updateUserInfo();
+ var printDom = document.getElementById("securityCertificates");
+
+ console.log(printDom)
+
+
printDom.style.position = "fixed";
- printDom.style.top = "-26%";
- printDom.style.left = "-12%";
+ printDom.style.top = "-28.5%";
+ printDom.style.left = "-23%";
printDom.style.width = "120%";
printDom.style.height = "100%";
printDom.style.fontFamily = "SimSun";
@@ -105,6 +118,22 @@
*/
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,
+ userType:6,
+ paperTime:date
+ }
+ updatePaperTime(data);
+ }
},
};
</script>
@@ -122,7 +151,7 @@
font: bold 18px 'SimSun' !important;
}
.security_main {
- width: 630px;
+ width: 660px;
height: 512px;
// border: 1px solid rgba($color: #a5a5a5, $alpha: 0.5);
// display: flex;
@@ -134,31 +163,31 @@
position: relative;
}
// 标题
-$upTop: 55px;
-$downTop: 228px; //整体高度
+$upTop: 45px;
+$downTop: 265px; //整体高度
//经国家保安员考试审查合格。<br />特颁此证。
.security_main-title {
position: absolute;
top: $upTop;
- left: 39px;
+ left: 34px;
line-height: 45px;
letter-spacing: 3px;
}
//发证公安机关 (印章)
.security_m_l_center {
position: absolute;
- top: $downTop;
- left: 32px;
+ top: 267px;
+ left: 30px;
line-height: 40px;
}
//证件编号
.security_m_l_down {
position: absolute;
- top: 421px;
+ top: 370px;
left: 32px;
}
-$rightLeft: 343px;
+$rightLeft: 354px;
$rightFontSize: 18px;
$rightWidth: 77px;
@@ -193,7 +222,7 @@
//公民身份证
.security_m_r_d {
position: absolute;
- top: $downTop + $lineHigeht * 4;
+ top: 382px;
left: $rightLeft;
width: $rightWidth;
text-align: justify;
@@ -218,68 +247,69 @@
// 抬头名字
.security_m_l_titleName {
position: absolute;
- top: 13px;
- left: 44px;
+ top: 45px;
+ left: 121px;
line-height: 45px;
letter-spacing: 3px;
}
//发证时间
-$timeTop: 280px; //整体高度
+$timeTop: 306px; //整体高度
//年
.security_m_l_titlepaperTimenian {
position: absolute;
top: $timeTop;
- left: 25px;
+ left: 107px;
line-height: 40px;
}
//月
.security_m_l_titlepaperTimeyue {
position: absolute;
top: $timeTop;
- left: 75px;
+ left: 172px;
line-height: 40px;
}
//日
.security_m_l_titlepaperTimeri {
position: absolute;
top: $timeTop;
- left: 164px;
+ left: 159px;
line-height: 40px;
}
//证件编号
.security_m_l_downsecuritynumber {
position: absolute;
- top: 357px; //整体高度
- left: 54px;
+ top: 370px; //整体高度
+ left: 145px;
}
//内容
// 姓名
-$centerLeft: 365px;
+$centerLeft: 448px;
.security_m_r_o_right {
position: absolute;
- top: $downTop + 2px;
+ top: $downTop + $lineHigeht * 0-2px;
left: $centerLeft;
// width: $rightWidth;
}
// 生日
.security_m_r_o_rightbirthday {
position: absolute;
- top: $downTop + $lineHigeht * 1;
+ top: $downTop + $lineHigeht * 1-4px;
left: $centerLeft;
// width: $rightWidth;
}
// 地址
.security_m_r_o_rightaddress {
position: absolute;
- top: $downTop + $lineHigeht * 2 -5px;
+ top: $downTop + $lineHigeht * 2 -6px;
left: $centerLeft;
width: 160px;
+ font: bold 16px 'SimSun' !important;
}
// 身份证
.security_m_r_o_rightcardid {
position: absolute;
- top: $downTop + $lineHigeht * 4 +8px;
+ top: $downTop + $lineHigeht * 4+6px;
left: $centerLeft;
// width: $rightWidth;
}
--
Gitblit v1.9.3