This commit is contained in:
@@ -490,7 +490,7 @@ export default {
|
|||||||
timeZoneName: window.$gz.locale.getResolvedTimeZoneName(),
|
timeZoneName: window.$gz.locale.getResolvedTimeZoneName(),
|
||||||
languageName: window.$gz.locale.getResolvedLanguage(),
|
languageName: window.$gz.locale.getResolvedLanguage(),
|
||||||
hour12: window.$gz.locale.getHour12(),
|
hour12: window.$gz.locale.getHour12(),
|
||||||
formSetting:{firstTime:"8:00"}
|
formSetting: { firstTime: "8:00" }
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -1063,6 +1063,7 @@ function generateMenu(vm) {
|
|||||||
async function initForm(vm) {
|
async function initForm(vm) {
|
||||||
await fetchTranslatedText(vm);
|
await fetchTranslatedText(vm);
|
||||||
getFormSettings(vm);
|
getFormSettings(vm);
|
||||||
|
getFormUserOptions(vm);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getFormSettings(vm) {
|
function getFormSettings(vm) {
|
||||||
@@ -1085,6 +1086,23 @@ function saveFormSettings(vm) {
|
|||||||
window.$gz.form.setFormSettings(FORM_KEY, formSettings);
|
window.$gz.form.setFormSettings(FORM_KEY, formSettings);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////
|
||||||
|
//
|
||||||
|
async function getFormUserOptions(vm) {
|
||||||
|
let res = await window.$gz.api.get(
|
||||||
|
`form-user-options/list?formKey=${FORM_KEY}`
|
||||||
|
);
|
||||||
|
console.log("getuseroptions:", res);
|
||||||
|
// if (res.error) {
|
||||||
|
// console.log("getuseroptions:",res)
|
||||||
|
// } else {
|
||||||
|
|
||||||
|
// vm.selectLists.savedFilters = res.data;
|
||||||
|
// //confirm we still have the current active filter id
|
||||||
|
// setActiveFilter(vm, vm.activeFilterId);
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// Ensures UI translated text is available
|
// Ensures UI translated text is available
|
||||||
|
|||||||
Reference in New Issue
Block a user