From 74b1ec958590e07f073113914de2fe6b8ee1dabc Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Wed, 27 Dec 2023 09:53:38 +0800
Subject: [PATCH] 制证批量导入,打印显示制证时间
---
src/views/securityGuard/securityCertificate.vue | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/src/views/securityGuard/securityCertificate.vue b/src/views/securityGuard/securityCertificate.vue
index 25c4783..bcd81ed 100644
--- a/src/views/securityGuard/securityCertificate.vue
+++ b/src/views/securityGuard/securityCertificate.vue
@@ -74,9 +74,17 @@
components: { dictVertical },
props: ["data"],
created () {
- var time = this.getNewTime()
- this.year = time[0]
- this.month = time[1]
+ if (this.data.paperTime != null && this.data.paperTime != ''){
+ let date = this.data.paperTime.split(" ")[0]
+ let dateArr = date.split("-")
+
+ this.year = dateArr[0];
+ this.month = dateArr[1];
+ }else{
+ var time = this.getNewTime()
+ this.year = time[0]
+ this.month = time[1]
+ }
},
computed: {
...mapGetters(["userInfo", "permission"]),
--
Gitblit v1.9.3