handleClickRow(record, index) {
return {
on: {
//单击行
click:()=>{
},
mouseenter:()=>{},//鼠标移入行
mouseleave:()=>{},//鼠标移出行
//双击行
dblclick: () => {
sessionStorage.setItem('RowID', record.id)
console.log('双击', record);
console.log('tabs', this.activeKey);
if (this.activeKey == 1) {
this.$refs.precemtive.loadData()
} else if (this.activeKey == 2) {
this.$refs.maintenance.loadData()
} else if (this.activeKey == 3) {
this.$refs.fault.loadData()
} else if (this.activeKey == 4) {
this.$refs.spare.loadData()
} else if (this.activeKey == 5) {
this.$refs.update.loadData()
}
}
}
}
},
<a-table :customRow=“handleClickRow“>双击行、单击行操作
最新推荐文章于 2024-06-26 15:55:57 发布