Skip to content

Commit 3ae2c1d

Browse files
committed
fix: update generateTableColumns to use primaryKey instead of hardcoded id and add teleportToTop to Select component
1 parent 54e9503 commit 3ae2c1d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

custom/visionAction.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ function generateTableColumns() {
131131
}
132132
reqFields.label = record._label;
133133
reqFields.images = images.value[index];
134-
reqFields.id = record.id;
134+
reqFields[primaryKey] = record[primaryKey];
135135
indexes.push({
136-
id: record.id,
136+
[primaryKey]: record[primaryKey],
137137
label: record._label,
138138
});
139139
tableData.push(reqFields);

custom/visionTable.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
<Select
5050
:options="convertColumnEnumToSelectOptions(props.meta.columnEnums, n)"
5151
v-model="selected[tableColumnsIndexes.findIndex(el => el[primaryKey] === item[primaryKey])][n]"
52+
:teleportToTop="true"
5253
>
5354
</Select>
5455
</div>

0 commit comments

Comments
 (0)