From b1c351f8a0d16008524d4f17bb1948f836f5a7b0 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期四, 28 十一月 2024 17:02:47 +0800
Subject: [PATCH] 项目库增改

---
 src/views/projectEngineering/projectLibrary/component/investmentFunds.vue |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/views/projectEngineering/projectLibrary/component/investmentFunds.vue b/src/views/projectEngineering/projectLibrary/component/investmentFunds.vue
index 9896aa8..6149bb8 100644
--- a/src/views/projectEngineering/projectLibrary/component/investmentFunds.vue
+++ b/src/views/projectEngineering/projectLibrary/component/investmentFunds.vue
@@ -243,7 +243,7 @@
   },
   methods: {
     getInvestmentFunds() {
-      getProjectInvestmentFundingById(this.investmentForm.projectId ).then(res => {
+      getProjectInvestmentFundingById(this.investmentFundsForm.projectId ).then(res => {
         this.investmentFundsForm = res.data;
       });
     },
@@ -270,20 +270,20 @@
     },
   },
   mounted() {
-    this.investmentFundsForm.id = this.$route.query.projectId;
+    this.investmentFundsForm.projectId = this.$route.query.projectId;
     const investmentFundsForm = Cookies.get("investmentFundsForm");
     const projectForm = Cookies.get("projectForm");
 
-    const parsedInvestmentForm = investmentFundsForm ? JSON.parse(investmentFundsForm) : null;
+    const parsedInvestmentFundsForm = investmentFundsForm ? JSON.parse(investmentFundsForm) : null;
     const parsedProjectForm = projectForm ? JSON.parse(projectForm) : null;
-    if (parsedInvestmentForm) {
-      this.investmentFundsForm = parsedInvestmentForm
+    if (parsedInvestmentFundsForm) {
+      this.investmentFundsForm = parsedInvestmentFundsForm
     }
     if (parsedProjectForm){
       this.projectForm = parsedProjectForm
     }
     // 濡傛灉璺敱瀛樺湪id涓旀病鏈夌紦瀛�,瑙嗕负缂栬緫鎴栨煡鐪嬶紝璋冪敤api
-    if (this.investmentFundsForm.projectId && !parsedInvestmentForm) {
+    if (this.investmentFundsForm.projectId && !parsedInvestmentFundsForm) {
       this.getInvestmentFunds();
     }
   },

--
Gitblit v1.8.0