This commit is contained in:
2020-03-18 22:01:50 +00:00
parent ebfd2b9dee
commit 0c4de7135e
2 changed files with 5 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ export default {
},
//////////////////////////////////
//
// Used by forms to fetch picklist data
// Used by forms to fetch selection list data
//
getSelectionList(enumKey) {
enumKey = enumKey.toLowerCase();
@@ -18,7 +18,7 @@ export default {
" is missing from store";
}
var ret = [];
//turn it into an array suitable for picklists
//turn it into an array suitable for selection lists
window.$gz._.forOwn(e, function(value, key) {
ret.push({ id: Number(key), name: value });
});
@@ -57,7 +57,7 @@ export default {
}
},
fetch(enumKey) {
return window.$gz.api.get("EnumPickList/list/" + enumKey).then(res => {
return window.$gz.api.get("EnumList/List/" + enumKey).then(res => {
if (res.error) {
throw res.error;
}