This commit is contained in:
2020-03-24 19:02:26 +00:00
parent 21295dbe98
commit 6874b5d46d
2 changed files with 19 additions and 20 deletions

View File

@@ -21,7 +21,6 @@
:prepend-icon="errorIcon"
@click:prepend="handleErrorClick"
@mousedown="dropdown"
cache-items
>
<template v-slot:prepend-item v-if="hasError()">
<div class="pl-2">
@@ -36,7 +35,7 @@
/* eslint-disable */
////////////////////////////////////////////////////////////////////////////////////////////////////////////
//NOTE: have to import lodash directly here as no combination was working with the window.$gz._
//it would not recognize window in the function call
//it would not recognize window in the function call cache-items
import _ from "../libs/lodash.min.js";
/*
States
@@ -150,11 +149,11 @@ export default {
}
}
console.log(
"watch:searchentry cleared check to see if it's a selected list item, doing search for ",
val
);
console.log("search results:", vm.searchResults);
// console.log(
// "watch:searchentry cleared check to see if it's a selected list item, doing search for ",
// val
// );
// console.log("search results:", vm.searchResults);
if (!val || vm.fetching || !vm.initialized) {
if (!vm.initialized) {
@@ -203,7 +202,7 @@ export default {
this.lastSelection = e;
},
replaceLastSelection() {
console.log("replace last selection top");
// console.log("replace last selection top");
var vm = this;
//check if searchREsults has last selection, if not then add it back in again
if (vm.lastSelection == null) {
@@ -211,30 +210,30 @@ export default {
for (var i = 0; i < vm.searchResults.length; i++) {
if (vm.searchResults[i].id == vm.value) {
console.log(
"rpl last selection null but found in list so setting last selection"
);
// console.log(
// "rpl last selection null but found in list so setting last selection"
// );
vm.lastSelection = vm.searchResults[i];
return;
}
}
console.log("RPL bailing as last selection is null and not in list");
// console.log("RPL bailing as last selection is null and not in list");
return;
}
for (var i = 0; i < vm.searchResults.length; i++) {
if (vm.searchResults[i].id == vm.lastSelection.id) {
console.log("replacelastselection bailing, it's in list already");
//console.log("replacelastselection bailing, it's in list already");
return;
}
}
vm.searchResults.push(vm.lastSelection);
console.log(
"replacelastselection bottom, search results now:",
vm.searchResults
);
// console.log(
// "replacelastselection bottom, search results now:",
// vm.searchResults
// );
},
dropdown(e) {
var vm = this;

View File

@@ -7,12 +7,12 @@
>
</gz-pick-list>
<v-divider></v-divider>
<!-- <gz-pick-list
<gz-pick-list
v-model="selectedUser"
:ayaType="ayaType().User"
:label="lt('User')"
>
</gz-pick-list> -->
</gz-pick-list>
<v-divider></v-divider>
<div>FORM Selected Widget: {{ selectedWidget }}</div>
<div>FORM Selected User: {{ selectedUser }}</div>
@@ -46,7 +46,7 @@ export default {
},
data() {
return {
selectedWidget: 2,
selectedWidget: 0,
selectedUser: 2
};
},