This commit is contained in:
@@ -149,6 +149,8 @@
|
|||||||
:items="pickLists.tags"
|
:items="pickLists.tags"
|
||||||
:loading="tagSearchUnderway"
|
:loading="tagSearchUnderway"
|
||||||
:search-input.sync="searchTags"
|
:search-input.sync="searchTags"
|
||||||
|
hide-no-data
|
||||||
|
hide-selected
|
||||||
multiple
|
multiple
|
||||||
chips
|
chips
|
||||||
clearable
|
clearable
|
||||||
@@ -351,7 +353,7 @@ export default {
|
|||||||
if (res.error) {
|
if (res.error) {
|
||||||
throw res.error;
|
throw res.error;
|
||||||
}
|
}
|
||||||
//adding this to the property will automatically have it cached by the autocomplete component
|
//adding this to the property will automatically have it cached by the autocomplete component
|
||||||
//as cache-items has been set so this just needs to be set here once and all is well in future
|
//as cache-items has been set so this just needs to be set here once and all is well in future
|
||||||
//Any search will be kept for later so this is very efficient
|
//Any search will be kept for later so this is very efficient
|
||||||
vm.pickLists.tags = res.data;
|
vm.pickLists.tags = res.data;
|
||||||
@@ -404,7 +406,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
vm.obj = res.data;
|
vm.obj = res.data;
|
||||||
//Populate tags pick list, this is required to cache it at least once and display it when form opens
|
//Populate tags pick list, this is required to cache it at least once and display it when form opens
|
||||||
vm.pickLists.tags=res.data.tags;
|
vm.pickLists.tags = res.data.tags;
|
||||||
|
|
||||||
//Update the form status
|
//Update the form status
|
||||||
vm.$gzform.setFormState({
|
vm.$gzform.setFormState({
|
||||||
@@ -547,9 +549,9 @@ export default {
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
function addTagsToPickList(vm, tags) {
|
function addTagsToPickList(vm, tags) {
|
||||||
//add tags to existing picklist so that it contains all the unique tags ever searched for or present in the object
|
//add tags to existing picklist so that it contains all the unique tags ever searched for or present in the object
|
||||||
//vm.pickLists.tags+=tags
|
//vm.pickLists.tags+=tags
|
||||||
//vm.pickLists.tags=uniqueonly(vm.pickLists.tags)
|
//vm.pickLists.tags=uniqueonly(vm.pickLists.tags)
|
||||||
}
|
}
|
||||||
|
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user