wangting
2024-06-14 f8035d6a65d1f610f87fa12408224176f1bf005f
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-button.vue
@@ -7,9 +7,7 @@
        <el-button :key="item.oid" :icon="item.paramVOS.icon"
                   :type="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 +18,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>
      <!-- 表格内按钮操作对话框表单   -->
@@ -36,9 +32,7 @@
                   :type="item.paramVOS.btnType || 'primary'"
                   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">
@@ -48,16 +42,12 @@
                   :type="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="primary"
                 plain
                 size="small"
                 @click="$emit('refresh')">
        刷新
      </el-button>
                 @click="$emit('refresh')">刷新</el-button>
    </div>
  </div>
</template>
@@ -65,7 +55,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 {