luguang 2 月之前
父节点
当前提交
d9abbf8d70
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/utils/mixin.js

+ 4 - 4
src/utils/mixin.js

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