feat: show search item
This commit is contained in:
parent
405e1bb267
commit
4471b47c67
1 changed files with 6 additions and 4 deletions
|
|
@ -79,7 +79,7 @@ const formData = ref<ProductCreate>({
|
||||||
const currentId = ref<string>('');
|
const currentId = ref<string>('');
|
||||||
const currentIdType = ref<string>('');
|
const currentIdType = ref<string>('');
|
||||||
const resultSearchGroup = ref<Product[]>();
|
const resultSearchGroup = ref<Product[]>();
|
||||||
const resultSearchType = ref<Product>();
|
const resultSearchType = ref<Product[]>();
|
||||||
|
|
||||||
async function searchGroup() {
|
async function searchGroup() {
|
||||||
const resultList = await fetchListProductService({
|
const resultList = await fetchListProductService({
|
||||||
|
|
@ -384,10 +384,12 @@ onMounted(async () => {
|
||||||
<div class="row q-col-gutter-lg">
|
<div class="row q-col-gutter-lg">
|
||||||
<div
|
<div
|
||||||
:class="`${$q.screen.gt.sm ? 'col-3' : $q.screen.gt.xs ? 'col-6' : 'col-12'}`"
|
:class="`${$q.screen.gt.sm ? 'col-3' : $q.screen.gt.xs ? 'col-6' : 'col-12'}`"
|
||||||
v-for="(v, i) in productMode === 'type'
|
v-for="(v, i) in !!inputSearch
|
||||||
? productType
|
? productMode === 'group'
|
||||||
: !!inputSearch
|
|
||||||
? resultSearchGroup
|
? resultSearchGroup
|
||||||
|
: resultSearchType
|
||||||
|
: productMode === 'type'
|
||||||
|
? productType
|
||||||
: productGroup"
|
: productGroup"
|
||||||
:key="i"
|
:key="i"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue