全局列表顶部按钮点击完成操作后,将按钮颜色重置为初始配色
1、全局列表顶部按钮点击完成操作后,将按钮颜色重置为初始配色 2、优化批量复制功能的提示信息 3、完善并优化批量更新agent功能中版本判断的逻辑
This commit is contained in:
@@ -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 :type="item.type" plain size="mini" :icon="item.icon" @click="handleClick(item,{})" v-if="checkPermi([item.hasPermi])">{{item.content}}</el-button>
|
||||
<el-button :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-col>
|
||||
</template>
|
||||
<right-toolbar v-if="!(config && config.colTopHiddenIcon)" :modelIdent="this.modelIdent" :showSearch.sync="showSearch" @queryTable="renderList" @columnsChange="columnsChange" :columns="columns"></right-toolbar>
|
||||
@@ -323,7 +323,7 @@
|
||||
default:
|
||||
this.$emit("fnClick", result, row, this.ids, this.selectList);
|
||||
}
|
||||
// 点击按钮后,通过设置失去焦点使其按钮恢复点击前状态
|
||||
// 列表行内按钮 点击按钮后,通过设置失去焦点使其按钮恢复点击前状态
|
||||
if (row && this.$refs && this.$refs[result.content +'_'+row.id]) {
|
||||
if (Array.isArray(this.$refs[result.content +'_'+row.id])) {
|
||||
this.$refs[result.content +'_'+row.id].forEach(refItem => {
|
||||
@@ -332,6 +332,15 @@
|
||||
} else {
|
||||
this.$refs[result.content +'_'+row.id].$el.blur();
|
||||
}
|
||||
} else if (this.$refs && this.$refs[result.content]) {
|
||||
// 列表顶部的按钮
|
||||
if (Array.isArray(this.$refs[result.content])) {
|
||||
this.$refs[result.content].forEach(refItem => {
|
||||
refItem.$el.blur();
|
||||
});
|
||||
} else {
|
||||
this.$refs[result.content].$el.blur();
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user