田源
2024-06-18 d0b2563e29ab723b68c70855375a37c76471eb26
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-button.vue
@@ -4,8 +4,9 @@
    <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>
      </el-tooltip>
@@ -28,8 +29,8 @@
    <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>
@@ -38,8 +39,8 @@
    <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>