Небольшие поправки
This commit is contained in:
@@ -101,10 +101,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-show="pageCount > 1" class="row justify-center">
|
<div class="row justify-center" style="min-height: 48px">
|
||||||
<PageScroller v-model="search.page" :page-count="pageCount" />
|
<PageScroller v-show="pageCount > 1" v-model="search.page" :page-count="pageCount" />
|
||||||
</div>
|
</div>
|
||||||
<div v-show="pageCount <= 1" class="q-my-sm" />
|
|
||||||
|
|
||||||
<!-- Формирование списка ------------------------------------------------------------------------>
|
<!-- Формирование списка ------------------------------------------------------------------------>
|
||||||
<div v-for="item in tableData" :key="item.key" class="column" :class="{'odd-author': item.num % 2}" style="font-size: 120%">
|
<div v-for="item in tableData" :key="item.key" class="column" :class="{'odd-author': item.num % 2}" style="font-size: 120%">
|
||||||
@@ -150,10 +149,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- Формирование списка конец ------------------------------------------------------------------>
|
<!-- Формирование списка конец ------------------------------------------------------------------>
|
||||||
|
|
||||||
<div v-show="pageCount > 1" class="row justify-center">
|
<div class="row justify-center">
|
||||||
<PageScroller v-model="search.page" :page-count="pageCount" />
|
<PageScroller v-show="pageCount > 1" v-model="search.page" :page-count="pageCount" />
|
||||||
</div>
|
</div>
|
||||||
<div v-show="pageCount <= 1" class="q-my-sm" />
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Dialog v-model="settingsDialogVisible">
|
<Dialog v-model="settingsDialogVisible">
|
||||||
@@ -295,6 +293,7 @@ class Search {
|
|||||||
limit = 50;
|
limit = 50;
|
||||||
|
|
||||||
//stuff
|
//stuff
|
||||||
|
refreshing = false;
|
||||||
queryFound = -1;
|
queryFound = -1;
|
||||||
totalFound = 0;
|
totalFound = 0;
|
||||||
bookRowsOnPage = 100;
|
bookRowsOnPage = 100;
|
||||||
@@ -319,6 +318,10 @@ class Search {
|
|||||||
created() {
|
created() {
|
||||||
this.commit = this.$store.commit;
|
this.commit = this.$store.commit;
|
||||||
|
|
||||||
|
/*this.refresh = _.debounce(() => {
|
||||||
|
this.refreshDebounced();
|
||||||
|
}, 1000);*/
|
||||||
|
|
||||||
this.loadSettings();
|
this.loadSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -369,7 +372,6 @@ class Search {
|
|||||||
for (const g of section.value)
|
for (const g of section.value)
|
||||||
if (genre.has(g.value))
|
if (genre.has(g.value))
|
||||||
result.push(g.name);
|
result.push(g.name);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return result.join(', ');
|
return result.join(', ');
|
||||||
@@ -380,6 +382,7 @@ class Search {
|
|||||||
this.collection = collection[0].trim();
|
this.collection = collection[0].trim();
|
||||||
|
|
||||||
this.projectName = `${this.config.name} v${this.config.version}`;
|
this.projectName = `${this.config.name} v${this.config.version}`;
|
||||||
|
this.$root.setAppTitle(`Коллекция ${this.collection}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
showSearchHelp() {
|
showSearchHelp() {
|
||||||
@@ -729,9 +732,13 @@ class Search {
|
|||||||
this.inpxHash = result.inpxHash;
|
this.inpxHash = result.inpxHash;
|
||||||
|
|
||||||
this.searchResult = result;
|
this.searchResult = result;
|
||||||
await this.updateGenreTreeIfNeeded();
|
|
||||||
await this.updateTableData();
|
await utils.sleep(1);
|
||||||
this.scrollToTop();
|
if (!this.queryExecute) {
|
||||||
|
await this.updateGenreTreeIfNeeded();
|
||||||
|
await this.updateTableData();
|
||||||
|
this.scrollToTop();
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.$root.stdDialog.alert(e.message, 'Ошибка');
|
this.$root.stdDialog.alert(e.message, 'Ошибка');
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user