修复托盘登录电池取消激活选择状态
Some checks failed
Release pipeline / publish (push) Has been cancelled
Release pipeline / Always run job (push) Has been cancelled

This commit is contained in:
sheng
2026-06-25 23:46:44 +08:00
parent ec3b031670
commit 3c116201cb
2 changed files with 26 additions and 2 deletions

View File

@@ -84,6 +84,7 @@
:key="'sel-' + col.idx"
type="selection"
:width="col.width"
:selectable="selectionSelectable || undefined"
/>
<!-- 2. 序号列 -->
<el-table-column
@@ -309,6 +310,12 @@ export default {
*/
tableListeners: { type: Object, default: () => ({}) },
/**
* 选择列可选规则,透传给 el-table-column 的 selectable。
* 例row => row.active === 1
*/
selectionSelectable: { type: Function, default: null },
/**
* 帮助文档的跳转 URL。传了才显示工具栏右侧的问号按钮点击新窗口打开
* 例:'/docs/factory-area-help.html'
@@ -426,6 +433,14 @@ export default {
this.$emit('selection-change', val)
},
clearSelection () {
if (this.$refs.table && this.$refs.table.clearSelection) {
this.$refs.table.clearSelection()
}
this.tableSelected = []
this.$emit('selection-change', [])
},
/* ============ 帮助按钮 ============ */
openHelp () {