保安服务企业管理项目备份
guoshilong
2023-12-27 74b1ec958590e07f073113914de2fe6b8ee1dabc
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"]),