From 92b6d45b315ce11eb6c26889d5a4b6feb71348cc Mon Sep 17 00:00:00 2001 From: luohairen <3399054449@qq.com> Date: 星期二, 24 十二月 2024 17:41:25 +0800 Subject: [PATCH] 优化 --- src/views/projectEngineering/projectLibrary/component/investmentFunds.vue | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/views/projectEngineering/projectLibrary/component/investmentFunds.vue b/src/views/projectEngineering/projectLibrary/component/investmentFunds.vue index 7f6ee41..e506821 100644 --- a/src/views/projectEngineering/projectLibrary/component/investmentFunds.vue +++ b/src/views/projectEngineering/projectLibrary/component/investmentFunds.vue @@ -197,6 +197,7 @@ editProjectInvestmentFunding, getProjectInvestmentFundingById } from "@/api/projectEngineering/projectInvestmentFunding"; +import {editProject} from "@/api/projectEngineering/projectInfo"; export default { name: 'InvestmentFundsForm', @@ -285,10 +286,20 @@ 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> -- Gitblit v1.8.0