This commit is contained in:
@@ -344,8 +344,13 @@ export default {
|
||||
},
|
||||
gotoIndex(val, oldVal) {
|
||||
if (val != oldVal) {
|
||||
this.selectedRow = [{ index: val }];
|
||||
this.activeItemIndex = val;
|
||||
let gotoIndex = val;
|
||||
if (val < 0) {
|
||||
//it's a create request
|
||||
gotoIndex = this.newItem();
|
||||
}
|
||||
this.selectedRow = [{ index: gotoIndex }];
|
||||
this.activeItemIndex = gotoIndex;
|
||||
this.$nextTick(() => {
|
||||
const el = this.$refs.tasktopform;
|
||||
if (el) {
|
||||
@@ -438,6 +443,7 @@ export default {
|
||||
`Items[${this.activeWoItemIndex}].tasks[${this.activeItemIndex}].task`
|
||||
);
|
||||
});
|
||||
return newIndex; //for create new on goto
|
||||
},
|
||||
unDeleteItem() {
|
||||
this.value.items[this.activeWoItemIndex].tasks[
|
||||
|
||||
Reference in New Issue
Block a user