From 92edb806d39c94f0cbb27cc71ec1806468925e8c Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期六, 22 二月 2025 17:23:21 +0800
Subject: [PATCH] 项目增加招商引资字段、去除项目产业政策符合情况tab
---
src/views/projectEngineering/projectLibrary/component/PolicyInfo.vue | 24 +++++++++++++++++++++++-
1 files changed, 23 insertions(+), 1 deletions(-)
diff --git a/src/views/projectEngineering/projectLibrary/component/PolicyInfo.vue b/src/views/projectEngineering/projectLibrary/component/PolicyInfo.vue
index 344a6c5..3840fb5 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));
@@ -229,7 +233,11 @@
this.policyInfoForm = res.data;
this.policyInfoForm.notBannedOrControlledProject = true
this.policyInfoForm.informationIsTrue = true
- this.fileList =this.policyInfoForm.fileList
+ if (this.policyInfoForm.fileList) {
+ this.fileList = this.policyInfoForm.fileList
+ } else {
+ this.fileList = []
+ }
});
},
submit() {
@@ -259,6 +267,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