This commit is contained in:
2021-04-16 18:02:05 +00:00
parent 1f2a911455
commit b47dfe6793
3 changed files with 27 additions and 1 deletions

View File

@@ -207,6 +207,14 @@ export default {
},
computed: {
isDeleted: function() {
if (
this.value.items[this.activeWoItemIndex].scheduledUsers[
this.activeItemIndex
] == null
) {
this.setDefaultView();
return true;
}
return (
this.value.items[this.activeWoItemIndex].scheduledUsers[
this.activeItemIndex

View File

@@ -149,7 +149,19 @@ export default {
default: null,
type: Object
}
// , resetSelections: {
// default: false,
// type: Boolean
// }
},
// watch: {
// resetSelections: function(newValue, oldValue) {
// if (newValue != oldValue) {
// // this.activeItemIndex = null;
// // this.selectedRow = [];
// }
// }
// },
methods: {
newItem() {
let newIndex = this.value.items.length;
@@ -244,6 +256,7 @@ export default {
},
computed: {
isDeleted: function() {
console.trace("woitems isDeleted:", this.activeItemIndex);
return this.value.items[this.activeItemIndex].deleted === true;
},
headerList: function() {