c18ef025 by yangwei

业务办理表单查询增加重置功能

1 parent 6f1307a3
1 import { mapGetters } from 'vuex' 1 import { mapGetters } from 'vuex'
2 import { defaultParameters } from "../../views/ywbl/ywsq/javascript/publicDefaultPar";
2 export default { 3 export default {
3 data () { 4 data () {
4 return { 5 return {
...@@ -39,6 +40,13 @@ export default { ...@@ -39,6 +40,13 @@ export default {
39 let deleteAfterPage = Math.ceil((this.tableData.total - 1) / this.pageData.pageSize) 40 let deleteAfterPage = Math.ceil((this.tableData.total - 1) / this.pageData.pageSize)
40 let currentPage = this.pageData.currentPage > deleteAfterPage ? deleteAfterPage : this.pageData.currentPage 41 let currentPage = this.pageData.currentPage > deleteAfterPage ? deleteAfterPage : this.pageData.currentPage
41 this.pageData.currentPage = currentPage < 1 ? 1 : currentPage 42 this.pageData.currentPage = currentPage < 1 ? 1 : currentPage
43 },
44 resetForm(isYwbl){
45 if (isYwbl) {
46 this.queryForm = defaultParameters.defaultParameters();
47 this.pageData.currentPage = 1;
48 this.queryClick()
49 }
42 } 50 }
43 } 51 }
44 } 52 }
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
24 </el-col> 24 </el-col>
25 <el-col :span="2" class="btnColRight"> 25 <el-col :span="2" class="btnColRight">
26 <el-form-item> 26 <el-form-item>
27 <el-button type="primary" @click="resetForm(true)">重置</el-button>
27 <el-button type="primary" @click="handleSearch">查询</el-button> 28 <el-button type="primary" @click="handleSearch">查询</el-button>
28 </el-form-item> 29 </el-form-item>
29 </el-col> 30 </el-col>
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
33 </el-col> 33 </el-col>
34 <el-col :span="2" class="btnColRight"> 34 <el-col :span="2" class="btnColRight">
35 <el-form-item> 35 <el-form-item>
36 <el-button type="primary" @click="resetForm(true)">重置</el-button>
36 <el-button type="primary" @click="handleSearch">查询</el-button> 37 <el-button type="primary" @click="handleSearch">查询</el-button>
37 </el-form-item> 38 </el-form-item>
38 </el-col> 39 </el-col>
......
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
48 48
49 <el-col :span="3" class="btnColRight"> 49 <el-col :span="3" class="btnColRight">
50 <el-form-item> 50 <el-form-item>
51 <el-button type="primary" @click="resetForm(true)">重置</el-button>
51 <el-button type="primary" @click="handleSearch">查询</el-button> 52 <el-button type="primary" @click="handleSearch">查询</el-button>
52 </el-form-item> 53 </el-form-item>
53 </el-col> 54 </el-col>
...@@ -98,6 +99,7 @@ ...@@ -98,6 +99,7 @@
98 99
99 <el-col :span="3" class="btnColRight"> 100 <el-col :span="3" class="btnColRight">
100 <el-form-item> 101 <el-form-item>
102 <el-button type="primary" @click="resetForm(true)">重置</el-button>
101 <el-button type="primary" @click="handleSearch">查询</el-button> 103 <el-button type="primary" @click="handleSearch">查询</el-button>
102 </el-form-item> 104 </el-form-item>
103 </el-col> 105 </el-col>
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
18 </el-col> 18 </el-col>
19 <el-col :span="4" class="btnColRight"> 19 <el-col :span="4" class="btnColRight">
20 <el-form-item> 20 <el-form-item>
21 <el-button type="primary" @click="resetForm(true)">重置</el-button>
21 <el-button type="primary" @click="handleSearch">查询</el-button> 22 <el-button type="primary" @click="handleSearch">查询</el-button>
22 </el-form-item> 23 </el-form-item>
23 </el-col> 24 </el-col>
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
18 </el-col> 18 </el-col>
19 <el-col :span="4" class="btnColRight"> 19 <el-col :span="4" class="btnColRight">
20 <el-form-item> 20 <el-form-item>
21 <el-button type="primary" @click="resetForm(true)">重置</el-button>
21 <el-button type="primary" @click="handleSearch">查询</el-button> 22 <el-button type="primary" @click="handleSearch">查询</el-button>
22 </el-form-item> 23 </el-form-item>
23 </el-col> 24 </el-col>
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
33 </el-col> 33 </el-col>
34 <el-col :span="2" class="btnColRight"> 34 <el-col :span="2" class="btnColRight">
35 <el-form-item> 35 <el-form-item>
36 <el-button type="primary" @click="resetForm(true)">重置</el-button>
36 <el-button type="primary" @click="handleSearch">查询</el-button> 37 <el-button type="primary" @click="handleSearch">查询</el-button>
37 </el-form-item> 38 </el-form-item>
38 </el-col> 39 </el-col>
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
25 </el-col> 25 </el-col>
26 <el-col :span="2" class="btnColRight"> 26 <el-col :span="2" class="btnColRight">
27 <el-form-item> 27 <el-form-item>
28 <el-button type="primary" @click="resetForm(true)">重置</el-button>
28 <el-button type="primary" @click="handleSearch">查询</el-button> 29 <el-button type="primary" @click="handleSearch">查询</el-button>
29 </el-form-item> 30 </el-form-item>
30 </el-col> 31 </el-col>
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
25 </el-col> 25 </el-col>
26 <el-col :span="2" class="btnColRight"> 26 <el-col :span="2" class="btnColRight">
27 <el-form-item> 27 <el-form-item>
28 <el-button type="primary" @click="resetForm(true)">重置</el-button>
28 <el-button type="primary" @click="handleSearch">查询</el-button> 29 <el-button type="primary" @click="handleSearch">查询</el-button>
29 </el-form-item> 30 </el-form-item>
30 </el-col> 31 </el-col>
......
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
53 </el-col> 53 </el-col>
54 <el-col :span="4" class="btnColRight"> 54 <el-col :span="4" class="btnColRight">
55 <el-form-item> 55 <el-form-item>
56 <el-button type="primary" @click="resetForm(true)">重置</el-button>
56 <el-button type="primary" @click="handleSearch">查询</el-button> 57 <el-button type="primary" @click="handleSearch">查询</el-button>
57 </el-form-item> 58 </el-form-item>
58 </el-col> 59 </el-col>
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
18 </el-col> 18 </el-col>
19 <el-col :span="4" class="btnColRight"> 19 <el-col :span="4" class="btnColRight">
20 <el-form-item> 20 <el-form-item>
21 <el-button type="primary" @click="resetForm(true)">重置</el-button>
21 <el-button type="primary" @click="handleSearch">查询</el-button> 22 <el-button type="primary" @click="handleSearch">查询</el-button>
22 </el-form-item> 23 </el-form-item>
23 </el-col> 24 </el-col>
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
25 </el-col> 25 </el-col>
26 <el-col :span="2" class="btnColRight"> 26 <el-col :span="2" class="btnColRight">
27 <el-form-item> 27 <el-form-item>
28 <el-button type="primary" @click="resetForm(true)">重置</el-button>
28 <el-button type="primary" @click="handleSearch">查询</el-button> 29 <el-button type="primary" @click="handleSearch">查询</el-button>
29 </el-form-item> 30 </el-form-item>
30 </el-col> 31 </el-col>
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
25 </el-col> 25 </el-col>
26 <el-col :span="2" class="btnColRight"> 26 <el-col :span="2" class="btnColRight">
27 <el-form-item> 27 <el-form-item>
28 <el-button type="primary" @click="resetForm(true)">重置</el-button>
28 <el-button type="primary" @click="handleSearch">查询</el-button> 29 <el-button type="primary" @click="handleSearch">查询</el-button>
29 </el-form-item> 30 </el-form-item>
30 </el-col> 31 </el-col>
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
25 </el-col> 25 </el-col>
26 <el-col :span="2" class="btnColRight"> 26 <el-col :span="2" class="btnColRight">
27 <el-form-item> 27 <el-form-item>
28 <el-button type="primary" @click="resetForm">重置</el-button>
28 <el-button type="primary" @click="handleSearch">查询</el-button> 29 <el-button type="primary" @click="handleSearch">查询</el-button>
29 </el-form-item> 30 </el-form-item>
30 </el-col> 31 </el-col>
......