This commit is contained in:
2019-06-19 00:21:12 +00:00
parent 28361d5b01
commit 70daa08ea6

View File

@@ -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
@@ -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)
} }
///////////////////////////// /////////////////////////////