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"]),