|
@@ -174,19 +174,19 @@ export default {
|
|
|
},
|
|
|
// 当某一行被点击时会触发该事件
|
|
|
rowClick(row, column, event) {
|
|
|
- if (this.selectionType == "radio") {
|
|
|
- if (this.dataRadioId == row.ROW_ID) {
|
|
|
- this.dataRadioId = "";
|
|
|
- row = {};
|
|
|
- } else {
|
|
|
- this.dataRadioId = row.ROW_ID;
|
|
|
- }
|
|
|
+ // if (this.selectionType == "radio") {
|
|
|
+ // if (this.dataRadioId == row.ROW_ID) {
|
|
|
+ // this.dataRadioId = "";
|
|
|
+ // row = {};
|
|
|
+ // } else {
|
|
|
+ // this.dataRadioId = row.ROW_ID;
|
|
|
+ // }
|
|
|
this.$emit("radio-change", row);
|
|
|
- }
|
|
|
+ // }
|
|
|
},
|
|
|
// 多选的选中行改变回调
|
|
|
selectionChange(selection) {
|
|
|
- this.dataSelection = selection;
|
|
|
+ // this.dataSelection = selection;
|
|
|
// 将多选中的数据抛出
|
|
|
this.$emit("selection-change", selection);
|
|
|
},
|