luohairen
2024-12-24 92b6d45b315ce11eb6c26889d5a4b6feb71348cc
src/views/projectEngineering/projectLibrary/component/legalPerson.vue
@@ -177,6 +177,7 @@
  },
  data() {
    return {
      projectForm: {},
      legalPersonForm: {
        // id: '',
        // totalInvestment: '',
@@ -219,6 +220,7 @@
      this.getProjectUnitRegistrationInfo();
    }
    this.legalPersonForm.projectId = this.projectForm.id;
  },
  beforeDestroy() {
    if(Object.keys(this.legalPersonForm).length !==0)  localStorage.setItem("legalPersonForm", JSON.stringify(this.legalPersonForm));
@@ -250,6 +252,14 @@
        }
      }
    },
  },
  watch: {
    legalPersonForm: {
      deep: true,
      handler(newVal) {
        this.$emit('legalPersonForm', newVal)
      }
    }
  }
}
</script>