From 0088d05b69bea0f7877a8ca1f1a0d850b20ee097 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期三, 25 十二月 2024 11:15:47 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
src/views/projectEngineering/projectLibrary/component/InvestInfo.vue | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/src/views/projectEngineering/projectLibrary/component/InvestInfo.vue b/src/views/projectEngineering/projectLibrary/component/InvestInfo.vue
index d1f5d7f..7b1b6e0 100644
--- a/src/views/projectEngineering/projectLibrary/component/InvestInfo.vue
+++ b/src/views/projectEngineering/projectLibrary/component/InvestInfo.vue
@@ -219,7 +219,6 @@
// 灏濊瘯瑙f瀽JSON鏁版嵁
const parsedInvestmentForm = investmentForm ? JSON.parse(investmentForm) : null;
const parsedProjectForm = projectForm ? JSON.parse(projectForm) : null;
- console.log(parsedInvestmentForm)
// 璁剧疆investment鍜宲rojectForm瀵硅薄
if(parsedInvestmentForm) {
this.investmentForm = parsedInvestmentForm;
@@ -236,6 +235,8 @@
this.investmentForm.plannedStartDate = this.projectForm.planStartTime;
this.investmentForm.expectedCompletionDate = this.projectForm.planCompleteTime;
}
+
+ this.investmentForm.projectId = this.projectForm.id;
},
beforeDestroy() {
if(Object.keys(this.investmentForm).length !==0) localStorage.setItem("investmentForm", JSON.stringify(this.investmentForm));
@@ -273,6 +274,14 @@
}
}
},
+ },
+ watch: {
+ investmentForm: {
+ deep: true,
+ handler(newVal) {
+ this.$emit('investInfoForm', newVal)
+ }
+ }
}
};
--
Gitblit v1.8.0