This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
<h2>WorkOrder items here</h2>
|
||||
|
||||
<!-- items:{{ value.items }}<br /> -->
|
||||
selected index: {{ pvm.selectedItemIndex }}
|
||||
<span class="text-caption"
|
||||
>[selected index: {{ pvm.selectedItemIndex }}]</span
|
||||
>
|
||||
<template v-if="value.items && value.items.length > 1">
|
||||
<h3>table of woitems here</h3>
|
||||
itemcount:{{ value.items.length }}
|
||||
|
||||
@@ -70,9 +70,7 @@ export default {
|
||||
loading: false
|
||||
});
|
||||
} else {
|
||||
console.log("Fetching wo");
|
||||
await vm.getDataFromApi(vm.$route.params.recordid); //let getdata handle loading
|
||||
console.log("fetched wo");
|
||||
}
|
||||
} else {
|
||||
window.$gz.form.setFormState({
|
||||
@@ -87,7 +85,7 @@ export default {
|
||||
});
|
||||
|
||||
generateMenu(vm);
|
||||
console.log("about to select index, vm.obj is", vm.obj);
|
||||
|
||||
if (vm.obj.items.length > 0) {
|
||||
vm.selectedItemIndex = 0;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user