This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
//and in theory it could help if picking more than one tag that have similar selection criteria
|
||||
export default {
|
||||
beforeUpdate() {
|
||||
//Set the initial picklist items based on the record items, this only needs to be called once at init
|
||||
//Set the initial list items based on the record items, this only needs to be called once at init
|
||||
if (!this.initialized && this.value.length > 0) {
|
||||
this.sourcetags = this.value;
|
||||
this.initialized = true;
|
||||
@@ -77,7 +77,7 @@ export default {
|
||||
}
|
||||
vm.tagSearchUnderway = true;
|
||||
window.$gz.api
|
||||
.get("TagList/picklist?query=" + val) //roles
|
||||
.get("TagList/List?query=" + val) //roles
|
||||
.then(res => {
|
||||
if (res.error) {
|
||||
throw res.error;
|
||||
|
||||
Reference in New Issue
Block a user