mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-25 09:45:59 +00:00
display fix
This commit is contained in:
@@ -84,6 +84,13 @@ export class PerspectiveDisplayRow {
|
|||||||
return this.subrows[rowIndex - 1];
|
return this.subrows[rowIndex - 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setRowJoinId(col: number, joinId: number) {
|
||||||
|
this.rowJoinIds[col] = joinId;
|
||||||
|
for (const subrow of this.subrows) {
|
||||||
|
subrow.setRowJoinId(col, joinId);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
subrows?: PerspectiveDisplayRow[] = [];
|
subrows?: PerspectiveDisplayRow[] = [];
|
||||||
|
|
||||||
rowData: any[] = [];
|
rowData: any[] = [];
|
||||||
@@ -248,11 +255,15 @@ export class PerspectiveDisplay {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const joinId = getJoinId();
|
const joinId = getJoinId();
|
||||||
for (let ri = 0; ri < subRowCount; ri++) {
|
|
||||||
const targetRow = resultRow.getRow(ri);
|
|
||||||
for (let i = 0; i < collectedRow.columnIndexes.length; i++) {
|
for (let i = 0; i < collectedRow.columnIndexes.length; i++) {
|
||||||
targetRow.rowJoinIds[collectedRow.columnIndexes[i]] = joinId;
|
resultRow.setRowJoinId(collectedRow.columnIndexes[i], joinId);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
// for (let ri = 0; ri < subRowCount; ri++) {
|
||||||
|
// const targetRow = resultRow.getRow(ri);
|
||||||
|
// for (let i = 0; i < collectedRow.columnIndexes.length; i++) {
|
||||||
|
// targetRow.rowJoinIds[collectedRow.columnIndexes[i]] = joinId;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user