Добавлена возможность сокрытия дополнительных параметров поиска
This commit is contained in:
@@ -74,20 +74,6 @@
|
|||||||
</q-tooltip>
|
</q-tooltip>
|
||||||
</q-input>
|
</q-input>
|
||||||
<div class="q-mx-xs" />
|
<div class="q-mx-xs" />
|
||||||
<q-input
|
|
||||||
v-model="genreNames" :maxlength="inputMaxLength" :debounce="inputDebounce"
|
|
||||||
class="q-mt-xs" :bg-color="inputBgColor()" input-style="cursor: pointer" style="width: 200px;" label="Жанр" stack-label outlined dense clearable readonly
|
|
||||||
@click="selectGenre"
|
|
||||||
>
|
|
||||||
<template v-if="genreNames" #append>
|
|
||||||
<q-icon name="la la-times-circle" class="q-field__focusable-action" @click.stop.prevent="search.genre = ''" />
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<q-tooltip v-if="genreNames && showTooltips" :delay="500" anchor="bottom middle" content-style="font-size: 80%" max-width="400px">
|
|
||||||
{{ genreNames }}
|
|
||||||
</q-tooltip>
|
|
||||||
</q-input>
|
|
||||||
<div class="q-mx-xs" />
|
|
||||||
<q-input
|
<q-input
|
||||||
v-model="search.lang" :maxlength="inputMaxLength" :debounce="inputDebounce"
|
v-model="search.lang" :maxlength="inputMaxLength" :debounce="inputDebounce"
|
||||||
class="q-mt-xs" :bg-color="inputBgColor()" input-style="cursor: pointer" style="width: 80px;" label="Язык" stack-label outlined dense clearable readonly
|
class="q-mt-xs" :bg-color="inputBgColor()" input-style="cursor: pointer" style="width: 80px;" label="Язык" stack-label outlined dense clearable readonly
|
||||||
@@ -98,6 +84,17 @@
|
|||||||
</q-tooltip>
|
</q-tooltip>
|
||||||
</q-input>
|
</q-input>
|
||||||
|
|
||||||
|
<div class="q-mx-xs" />
|
||||||
|
<DivBtn
|
||||||
|
class="text-white bg-info q-mt-xs" :size="34" :icon-size="24" :imt="1"
|
||||||
|
:icon="(extendedParams ? 'la la-angle-double-up' : 'la la-angle-double-down')"
|
||||||
|
@click="extendedParams = !extendedParams"
|
||||||
|
>
|
||||||
|
<q-tooltip :delay="1500" anchor="bottom middle" content-style="font-size: 80%" max-width="400px">
|
||||||
|
{{ `${(extendedParams ? 'Скрыть' : 'Показать')} дополнительные критерии поиска` }}
|
||||||
|
</q-tooltip>
|
||||||
|
</DivBtn>
|
||||||
|
|
||||||
<div class="q-mx-xs" />
|
<div class="q-mx-xs" />
|
||||||
<div class="row items-center q-mt-xs">
|
<div class="row items-center q-mt-xs">
|
||||||
<div v-show="list.queryFound > 0">
|
<div v-show="list.queryFound > 0">
|
||||||
@@ -108,6 +105,21 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-show="extendedParams" class="row q-mx-md q-mb-sm items-center">
|
||||||
|
<q-input
|
||||||
|
v-model="genreNames" :maxlength="inputMaxLength" :debounce="inputDebounce"
|
||||||
|
:bg-color="inputBgColor()" input-style="cursor: pointer" style="width: 200px;" label="Жанр" stack-label outlined dense clearable readonly
|
||||||
|
@click="selectGenre"
|
||||||
|
>
|
||||||
|
<template v-if="genreNames" #append>
|
||||||
|
<q-icon name="la la-times-circle" class="q-field__focusable-action" @click.stop.prevent="search.genre = ''" />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<q-tooltip v-if="genreNames && showTooltips" :delay="500" anchor="bottom middle" content-style="font-size: 80%" max-width="400px">
|
||||||
|
{{ genreNames }}
|
||||||
|
</q-tooltip>
|
||||||
|
</q-input>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row justify-center" style="min-height: 48px">
|
<div class="row justify-center" style="min-height: 48px">
|
||||||
@@ -222,6 +234,9 @@ const componentOptions = {
|
|||||||
},
|
},
|
||||||
deep: true,
|
deep: true,
|
||||||
},
|
},
|
||||||
|
extendedParams(newValue) {
|
||||||
|
this.setSetting('extendedParams', newValue);
|
||||||
|
},
|
||||||
limit(newValue) {
|
limit(newValue) {
|
||||||
this.setSetting('limit', newValue);
|
this.setSetting('limit', newValue);
|
||||||
|
|
||||||
@@ -319,6 +334,7 @@ class Search {
|
|||||||
abCacheEnabled = true;
|
abCacheEnabled = true;
|
||||||
langDefault = '';
|
langDefault = '';
|
||||||
limit = 20;
|
limit = 20;
|
||||||
|
extendedParams = false;
|
||||||
|
|
||||||
//stuff
|
//stuff
|
||||||
prevList = {};
|
prevList = {};
|
||||||
@@ -345,9 +361,6 @@ class Search {
|
|||||||
{label: '1000', value: 1000},
|
{label: '1000', value: 1000},
|
||||||
];
|
];
|
||||||
|
|
||||||
searchResult = {};
|
|
||||||
tableData = [];
|
|
||||||
|
|
||||||
created() {
|
created() {
|
||||||
this.commit = this.$store.commit;
|
this.commit = this.$store.commit;
|
||||||
this.api = this.$root.api;
|
this.api = this.$root.api;
|
||||||
@@ -390,6 +403,7 @@ class Search {
|
|||||||
|
|
||||||
this.search.limit = settings.limit;
|
this.search.limit = settings.limit;
|
||||||
|
|
||||||
|
this.extendedParams = settings.extendedParams;
|
||||||
this.expanded = _.cloneDeep(settings.expanded);
|
this.expanded = _.cloneDeep(settings.expanded);
|
||||||
this.expandedSeries = _.cloneDeep(settings.expandedSeries);
|
this.expandedSeries = _.cloneDeep(settings.expandedSeries);
|
||||||
this.showCounts = settings.showCounts;
|
this.showCounts = settings.showCounts;
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ const state = {
|
|||||||
config: {},
|
config: {},
|
||||||
settings: {
|
settings: {
|
||||||
accessToken: '',
|
accessToken: '',
|
||||||
|
extendedParams: false,
|
||||||
limit: 20,
|
limit: 20,
|
||||||
expandedAuthor: [],
|
expandedAuthor: [],
|
||||||
expandedSeries: [],
|
expandedSeries: [],
|
||||||
|
|||||||
Reference in New Issue
Block a user