wolyshaw 4 anni fa
parent
commit
61cb3e166e
1 ha cambiato i file con 14 aggiunte e 7 eliminazioni
  1. 14 7
      src/views/auditList/index.vue

+ 14 - 7
src/views/auditList/index.vue

@@ -54,7 +54,9 @@
         </el-form-item>
         <el-form-item>
           <el-button @click="search"
-                     type="danger">搜索</el-button>
+                     type="primary">搜索</el-button>
+          <el-button @click="reset"
+                     type="danger">重置</el-button>
         </el-form-item>
       </save-form>
       <div class="tableWrap">
@@ -188,6 +190,12 @@ import { getEmployeeOrgan } from "@/api/buildTeam";
 import Tooltip from "@/components/Tooltip/index";
 import { auditTypeList, auditPaymentTypeList } from "@/utils/searchArray";
 
+const initSearch = {
+  search: null,
+  paymentType: null,
+  status: 'AUDITING',
+  organId: null,
+}
 export default {
   components: { pagination, Tooltip, review },
   name: "helpCategory",
@@ -196,12 +204,7 @@ export default {
       paymentTypeList: auditPaymentTypeList,
       organList: [],
       statusList: auditTypeList,
-      searchForm: {
-        search: null,
-        paymentType: null,
-        status: 'AUDITING',
-        organId: null,
-      },
+      searchForm: {...initSearch},
       tableList: [],
 
       pageInfo: {
@@ -226,6 +229,10 @@ export default {
       this.$refs.searchForm.save(this.pageInfo, 'page')
       this.getList()
     },
+    reset() {
+      this.searchForm = {...initSearch}
+      this.search()
+    },
     getList () {
       let params = {
         page: this.pageInfo.page,