This commit is contained in:
2021-07-07 22:17:10 +00:00
parent 2f8f2c2599
commit 1644c3fe34

View File

@@ -94,6 +94,21 @@
@change="fieldValueChanged('includeWoItemDescendants')"
></v-checkbox>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-select
v-model="obj.aType"
:items="selectLists.coreAyaTypes"
item-text="name"
item-value="id"
:readonly="formState.readOnly"
:label="$ay.t('AyaType')"
ref="ayaType"
data-cy="ayaType"
:rules="[form().integerValid(this, 'aType')]"
:error-messages="form().serverErrors(this, 'aType')"
@input="fieldValueChanged('aType')"
></v-select>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-checkbox
@@ -572,7 +587,8 @@ Handlebars.registerHelper('loud', function (aString) {
{ name: "Legal", id: 9 },
{ name: "Letter", id: 10 },
{ name: "Tabloid", id: 11 }
]
],
coreAyaTypes: []
}
};
},
@@ -1178,4 +1194,16 @@ async function fetchReportData(vm) {
vm.reportData = res.data;
}
}
//////////////////////
//
//
async function populateSelectionLists(vm) {
await window.$gz.enums.fetchEnumList("coreview");
vm.selectLists.coreAyaTypes = window.$gz.enums.getSelectionList("coreview");
}
</script>