This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user