:row-class-name="tableRowClassName"
delHistogram:function(){
debugger;
if(this.selection == null){
vm.$message({
type:'warning',
message:'请选择数据'
});
return
}
//根据索引删除
this.histogramSettingData.splice(this.selection.index,1);
},
//获取当前点击行下标
tableRowClassName ({row, rowIndex}) {
debugger;
//把每一行的索引放进row
row.index = rowIndex;
},
//点击数据触发
rowClick(row, event, column) {
debugger;
if (row != null) {
this.selection = row;
}
},
好记性不如 烂键盘 日常记录