From 09d357963bda3048de8b672e1fe7fc151a181930 Mon Sep 17 00:00:00 2001
From: dangsn <dangsn@chicecm.com>
Date: 星期一, 24 六月 2024 17:00:48 +0800
Subject: [PATCH] 调整异常信息的获取

---
 Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-button.vue |   35 +++++++++++++----------------------
 1 files changed, 13 insertions(+), 22 deletions(-)

diff --git a/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-button.vue b/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-button.vue
index 7d69abf..4007355 100644
--- a/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-button.vue
+++ b/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-button.vue
@@ -4,12 +4,11 @@
     <div v-if="type === 'table' || type === 'TreeTable'">
       <!--top灞曠ず琛ㄦ牸涓婃柟鍖哄煙 menu灞曠ず琛ㄦ牸鎿嶄綔鏍忓尯鍩� 鏃犲氨鏄粯璁� -->
       <el-tooltip v-if="LocationType === 'top'" v-for="item in basicButtonList.top" :content="item.description || item.name" placement="top">
-        <el-button :key="item.oid" :icon="item.paramVOS.icon"
-                   :type="item.paramVOS.btnType || 'primary'" plain
+        <el-button :key="item.oid"
+                   :icon="item.paramVOS && item.paramVOS.icon ? item.paramVOS.icon :''"
+                   :type="item.paramVOS && item.paramVOS.btnType ?  item.paramVOS.btnType : 'primary'" plain
                    size="small"
-                   @click="buttonClick(item)">
-          {{ item.name }}
-        </el-button>
+                   @click="buttonClick(item)">{{ item.name }}</el-button>
       </el-tooltip>
 
       <el-button type="text" @click="handleDefaultAddChildren(scope.row)" v-if="(LocationType === 'menu' && type === 'TreeTable')">鏂板瀛愮骇</el-button>
@@ -20,9 +19,7 @@
                    :icon="item.paramVOS.icon ? item.paramVOS.icon : (item.id === 'edit' ? 'el-icon-edit' : (item.id === 'delete'  ||item.id === 'del' ? 'el-icon-delete' : ''))"
                    :type="item.paramVOS.btnType || 'text'" plain
                    size="small"
-                   @click="buttonClick(item,scope.row)">
-          {{ item.name }}
-        </el-button>
+                   @click="buttonClick(item,scope.row)">{{ item.name }}</el-button>
       </el-tooltip>
 
       <!-- 琛ㄦ牸鍐呮寜閽搷浣滃璇濇琛ㄥ崟   -->
@@ -32,32 +29,26 @@
     <div v-else-if="type === 'form'">
       <el-tooltip v-for="item in basicButtonList" :content="item.description || item.name" placement="top">
         <el-button :key="item.oid"
-                   :icon="item.paramVOS.icon"
-                   :type="item.paramVOS.btnType || 'primary'"
+                   :icon="item.paramVOS && item.paramVOS.icon ? item.paramVOS.icon :''"
+                   :type="item.paramVOS && item.paramVOS.btnType ?  item.paramVOS.btnType : 'primary'" plain
                    plain
                    size="small"
-                   @click="buttonClick(item)">
-          {{ item.name }}
-        </el-button>
+                   @click="buttonClick(item)">{{ item.name }}</el-button>
       </el-tooltip>
     </div>
     <div v-else-if="type === 'tree'" class="tree-buttons">
       <el-tooltip v-for="item in basicButtonList" :content="item.description || item.name" placement="top">
         <el-button :key="item.oid"
-                   :icon="item.paramVOS.icon"
-                   :type="item.paramVOS.btnType || 'primary'"
+                   :icon="item.paramVOS && item.paramVOS.icon ? item.paramVOS.icon :''"
+                   :type="item.paramVOS && item.paramVOS.btnType ?  item.paramVOS.btnType : 'primary'" plain
                    plain
                    size="small"
-                   @click="buttonClick(item)">
-          {{ item.name }}
-        </el-button>
+                   @click="buttonClick(item)">{{ item.name }}</el-button>
       </el-tooltip>
       <el-button type="primary"
                  plain
                  size="small"
-                 @click="$emit('refresh')">
-        鍒锋柊
-      </el-button>
+                 @click="$emit('refresh')">鍒锋柊</el-button>
     </div>
   </div>
 </template>
@@ -65,7 +56,7 @@
 <script>
 import func from "@/util/func";
 import {validatenull} from "@/util/validate";
-import {doAction} from '@/components/actions/base/BaseAction';
+import {doAction} from '@/components/actions/BaseAction';
 import Vue from "vue";
 
 export default {

--
Gitblit v1.9.3