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/PolicyInfo.vue | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/src/views/projectEngineering/projectLibrary/component/PolicyInfo.vue b/src/views/projectEngineering/projectLibrary/component/PolicyInfo.vue index 344a6c5..b5ad508 100644 --- a/src/views/projectEngineering/projectLibrary/component/PolicyInfo.vue +++ b/src/views/projectEngineering/projectLibrary/component/PolicyInfo.vue @@ -164,6 +164,7 @@ editProjectInvestmentPolicyCompliance, getProjectInvestmentPolicyComplianceById } from "@/api/projectEngineering/projectInvestmentPolicyCompliance"; +import {newline} from "js-beautify/js/src/javascript/acorn"; export default { name: 'PolicyComplianceForm', @@ -176,6 +177,7 @@ }, data() { return { + projectForm: {}, policyInfoForm: { // id: '', // projectId: '', @@ -219,6 +221,8 @@ this.policyInfoForm.informationIsTrue= true; this.policyInfoForm.notBannedOrControlledProject = true; } + + this.policyInfoForm.projectId = this.projectForm.id; }, beforeDestroy() { if(Object.keys(this.policyInfoForm).length !==0) localStorage.setItem("policyInfoForm", JSON.stringify(this.policyInfoForm)); @@ -259,6 +263,20 @@ } } }, + watch: { + policyInfoForm: { + deep: true, + handler(newVal) { + this.$emit('policyInfoForm', newVal) + } + }, + fileList: { + deep: true, + handler(newVal) { + this.policyInfoForm.fileList = newVal + } + } + } }; </script> -- Gitblit v1.8.0