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) + }, }, };