From fd15db44e6bd9b7b9a6537b82bb90a81c009b24a Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期五, 10 五月 2024 18:16:49 +0800
Subject: [PATCH] action

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

diff --git a/Source/ProjectWeb/src/components/dynamic-components/dynamic-button.vue b/Source/ProjectWeb/src/components/dynamic-components/dynamic-button.vue
index 8390cda..18457b8 100644
--- a/Source/ProjectWeb/src/components/dynamic-components/dynamic-button.vue
+++ b/Source/ProjectWeb/src/components/dynamic-components/dynamic-button.vue
@@ -115,7 +115,7 @@
         return basicColumn;
       } else if (this.type === 'table' || this.type === 'TreeTable') {
         const top = basicColumn.filter(item => {
-          if (item.paramVOS && item.paramVOS.webUiButtonLocation && item.paramVOS.webUiButtonLocation !== 'menu') {
+          if (item.paramVOS && item.paramVOS.showLocation && item.paramVOS.showLocation !== 'menu') {
             return true;
           } else if (item.id != "edit" && item.id != "del" && item.id != "delete" &&  item.id != "refresh") {
             return true;
@@ -123,7 +123,7 @@
           return false
         });
         const menu = basicColumn.filter(item => {
-          if (item.paramVOS && item.paramVOS.webUiButtonLocation && item.paramVOS.webUiButtonLocation === 'menu') {
+          if (item.paramVOS && item.paramVOS.showLocation && item.paramVOS.showLocation === 'menu') {
             return true
           } else if (item.id == "edit" || item.id == "del" || item.id == "delete"){
             return true;
@@ -164,7 +164,7 @@
       //paramVOS.customBtn //寮圭獥榛樿鏈変繚瀛樻寜閽�,customBtn涓簍rue鏃跺唴瀹瑰睍绀鸿嚜瀹氫箟鎸夐挳
       doAction(buttonitem, {
         paramVOS: paramVOS,
-        dataStore: rowData || this.dataStore || [],
+        dataStore: rowData?[rowData] :(this.dataStore || []),
         sourceData: this.sourceData || {}
       }, function (actionType,data) {
         that.$emit("afterMethod",actionType,data);

--
Gitblit v1.9.3