This commit is contained in:
2021-04-08 22:36:53 +00:00
parent cd63ee0753
commit 6668bdca00

View File

@@ -135,7 +135,7 @@ export default {
methods: { methods: {
newItem() { newItem() {
this.pvm.selectItem( let newIndex = this.value.items.length;
this.value.items.push({ this.value.items.push({
id: 0, id: 0,
concurrency: 0, concurrency: 0,
@@ -160,8 +160,8 @@ export default {
travels: [], travels: [],
units: [], units: [],
outsideServices: [] outsideServices: []
}) - 1 });
); this.pvm.selectItem(newIndex);
}, },
async deleteItem() { async deleteItem() {
if ((await window.$gz.dialog.confirmDelete()) != true) { if ((await window.$gz.dialog.confirmDelete()) != true) {