From 506b5b59e3899d8dd40a61cc8b9a575bbde3caaa Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期一, 06 五月 2024 18:24:33 +0800
Subject: [PATCH] 添加action

---
 Source/ProjectWeb/src/components/dynamic-components/dynamic-table.vue |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/Source/ProjectWeb/src/components/dynamic-components/dynamic-table.vue b/Source/ProjectWeb/src/components/dynamic-components/dynamic-table.vue
index 92ee092..ce6fe70 100644
--- a/Source/ProjectWeb/src/components/dynamic-components/dynamic-table.vue
+++ b/Source/ProjectWeb/src/components/dynamic-components/dynamic-table.vue
@@ -54,6 +54,11 @@
       type: Boolean,
       default: false
     },
+    canEdit:{
+      //鍐呭鏄惁鍙紪杈�
+      type:Boolean,
+      default:false
+    },
     areasName: {
       type: String,
       default: ''//westArea瀵艰埅鍖�
@@ -162,6 +167,18 @@
         }
         if(newval){
           this.handleRefresh();
+        }
+      }
+    },
+    tableList:{
+      handler(newval) {
+        if(newval) {
+          this.$emit("setData", {
+            area: this.areasName,
+            type:this.componentVO.uiComponentType,
+            btmType:this.currentDefineVO.btmType,
+            data:newval
+          });
         }
       }
     },
@@ -318,7 +335,11 @@
     },
     selectionClear() {
       this.selectionList = [];
-      this.$refs.dataTable.toggleSelection();
+      try {
+        this.$refs.dataTable.toggleSelection();
+      }catch (e) {
+
+      }
     },
     handleRefresh() {
       this.onLoad(this.page, this.query);

--
Gitblit v1.9.3