Improve row examination
This commit is contained in:
		| @@ -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 = []; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user