mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-25 01:04:02 +08:00
Fix table and comments bugs [SCI-10279][SCI-10285]
This commit is contained in:
parent
aa68e18b34
commit
33cbfd4435
2 changed files with 4 additions and 2 deletions
|
@ -245,7 +245,7 @@ export default {
|
|||
</a>`;
|
||||
},
|
||||
openComments(_params, rows) {
|
||||
this.$refs.commentButton.dataset.objectId = rows[0].id;
|
||||
$(this.$refs.commentButton).data('objectId', rows[0].id);
|
||||
this.$refs.commentButton.click();
|
||||
},
|
||||
access(event, rows) {
|
||||
|
|
|
@ -206,7 +206,7 @@ export default {
|
|||
suppressCellFocus: true,
|
||||
rowHeight: 40,
|
||||
headerHeight: 40,
|
||||
getRowId: (params) => `e2e-TB-row-${params.data.id}`
|
||||
getRowId: (params) => `e2e-TB-row-${params.data.code || params.data.id}`
|
||||
};
|
||||
},
|
||||
extendedColumnDefs() {
|
||||
|
@ -359,7 +359,9 @@ export default {
|
|||
state: this.tableState.columnsState,
|
||||
applyOrder: true
|
||||
});
|
||||
|
||||
setTimeout(() => {
|
||||
this.gridApi.refreshHeader();
|
||||
this.initializing = false;
|
||||
}, 200);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue