This commit is contained in:
2021-04-02 21:07:02 +00:00
parent 5ae526dbe2
commit b2b5e9ce7b
2 changed files with 4 additions and 4 deletions

View File

@@ -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 }}

View File

@@ -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 {