This commit is contained in:
@@ -143,7 +143,7 @@
|
||||
>
|
||||
<v-select
|
||||
v-model="obj.userType"
|
||||
:items="pickLists.usertypes"
|
||||
:items="selectLists.usertypes"
|
||||
item-text="name"
|
||||
item-value="id"
|
||||
:readonly="formState.readOnly"
|
||||
@@ -270,7 +270,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY,
|
||||
pickLists: {
|
||||
selectLists: {
|
||||
usertypes: []
|
||||
},
|
||||
obj: {
|
||||
@@ -654,7 +654,7 @@ function initForm(vm) {
|
||||
try {
|
||||
await fetchTranslatedText(vm);
|
||||
await window.$gz.formCustomTemplate.get(FORM_CUSTOM_TEMPLATE_KEY);
|
||||
await populatePickLists(vm);
|
||||
await populateSelectionLists(vm);
|
||||
} catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
@@ -700,10 +700,10 @@ function fetchTranslatedText(vm) {
|
||||
//////////////////////
|
||||
//
|
||||
//
|
||||
function populatePickLists(vm) {
|
||||
function populateSelectionLists(vm) {
|
||||
//ensure the pick lists required are pre-fetched
|
||||
return window.$gz.enums.fetchEnumList("usertype").then(() => {
|
||||
vm.pickLists.usertypes = window.$gz.enums.getPickList("usertype");
|
||||
vm.selectLists.usertypes = window.$gz.enums.getSelectionList("usertype");
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user