wolyshaw пре 4 година
родитељ
комит
76cdc8e24f
1 измењених фајлова са 8 додато и 1 уклоњено
  1. 8 1
      src/views/HumanResources/index.vue

+ 8 - 1
src/views/HumanResources/index.vue

@@ -87,7 +87,7 @@
           </el-select>
         </el-form-item>
         <el-form-item>
-          <el-button @click="getList" type="danger">搜索</el-button>
+          <el-button @click="search" type="danger">搜索</el-button>
           <el-button @click="onReSet" type="primary" style="background-color: #409EFF;border-color: #409EFF;">重置</el-button>
         </el-form-item>
       </el-form>
@@ -373,6 +373,13 @@ export default {
       }).catch(() => {
       })
     },
+    search() {
+      this.pageInfo = {
+        ...this.pageInfo,
+        page: 1
+      }
+      this.getList()
+    },
     onReSet() {
       this.searchForm = {...initSearch}
       this.getList()