Ожидается, что значение индекса должно измениться, когда
saving(drop(event: CdkDragDrop<any>)
{
moveItemInArray(this.dataSource.data, event.previousIndex, event.currentIndex);
var data = {
id: this.dataSource['filteredData'][event.currentIndex],
currentIndex: event.currentIndex,
previousIndex: event.previousIndex,
id1: this.dataSource['filteredData'][event.previousIndex],
data: this.dataSource.data
};
this.httpClient.patchEmailPlan(data).subscribe(output => {
});
this.httpClient.getRequest('emailPlan/' + this.pageIndex + '/' + this.pageSize).subscribe((dataa) => {
this.dataSource = new MatTableDataSource(dataa['success']);
});
})