diff --git a/src/views/modules/sampleManagement/technicalSpecificationList.vue b/src/views/modules/sampleManagement/technicalSpecificationList.vue index aabec97..7ab2092 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationList.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationList.vue @@ -1163,7 +1163,7 @@ if ( this.isFilterSearch === false){ this.search() } else { - this.queryByAnyField(this.filterSearchData) + this.queryByAnyField(this.filterSearchData, false) } }, @@ -1173,7 +1173,7 @@ if ( this.isFilterSearch === false){ this.search() } else { - this.queryByAnyField(this.filterSearchData) + this.queryByAnyField(this.filterSearchData, false) } }, @@ -1565,7 +1565,11 @@ }); }, - queryByAnyField(params){ + queryByAnyField(params, resetPage = true){ + // 首次搜索时重置页码为1,分页切换时不重置 + if (resetPage) { + this.pageIndex = 1 + } params.no = this.pageIndex params.size = this.pageSize params.site = this.$store.state.user.site