This commit is contained in:
@@ -81,7 +81,7 @@
|
||||
</v-col>
|
||||
|
||||
<GzWoItemScheduledUsers
|
||||
v-if="pvm.subRights.scheduledUsers.visible"
|
||||
v-if="subRights.scheduledUsers.visible"
|
||||
v-model="value"
|
||||
:pvm="pvm"
|
||||
data-cy="woItemScheduledUsers"
|
||||
@@ -126,6 +126,10 @@ export default {
|
||||
pvm: {
|
||||
default: null,
|
||||
type: Object
|
||||
},
|
||||
subRights: {
|
||||
default: null,
|
||||
type: Object
|
||||
}
|
||||
},
|
||||
|
||||
@@ -165,7 +169,19 @@ export default {
|
||||
if ((await window.$gz.dialog.confirmDelete()) != true) {
|
||||
return;
|
||||
}
|
||||
this.pvm.deleteItem(this.activeItemIndex);
|
||||
|
||||
let o = this.value.items[this.activeItemIndex];
|
||||
if (o.id != 0) {
|
||||
//it's a previously saved item so it needs to be removed at the server too
|
||||
//todo: event delete graphitem - this.deletedItems.push(o.id);
|
||||
this.$emit("graph-item-deleted", {
|
||||
atype: window.$gz.type.WorkOrderItem,
|
||||
id: o.id
|
||||
});
|
||||
}
|
||||
this.value.items.splice(this.activeItemIndex, 1);
|
||||
this.selectedRow = [];
|
||||
this.activeItemIndex = null; //select nothing in essence resetting a child selects and this one too clearing form
|
||||
},
|
||||
handleRowClick: function(item) {
|
||||
this.activeItemIndex = item.index;
|
||||
|
||||
Reference in New Issue
Block a user