Improve row examination

This commit is contained in:
Erki Aas 2022-10-11 19:43:12 +03:00
parent a51fc71990
commit eeb104ee60

View File

@ -10,13 +10,12 @@
:paginationAutoPageSize=true
:row-data="null"
row-selection="single"
:onSelectionChanged="openExamineLog"
:onRowSelected="openExamineLog"
:supress-horisontal-scroll="true"
:enable-scrolling="true"
></ag-grid-vue>
<v-dialog
v-model="examineLog"
activator="parent"
>
<v-card>
<v-card-text>
@ -165,8 +164,9 @@ export default {
console.error(e, eventData)
}
},
openExamineLog () {
const selectedRow = this.gridApi.getSelectedRows()[0];
openExamineLog (row) {
const selectedRow = row.data
row.node.setSelected(false)
this.examineLog = true
const flattened = flattenObj(selectedRow)
const pairs = [];