Commit 2423f383 by zhengxiaokui

zxk

parent 675d9809
......@@ -119,11 +119,17 @@ export default {
methods: {
//获取表格数据索引,方便删除
tableRowClassName({ row, rowIndex }) {
row.row_index = rowIndex;
Object.defineProperty(row, "row_index", {
value: rowIndex,
configurable: true,
writable: true,
enumerable: false, //不可枚举
});
},
// 记录选中行索引
handleClick(row, column, event) {
console.log(row);
this.rowIndex = row.row_index;
console.log("选择:" + this.rowIndex);
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment