点击展开时记录下点击的行号存到数组中
handleRowExpand(expanded,record){
if (expanded) {
if(this.expandedRowKeys.indexOf(record.deptId)==-1){
this.expandedRowKeys.push(record.deptId);
}
} else {
const index = this.expandedRowKeys.indexOf(record.deptId);
this.expandedRowKeys.splice(index, 1);
}
}