mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-17 22:42:22 +08:00
Improve checkbox handling for tables [SCI-12062]
This commit is contained in:
parent
3290348860
commit
63a6867ab8
1 changed files with 10 additions and 1 deletions
|
|
@ -270,7 +270,8 @@ export default {
|
|||
maxWidth: 40,
|
||||
resizable: true,
|
||||
pinned: 'left',
|
||||
lockPosition: 'left'
|
||||
lockPosition: 'left',
|
||||
sortable: false
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -453,6 +454,9 @@ export default {
|
|||
currentViewRender: this.currentViewRender,
|
||||
perPage: this.perPage
|
||||
};
|
||||
|
||||
columnsState.find((column) => column.colId === 'checkbox').pinned = 'left';
|
||||
|
||||
const settings = {
|
||||
key: this.stateKey,
|
||||
data: tableState
|
||||
|
|
@ -532,6 +536,11 @@ export default {
|
|||
this.restoreSelection();
|
||||
|
||||
this.handleScroll();
|
||||
})
|
||||
.catch(() => {
|
||||
this.dataLoading = false;
|
||||
this.$emit('tableReloaded', [], { filtered: this.searchValue.length > 0 });
|
||||
window.HelperModule.flashAlertMsg(this.i18n.t('general.error'), 'danger');
|
||||
});
|
||||
},
|
||||
handleInfiniteScroll(response) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue