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