From 59765cab961847dfd101e69ae6d8d1d501a5284c Mon Sep 17 00:00:00 2001
From: yuxc <yuxc@vci-tech.com>
Date: 星期二, 04 六月 2024 11:10:28 +0800
Subject: [PATCH] 1、ice配置文件上传
---
Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue | 25 +++++++++++++------------
1 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue b/Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue
index e08c6b3..4cadbbc 100644
--- a/Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue
+++ b/Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue
@@ -10,6 +10,7 @@
:isEdit="canEdit"
:formData="form"
:initValue="paramVOS.initvalue"
+ :uploadattachment="paramVOS.uploadattachment || false"
@getFormData="getFormData">
</basic-form>
</div>
@@ -160,18 +161,6 @@
dataForm(this.params, this.paramVOS.getdataurl, this.paramVOS.getdatamethod).then(res => {
this.form = res.data.obj.data;
this.loading = false;
- this.$emit("setDataStore", {
- area: this.areasName,
- type: this.componentVO.uiComponentType,
- btmType: this.currentDefineVO.btmType,
- dataStore: [this.form]
- });
- this.$emit("setData", {
- area: this.areasName,
- type: this.componentVO.uiComponentType,
- currentDefineVO: this.currentDefineVO,
- data: this.form
- });
}).catch(error => {
this.loading = false;
});
@@ -183,6 +172,18 @@
},
getFormData(form) {
this.form = form;
+ this.$emit("setDataStore", {
+ area: this.areasName,
+ type: this.componentVO.uiComponentType,
+ btmType: this.currentDefineVO.btmType,
+ dataStore: [this.form]
+ });
+ this.$emit("setData", {
+ area: this.areasName,
+ type: this.componentVO.uiComponentType,
+ currentDefineVO: this.currentDefineVO,
+ data: this.form
+ });
}
}
}
--
Gitblit v1.9.3