From c17dba9251df86e0fe23afe87ef540c493fae219 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期二, 25 二月 2025 16:08:40 +0800
Subject: [PATCH] treeselect禁用设置
---
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