From d8daea64158b654bde440bcb9f198a1547b3dbe6 Mon Sep 17 00:00:00 2001 From: luohairen <3399054449@qq.com> Date: 星期四, 26 十二月 2024 18:15:32 +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