diff --git a/src/components/panels/edit/modals/ShelfListing.vue b/src/components/panels/edit/modals/ShelfListing.vue index 98f98bb1..e8d61a6e 100644 --- a/src/components/panels/edit/modals/ShelfListing.vue +++ b/src/components/panels/edit/modals/ShelfListing.vue @@ -37,7 +37,9 @@ title:null, subj:null, date:null, + countParam:null, + hitCount: 10, results: [], @@ -89,7 +91,10 @@ this.$refs.shelfListingContent.style.height = newRect.height + 'px' }, - + + scrollTo: function() { + this.$refs.moreButton.scrollIntoView({ behavior: 'smooth' }); + }, onSelectElement (event) { @@ -148,16 +153,19 @@ this.title= this.title ? "&sp-title="+this.title : "" this.subj= this.subj ? "&sp-subject="+this.subj : "" this.date= this.date ? "&sp-date="+this.date : "" + this.countParam = this.hitCount ? "&count="+this.hitCount : "" this.results = [] this.searching=true this.results = await utilsNetwork.searchShelfList( this.classNumber.trim() + '' + this.cutterNumber.trim(), - this.contributor + this.title + this.subj +this.date + this.contributor + this.title + this.subj + this.date + this.countParam ) - this.searching=false + this.$nextTick(() => { + this.scrollTo(); + }); // altsubject // : @@ -259,6 +267,7 @@ Number Contributor + Uniform Title Title Date @@ -268,26 +277,25 @@