mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
display fix
This commit is contained in:
parent
9d6b581809
commit
b0279dd315
@ -84,6 +84,13 @@ export class PerspectiveDisplayRow {
|
||||
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[] = [];
|
||||
|
||||
rowData: any[] = [];
|
||||
@ -248,11 +255,15 @@ export class PerspectiveDisplay {
|
||||
}
|
||||
|
||||
const joinId = getJoinId();
|
||||
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;
|
||||
}
|
||||
for (let i = 0; i < collectedRow.columnIndexes.length; i++) {
|
||||
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;
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user