| | |
| | | editProjectInvestmentPolicyCompliance, |
| | | getProjectInvestmentPolicyComplianceById |
| | | } from "@/api/projectEngineering/projectInvestmentPolicyCompliance"; |
| | | import {newline} from "js-beautify/js/src/javascript/acorn"; |
| | | |
| | | export default { |
| | | name: 'PolicyComplianceForm', |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | projectForm: {}, |
| | | policyInfoForm: { |
| | | // id: '', |
| | | // projectId: '', |
| | |
| | | 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)); |
| | |
| | | } |
| | | } |
| | | }, |
| | | watch: { |
| | | policyInfoForm: { |
| | | deep: true, |
| | | handler(newVal) { |
| | | this.$emit('policyInfoForm', newVal) |
| | | } |
| | | }, |
| | | fileList: { |
| | | deep: true, |
| | | handler(newVal) { |
| | | this.policyInfoForm.fileList = newVal |
| | | } |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |