Improve row examination

This commit is contained in:
Erki Aas 2022-10-11 19:43:12 +03:00
parent a51fc71990
commit eeb104ee60
1 changed files with 4 additions and 4 deletions

View File

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