From fbc1157e8620875ec90c0796659ac10628ff25a1 Mon Sep 17 00:00:00 2001 From: dhy1725534722 <1725534722@qq.com> Date: Thu, 3 Aug 2023 08:52:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/productsMsg/components/cosmeticsArchives.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/productsMsg/components/cosmeticsArchives.vue b/src/views/productsMsg/components/cosmeticsArchives.vue index ea4e4d5..a862733 100644 --- a/src/views/productsMsg/components/cosmeticsArchives.vue +++ b/src/views/productsMsg/components/cosmeticsArchives.vue @@ -165,7 +165,7 @@ export default { }, //搜索 searchList() { - this.changeType(this.types); + this.getData(this.types); }, getPagination(e) { console.log(e); @@ -222,8 +222,7 @@ export default { this.form1.current = msg1.data.current; this.loading = false; }, - async changeType(e) { - this.reset() + async getData(e) { if (e == 1) { this.A2 = "备案编码"; this.A3 = "生产企业"; @@ -242,6 +241,10 @@ export default { this.importSpecialCosmetics(); } }, + async changeType(e) { + this.reset() + this.getData(e) + }, }, };