table组件表格顶部按钮添加无权限展示、相关数据列表的ClientID字段改为自定义的文字提示

This commit is contained in:
康冉冉
2026-04-20 17:49:19 +08:00
parent 113990f6b6
commit bdded98b03
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
<template v-if="config && config.tableButton && config.tableButton.top">
<el-col :span="1.5" v-for="item of config.tableButton.top">
<!-- <el-button :type="item.type" plain size="mini" :icon="item.icon" @click="handleClick(item,{})" :hasPermi="[item.hasPermi]">{{item.content}}</el-button>-->
<el-button style="padding: 7px 6px;" :ref="`${item.content}`" :type="item.type" plain size="mini" :icon="item.icon" @click="handleClick(item,{})" v-if="checkPermi([item.hasPermi])">{{item.content}}</el-button>
<el-button style="padding: 7px 6px;" :ref="`${item.content}`" :type="item.type" plain size="mini" :icon="item.icon" @click="handleClick(item,{})" v-if="item && item.hasPermi ? checkPermi([item.hasPermi]) : true">{{item.content}}</el-button>
</el-col>
</template>
<right-toolbar v-if="!(config && config.colTopHiddenIcon)" :modelIdent="this.modelIdent" :showSearch.sync="showSearch" @queryTable="renderList" @columnsChange="columnsChange" :columns="columns"></right-toolbar>
@@ -104,7 +104,7 @@
if (this.paramsData && this.paramsData.resourceType === '1') {
this. columns = {
businessId: {label: `业务代码`, minWidth: '120',visible: true},
clientId: {label: `ClientID`,minWidth: '160',visible: true},
clientId: {label: `ClientID`,minWidth: '160',customTooltip: true, visible: true},
createTime: {label: `时间`,minWidth: '160',visible: true},
outSpeed: {label: `总发送流量值(bit/s`, minWidth: '150', slotName: 'tempBusinessName',visible: true},
};
@@ -170,7 +170,6 @@
return getAvgTimeList({id: this.paramsData && this.paramsData.id}).then(res => {
return res;
});
},
}
}