This commit is contained in:
2021-04-07 17:08:27 +00:00
parent e412d32e90
commit d1b0defaaa
2 changed files with 8 additions and 7 deletions

View File

@@ -39,6 +39,8 @@
<v-data-table
:headers="headerList"
:items="itemList"
item-key="id"
v-model="selectedRow"
class="elevation-1"
disable-pagination
disable-filtering
@@ -100,7 +102,7 @@ export default {
GzWoItemScheduledUsers
},
data() {
return {};
return { selectedRow: [] };
},
props: {
value: {
@@ -118,9 +120,10 @@ export default {
console.log("STUB: NEW ITEM");
},
deleteItem() {
console.log("STUB: DELETE ITEM");
console.log(`STUB: DELETE ITEM id:${this.selectedRow[0].id}`);
},
selectItem: function(item) {
this.selectedRow = [item];
this.pvm.selectedItemIndex = item.index;
},
form() {