From 2ee312d3c399ddc62a06189367fa3879fca7daef Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期五, 10 五月 2024 15:35:24 +0800 Subject: [PATCH] UI展示 --- Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue b/Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue index d8deb39..a529811 100644 --- a/Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue +++ b/Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue @@ -42,6 +42,10 @@ type:Boolean, default:false }, + actionType:{ + //鎸夐挳鎿嶄綔绫诲瀷 + default:"" + }, areasName: { type: String, default: '' @@ -137,7 +141,7 @@ if (Object.keys(this.paramVOS).length>0) { for (let j in this.paramVOS) { if (this.paramVOS[j] && this.paramVOS[j].constructor === Object) continue; - if (j == 'type' || j == 'context' || j == 'content') continue; + if (j == 'type' || j == 'context' || j == 'content' || j == "getdataurl" || j == "getdatamethod" || j == "url" || j == "method" || j == "uploadfileurl" || j == "title") continue; sourceDataMap['sourceData["' + j + '"]'] = this.paramVOS[j] } } @@ -161,13 +165,12 @@ if (this.paramVOS.initvalue) { this.form=this.paramVOS.initvalue; } - if (Object.keys(this.sourceData).length>0 && this.isShow) { + if (Object.keys(this.sourceData).length>0 && this.isShow && this.actionType!="add") { this.loading = true; - dataForm(this.params).then(res => { + dataForm(this.params, this.paramVOS.getdataurl, this.paramVOS.getdatamethod).then(res => { this.form = res.data.obj; this.loading = false; }).catch(error => { - this.$message.error(error); this.loading = false; }); } -- Gitblit v1.9.3