From 923004d8ca3cb956d33f1990b34a5f221da30669 Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期三, 08 五月 2024 18:26:03 +0800
Subject: [PATCH] 列表右侧设置默认按钮

---
 Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue b/Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue
index 633b93a..46ba5ad 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,7 +165,7 @@
       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 => {
           this.form = res.data.obj;

--
Gitblit v1.9.3