luguang 2 months ago
parent
commit
d9abbf8d70
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/utils/mixin.js

+ 4 - 4
src/utils/mixin.js

@@ -153,10 +153,10 @@ export default {
       this.parentEdit = Object.assign({}, row)
       this.parentEdit = Object.assign({}, row)
     },
     },
     // 查询
     // 查询
-    search(type) {
+    search(index) {
       this.page = 1
       this.page = 1
       this.pageTotal = 0
       this.pageTotal = 0
-      if (type) {
+      if (index === 1) {
         this.getList()
         this.getList()
       } else {
       } else {
         this.getPageList()
         this.getPageList()
@@ -240,12 +240,12 @@ export default {
     },
     },
 
 
     // 重置搜索条件
     // 重置搜索条件
-    resetQuery(type) {
+    resetQuery(index) {
       this.page = 1
       this.page = 1
       this.rows = 20
       this.rows = 20
       this.pageTotal = 0
       this.pageTotal = 0
       this.queryForm = {}
       this.queryForm = {}
-      if (type) {
+      if (index === 1) {
         this.getList()
         this.getList()
       } else {
       } else {
         this.getPageList()
         this.getPageList()