|
|
@@ -166,13 +166,6 @@ export default {
|
|
|
* @description 勾选数据时触发的事件
|
|
|
*/
|
|
|
handleSelect (selection, row) {
|
|
|
- if (this.selectionType === 'radio') {
|
|
|
- this.setSelectionRadio(row)
|
|
|
- this.$emit('selection-change', row)
|
|
|
- console.log('172 row',row)
|
|
|
- } else {
|
|
|
- this.$refs.elTable.toggleRowSelection(row)
|
|
|
- }
|
|
|
this.$emit('select', selection, row)
|
|
|
},
|
|
|
/**
|
|
|
@@ -216,13 +209,12 @@ export default {
|
|
|
* @description 行点击时触发的事件
|
|
|
*/
|
|
|
handleRowClick (row, event, column) {
|
|
|
- // 行点击时默认选择了该行数据,与按钮行点击事件冲突,先注释掉
|
|
|
- // if (this.selectionType === 'radio') {
|
|
|
- // this.setSelectionRadio(row)
|
|
|
- // this.$emit('selection-change', row)
|
|
|
- // } else {
|
|
|
- // this.$refs.elTable.toggleRowSelection(row)
|
|
|
- // }
|
|
|
+ if (this.selectionType === 'radio') {
|
|
|
+ this.setSelectionRadio(row)
|
|
|
+ this.$emit('selection-change', row)
|
|
|
+ } else {
|
|
|
+ this.$refs.elTable.toggleRowSelection(row)
|
|
|
+ }
|
|
|
this.$emit('row-click', row, event, column)
|
|
|
|
|
|
},
|