| | |
| | | editProjectInvestmentFunding, |
| | | getProjectInvestmentFundingById |
| | | } from "@/api/projectEngineering/projectInvestmentFunding"; |
| | | import {editProject} from "@/api/projectEngineering/projectInfo"; |
| | | |
| | | export default { |
| | | name: 'InvestmentFundsForm', |
| | |
| | | if (this.$route.query.projectId&& !parsedInvestmentFundsForm) { |
| | | this.getInvestmentFunds(); |
| | | } |
| | | |
| | | this.investmentFundsForm.projectId = this.projectForm.id; |
| | | }, |
| | | beforeDestroy() { |
| | | if(Object.keys(this.investmentFundsForm).length !==0) localStorage.setItem("investmentFundsForm", JSON.stringify(this.investmentFundsForm)); |
| | | }, |
| | | watch: { |
| | | investmentFundsForm: { |
| | | deep: true, |
| | | handler(newVal) { |
| | | this.$emit('investmentFundsForm', newVal) |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |