This commit is contained in:
2020-03-23 19:25:03 +00:00
parent b9653e9851
commit 844aa39bc6

View File

@@ -1,7 +1,7 @@
<template>
<div>
<v-autocomplete
v-model="selected"
v-bind:value="value"
return-object
:items="searchResults"
:label="label"
@@ -41,9 +41,13 @@ import _ from "../libs/lodash.min.js";
/*
todo: set actual seleted ID value from our local selected whole object so outer form just gets id
todo: needs to fill in the selected value when the form opens regardless of what any other setting is, in other words it needs to ensure the pre-selected
value is in the list
todo test multiple selection
todo: needs to fill in the selected value when the form opens regardless of what any other setting is,
in other words it needs to ensure the pre-selectedvalue is in the list
Maybe an init property sent to server with query which is used to fetch teh pre-select value
Actually, traffic wise it might be best as an alternate route so that the form doesn't need to load any extras when there is already a selection
because, in general if already selected probably don't need a list of anything else
todo multiple selection
- bind value would be an array in this case, should I just change it to always be an array or maybe alternate control entirely for multiple since that's rare
todo: option to display icon to open the record selected, (we have the type and the id and in v7 you could click on most titles to navigate to that record)
if I add that then maybe need a "new" option on edit forms because it's a two step way to get to adding a new one of whatever it is without having to go
completely out of the page and hunt around lists and shit!!!
@@ -92,10 +96,10 @@ export default {
};
},
props: {
// value: {
// type: Number,
// default: null
// },
value: {
type: Number,
default: null
},
ayaType: {
type: Number,
default: 0