luohairen
2024-12-24 92b6d45b315ce11eb6c26889d5a4b6feb71348cc
src/views/projectEngineering/projectLibrary/component/PolicyInfo.vue
@@ -164,6 +164,7 @@
  editProjectInvestmentPolicyCompliance,
  getProjectInvestmentPolicyComplianceById
} from "@/api/projectEngineering/projectInvestmentPolicyCompliance";
import {newline} from "js-beautify/js/src/javascript/acorn";
export default {
  name: 'PolicyComplianceForm',
@@ -176,6 +177,7 @@
  },
  data() {
    return {
      projectForm: {},
      policyInfoForm: {
        // id: '',
        // projectId: '',
@@ -219,6 +221,8 @@
      this.policyInfoForm.informationIsTrue= true;
      this.policyInfoForm.notBannedOrControlledProject = true;
    }
    this.policyInfoForm.projectId = this.projectForm.id;
  },
  beforeDestroy() {
    if(Object.keys(this.policyInfoForm).length !==0) localStorage.setItem("policyInfoForm", JSON.stringify(this.policyInfoForm));
@@ -259,6 +263,20 @@
      }
    }
  },
  watch: {
    policyInfoForm: {
      deep: true,
      handler(newVal) {
        this.$emit('policyInfoForm', newVal)
      }
    },
    fileList: {
      deep: true,
      handler(newVal) {
        this.policyInfoForm.fileList = newVal
      }
    }
  }
};
</script>