This commit is contained in:
@@ -207,6 +207,14 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
isDeleted: function() {
|
isDeleted: function() {
|
||||||
|
if (
|
||||||
|
this.value.items[this.activeWoItemIndex].scheduledUsers[
|
||||||
|
this.activeItemIndex
|
||||||
|
] == null
|
||||||
|
) {
|
||||||
|
this.setDefaultView();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
this.value.items[this.activeWoItemIndex].scheduledUsers[
|
this.value.items[this.activeWoItemIndex].scheduledUsers[
|
||||||
this.activeItemIndex
|
this.activeItemIndex
|
||||||
|
|||||||
@@ -149,7 +149,19 @@ export default {
|
|||||||
default: null,
|
default: null,
|
||||||
type: Object
|
type: Object
|
||||||
}
|
}
|
||||||
|
// , resetSelections: {
|
||||||
|
// default: false,
|
||||||
|
// type: Boolean
|
||||||
|
// }
|
||||||
},
|
},
|
||||||
|
// watch: {
|
||||||
|
// resetSelections: function(newValue, oldValue) {
|
||||||
|
// if (newValue != oldValue) {
|
||||||
|
// // this.activeItemIndex = null;
|
||||||
|
// // this.selectedRow = [];
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// },
|
||||||
methods: {
|
methods: {
|
||||||
newItem() {
|
newItem() {
|
||||||
let newIndex = this.value.items.length;
|
let newIndex = this.value.items.length;
|
||||||
@@ -244,6 +256,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
isDeleted: function() {
|
isDeleted: function() {
|
||||||
|
console.trace("woitems isDeleted:", this.activeItemIndex);
|
||||||
return this.value.items[this.activeItemIndex].deleted === true;
|
return this.value.items[this.activeItemIndex].deleted === true;
|
||||||
},
|
},
|
||||||
headerList: function() {
|
headerList: function() {
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
></v-progress-circular>
|
></v-progress-circular>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- :reset-selections="resetSelections" -->
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -166,6 +167,7 @@ export default {
|
|||||||
timeZoneName: window.$gz.locale.getResolvedTimeZoneName(),
|
timeZoneName: window.$gz.locale.getResolvedTimeZoneName(),
|
||||||
languageName: window.$gz.locale.getResolvedLanguage(),
|
languageName: window.$gz.locale.getResolvedLanguage(),
|
||||||
hour12: window.$gz.locale.getHour12(),
|
hour12: window.$gz.locale.getHour12(),
|
||||||
|
// resetSelections: false,
|
||||||
selectLists: {
|
selectLists: {
|
||||||
wostatus: [],
|
wostatus: [],
|
||||||
allowedwostatus: []
|
allowedwostatus: []
|
||||||
@@ -401,6 +403,9 @@ export default {
|
|||||||
//into a single error collection for display as normal
|
//into a single error collection for display as normal
|
||||||
//########################################################
|
//########################################################
|
||||||
|
|
||||||
|
// //first of all reset all selections (toggle) so that children aren't stuck with an active item that is going to be deleted
|
||||||
|
// this.resetSelections = !this.resetSelections;
|
||||||
|
|
||||||
const isPost = vm.obj.id == 0;
|
const isPost = vm.obj.id == 0;
|
||||||
|
|
||||||
let err = {
|
let err = {
|
||||||
@@ -788,8 +793,8 @@ async function deleteItems(vm, err) {
|
|||||||
} else {
|
} else {
|
||||||
vm.obj.items.splice(i, 1);
|
vm.obj.items.splice(i, 1);
|
||||||
}
|
}
|
||||||
return err;
|
|
||||||
}
|
}
|
||||||
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function saveItems(vm, err) {
|
async function saveItems(vm, err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user