获取当前行索引 <el-button type="text" style="margin-left: 10px" v-on:click="updatesort(scope.row,scope.$index)">{{$t("置顶")}}</el-button> updatesort(row,index){ var rowindex=(this.pageIndex - 1) * this.pageSize + index + 1; console.log(rowindex, row); }