From f369e43e7db59b85c6c5e03f428ad642370a1fa0 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Fri, 5 Dec 2025 14:43:14 +0800 Subject: [PATCH] =?UTF-8?q?2025-12-05=20=E6=8A=80=E6=9C=AF=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=8D=A1=E3=80=90=E6=90=9C=E7=B4=A2=E3=80=91=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sampleManagement/technicalSpecificationList.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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