style:查询
Showing
22 changed files
with
46 additions
and
23 deletions
... | @@ -28,6 +28,16 @@ let mixin = { | ... | @@ -28,6 +28,16 @@ let mixin = { |
28 | this.formData.pageSize = val | 28 | this.formData.pageSize = val |
29 | this.featchData() | 29 | this.featchData() |
30 | }, | 30 | }, |
31 | handleSearch () { | ||
32 | this.form.currentPage = 1 | ||
33 | this.tableData.data = [] | ||
34 | if (this.featchData) { | ||
35 | this.featchData() | ||
36 | } | ||
37 | if (this.queryClick) { | ||
38 | this.queryClick() | ||
39 | } | ||
40 | }, | ||
31 | handleCurrentChange (val) { | 41 | handleCurrentChange (val) { |
32 | this.form.currentPage = val | 42 | this.form.currentPage = val |
33 | this.featchData() | 43 | this.featchData() | ... | ... |
... | @@ -68,7 +68,7 @@ | ... | @@ -68,7 +68,7 @@ |
68 | 68 | ||
69 | <el-col :span="4" class="btnColRight"> | 69 | <el-col :span="4" class="btnColRight"> |
70 | <btn nativeType="cz" @click="resetForm">重置</btn> | 70 | <btn nativeType="cz" @click="resetForm">重置</btn> |
71 | <btn nativeType="cx" @click="handleSubmit">查询</btn> | 71 | <btn nativeType="cx" @click="handleSearch">查询</btn> |
72 | </el-col> | 72 | </el-col> |
73 | </el-row> | 73 | </el-row> |
74 | </el-form> | 74 | </el-form> | ... | ... |
... | @@ -58,7 +58,7 @@ | ... | @@ -58,7 +58,7 @@ |
58 | 58 | ||
59 | <el-col :span="6" class="btnColRight"> | 59 | <el-col :span="6" class="btnColRight"> |
60 | <btn nativeType="cz" @click="resetForm">重置</btn> | 60 | <btn nativeType="cz" @click="resetForm">重置</btn> |
61 | <btn nativeType="cx" @click="handleSubmit">查询</btn> | 61 | <btn nativeType="cx" @click="handleSearch">查询</btn> |
62 | </el-col> | 62 | </el-col> |
63 | </el-row> | 63 | </el-row> |
64 | </el-form> | 64 | </el-form> | ... | ... |
... | @@ -63,7 +63,7 @@ | ... | @@ -63,7 +63,7 @@ |
63 | <el-col :span="4" class="btnColRight"> | 63 | <el-col :span="4" class="btnColRight"> |
64 | <el-form-item> | 64 | <el-form-item> |
65 | <btn nativeType="cz" @click="resetForm">重置</btn> | 65 | <btn nativeType="cz" @click="resetForm">重置</btn> |
66 | <btn nativeType="cx" @click="handleSubmit">查询</btn> | 66 | <btn nativeType="cx" @click="handleSearch">查询</btn> |
67 | </el-form-item> | 67 | </el-form-item> |
68 | </el-col> | 68 | </el-col> |
69 | </el-row> | 69 | </el-row> | ... | ... |
... | @@ -55,7 +55,7 @@ | ... | @@ -55,7 +55,7 @@ |
55 | </el-col> | 55 | </el-col> |
56 | <el-col :span="6" class="btnColRight"> | 56 | <el-col :span="6" class="btnColRight"> |
57 | <btn nativeType="cz" @click="resetForm">重置</btn> | 57 | <btn nativeType="cz" @click="resetForm">重置</btn> |
58 | <btn nativeType="cx" @click="handleSubmit">查询</btn> | 58 | <btn nativeType="cx" @click="handleSearch">查询</btn> |
59 | </el-col> | 59 | </el-col> |
60 | </el-row> | 60 | </el-row> |
61 | </el-form> | 61 | </el-form> | ... | ... |
... | @@ -27,7 +27,7 @@ | ... | @@ -27,7 +27,7 @@ |
27 | </el-col> | 27 | </el-col> |
28 | <el-col :span="9" class="btnColRight"> | 28 | <el-col :span="9" class="btnColRight"> |
29 | <btn nativeType="cz" @click="resetForm">重置</btn> | 29 | <btn nativeType="cz" @click="resetForm">重置</btn> |
30 | <btn nativeType="cx" @click="handleSubmit">查询</btn> | 30 | <btn nativeType="cx" @click="handleSearch">查询</btn> |
31 | </el-col> | 31 | </el-col> |
32 | </el-row> | 32 | </el-row> |
33 | </el-form> | 33 | </el-form> | ... | ... |
... | @@ -55,7 +55,7 @@ | ... | @@ -55,7 +55,7 @@ |
55 | </el-col> | 55 | </el-col> |
56 | <el-col :span="6" class="btnColRight"> | 56 | <el-col :span="6" class="btnColRight"> |
57 | <btn nativeType="cz" @click="resetForm">重置</btn> | 57 | <btn nativeType="cz" @click="resetForm">重置</btn> |
58 | <btn nativeType="cx" @click="handleSubmit">查询</btn> | 58 | <btn nativeType="cx" @click="handleSearch">查询</btn> |
59 | </el-col> | 59 | </el-col> |
60 | </el-row> | 60 | </el-row> |
61 | </el-form> | 61 | </el-form> | ... | ... |
... | @@ -52,7 +52,7 @@ | ... | @@ -52,7 +52,7 @@ |
52 | </el-col> | 52 | </el-col> |
53 | <el-col :span="6" class="btnColRight mt-10"> | 53 | <el-col :span="6" class="btnColRight mt-10"> |
54 | <btn nativeType="cz" @click="resetForm">重置</btn> | 54 | <btn nativeType="cz" @click="resetForm">重置</btn> |
55 | <btn nativeType="cx" @click="handleSubmit">查询</btn> | 55 | <btn nativeType="cx" @click="handleSearch">查询</btn> |
56 | </el-col> | 56 | </el-col> |
57 | </el-row> | 57 | </el-row> |
58 | </el-form> | 58 | </el-form> | ... | ... |
... | @@ -52,7 +52,7 @@ | ... | @@ -52,7 +52,7 @@ |
52 | </el-col> | 52 | </el-col> |
53 | <el-col :span="6" class="btnColRight mt-10"> | 53 | <el-col :span="6" class="btnColRight mt-10"> |
54 | <btn nativeType="cz" @click="resetForm">重置</btn> | 54 | <btn nativeType="cz" @click="resetForm">重置</btn> |
55 | <btn nativeType="cx" @click="handleSubmit">查询</btn> | 55 | <btn nativeType="cx" @click="handleSearch">查询</btn> |
56 | </el-col> | 56 | </el-col> |
57 | </el-row> | 57 | </el-row> |
58 | </el-form> | 58 | </el-form> | ... | ... |
... | @@ -50,7 +50,7 @@ | ... | @@ -50,7 +50,7 @@ |
50 | </el-col> | 50 | </el-col> |
51 | <el-col :span="12" class="btnColRight"> | 51 | <el-col :span="12" class="btnColRight"> |
52 | <btn nativeType="cz" @click="resetForm">重置</btn> | 52 | <btn nativeType="cz" @click="resetForm">重置</btn> |
53 | <btn nativeType="cx" @click="handleSubmit">查询</btn> | 53 | <btn nativeType="cx" @click="handleSearch">查询</btn> |
54 | </el-col> | 54 | </el-col> |
55 | </el-row> | 55 | </el-row> |
56 | </el-form> | 56 | </el-form> | ... | ... |
... | @@ -47,7 +47,7 @@ | ... | @@ -47,7 +47,7 @@ |
47 | </el-col> | 47 | </el-col> |
48 | <el-col :span="12" class="btnColRight mt-10"> | 48 | <el-col :span="12" class="btnColRight mt-10"> |
49 | <btn nativeType="cz" @click="resetForm">重置</btn> | 49 | <btn nativeType="cz" @click="resetForm">重置</btn> |
50 | <btn nativeType="cx" @click="handleSubmit">查询</btn> | 50 | <btn nativeType="cx" @click="handleSearch">查询</btn> |
51 | </el-col> | 51 | </el-col> |
52 | </el-row> | 52 | </el-row> |
53 | 53 | ... | ... |
... | @@ -52,7 +52,7 @@ | ... | @@ -52,7 +52,7 @@ |
52 | </el-col> | 52 | </el-col> |
53 | <el-col :span="6" class="btnColRight mt-10"> | 53 | <el-col :span="6" class="btnColRight mt-10"> |
54 | <btn nativeType="cz" @click="resetForm">重置</btn> | 54 | <btn nativeType="cz" @click="resetForm">重置</btn> |
55 | <btn nativeType="cx" @click="handleSubmit">查询</btn> | 55 | <btn nativeType="cx" @click="handleSearch">查询</btn> |
56 | </el-col> | 56 | </el-col> |
57 | </el-row> | 57 | </el-row> |
58 | </el-form> | 58 | </el-form> | ... | ... |
... | @@ -49,7 +49,7 @@ | ... | @@ -49,7 +49,7 @@ |
49 | </el-col> | 49 | </el-col> |
50 | <el-col :span="12" class="btnColRight"> | 50 | <el-col :span="12" class="btnColRight"> |
51 | <btn nativeType="cz" @click="resetForm">重置</btn> | 51 | <btn nativeType="cz" @click="resetForm">重置</btn> |
52 | <btn nativeType="cx" @click="handleSubmit">查询</btn> | 52 | <btn nativeType="cx" @click="handleSearch">查询</btn> |
53 | </el-col> | 53 | </el-col> |
54 | </el-row> | 54 | </el-row> |
55 | </el-form> | 55 | </el-form> | ... | ... |
... | @@ -58,7 +58,7 @@ | ... | @@ -58,7 +58,7 @@ |
58 | </el-col> | 58 | </el-col> |
59 | <el-col :span="6" class="btnColRight"> | 59 | <el-col :span="6" class="btnColRight"> |
60 | <btn nativeType="cz" @click="resetForm">重置</btn> | 60 | <btn nativeType="cz" @click="resetForm">重置</btn> |
61 | <btn nativeType="cx" @click="handleSubmit">查询</btn> | 61 | <btn nativeType="cx" @click="handleSearch">查询</btn> |
62 | </el-col> | 62 | </el-col> |
63 | </el-row> | 63 | </el-row> |
64 | </el-form> | 64 | </el-form> | ... | ... |
... | @@ -48,7 +48,7 @@ | ... | @@ -48,7 +48,7 @@ |
48 | </el-col> | 48 | </el-col> |
49 | <el-col :span="19" class="btnColRight"> | 49 | <el-col :span="19" class="btnColRight"> |
50 | <btn nativeType="cz" @click="resetForm">重置</btn> | 50 | <btn nativeType="cz" @click="resetForm">重置</btn> |
51 | <btn nativeType="cx" @click="handleSubmit">查询</btn> | 51 | <btn nativeType="cx" @click="handleSearch">查询</btn> |
52 | </el-col> | 52 | </el-col> |
53 | </el-row> | 53 | </el-row> |
54 | </el-form> | 54 | </el-form> | ... | ... |
... | @@ -52,7 +52,7 @@ | ... | @@ -52,7 +52,7 @@ |
52 | </el-col> | 52 | </el-col> |
53 | <el-col :span="18" class="btnColRight mt-10"> | 53 | <el-col :span="18" class="btnColRight mt-10"> |
54 | <btn nativeType="cz" @click="resetForm">重置</btn> | 54 | <btn nativeType="cz" @click="resetForm">重置</btn> |
55 | <btn nativeType="cx" @click="handleSubmit">查询</btn> | 55 | <btn nativeType="cx" @click="handleSearch">查询</btn> |
56 | </el-col> | 56 | </el-col> |
57 | </el-row> | 57 | </el-row> |
58 | </el-form> | 58 | </el-form> | ... | ... |
... | @@ -80,7 +80,7 @@ | ... | @@ -80,7 +80,7 @@ |
80 | <el-col :span="6" class="btnColRight"> | 80 | <el-col :span="6" class="btnColRight"> |
81 | <el-form-item> | 81 | <el-form-item> |
82 | <btn nativeType="cz" @click="resetForm">重置</btn> | 82 | <btn nativeType="cz" @click="resetForm">重置</btn> |
83 | <btn nativeType="cx" @click="featchData">查询</btn> | 83 | <btn nativeType="cx" @click="handleSearch">查询</btn> |
84 | <btn nativeType="cx">存量导入</btn> | 84 | <btn nativeType="cx">存量导入</btn> |
85 | </el-form-item> | 85 | </el-form-item> |
86 | </el-col> | 86 | </el-col> | ... | ... |
... | @@ -32,7 +32,7 @@ | ... | @@ -32,7 +32,7 @@ |
32 | <!-- 操作按钮 --> | 32 | <!-- 操作按钮 --> |
33 | <el-col :span="6" class="btnColRight"> | 33 | <el-col :span="6" class="btnColRight"> |
34 | <btn nativeType="cz" @click="resetForm">重置</btn> | 34 | <btn nativeType="cz" @click="resetForm">重置</btn> |
35 | <btn nativeType="cx" @click="queryClick">查询</btn> | 35 | <btn nativeType="cx" @click="handleSearch">查询</btn> |
36 | </el-col> | 36 | </el-col> |
37 | </el-row> | 37 | </el-row> |
38 | </el-form> | 38 | </el-form> | ... | ... |
... | @@ -64,7 +64,7 @@ | ... | @@ -64,7 +64,7 @@ |
64 | <!-- 操作按钮 --> | 64 | <!-- 操作按钮 --> |
65 | <el-col :span="6" class="btnColRight"> | 65 | <el-col :span="6" class="btnColRight"> |
66 | <btn nativeType="cz" @click="resetForm">重置</btn> | 66 | <btn nativeType="cz" @click="resetForm">重置</btn> |
67 | <btn nativeType="cx" @click="queryClick">查询</btn> | 67 | <btn nativeType="cx" @click="handleSearch">查询</btn> |
68 | </el-col> | 68 | </el-col> |
69 | </el-row> | 69 | </el-row> |
70 | </el-form> | 70 | </el-form> | ... | ... |
... | @@ -19,8 +19,7 @@ | ... | @@ -19,8 +19,7 @@ |
19 | </el-col> | 19 | </el-col> |
20 | <!-- 操作按钮 --> | 20 | <!-- 操作按钮 --> |
21 | <el-col :span="12" class="btnColRight"> | 21 | <el-col :span="12" class="btnColRight"> |
22 | 22 | <btn nativeType="cx" @click="handleSearch">查询</btn> | |
23 | <btn nativeType="cx" @click="queryClick">查询</btn> | ||
24 | <btn nativeType="cx" @click="handleRefresh">刷新缓存</btn> | 23 | <btn nativeType="cx" @click="handleRefresh">刷新缓存</btn> |
25 | </el-col> | 24 | </el-col> |
26 | </el-row> | 25 | </el-row> |
... | @@ -83,12 +82,16 @@ export default { | ... | @@ -83,12 +82,16 @@ export default { |
83 | // 初始化数据 | 82 | // 初始化数据 |
84 | queryClick () { | 83 | queryClick () { |
85 | getQlxxDictList({ ...this.ruleForm, ...this.pageData }).then(res => { | 84 | getQlxxDictList({ ...this.ruleForm, ...this.pageData }).then(res => { |
86 | // this.$endLoading(); | ||
87 | let { records, total } = res.result | 85 | let { records, total } = res.result |
88 | this.tableData.data = records ? records : [] | 86 | this.tableData.data = records ? records : [] |
89 | this.tableData.total = total ? total : 0 | 87 | this.tableData.total = total ? total : 0 |
90 | }) | 88 | }) |
91 | }, | 89 | }, |
90 | handleSearch () { | ||
91 | this.pageData.currentPage = 1 | ||
92 | this.tableData.data = [] | ||
93 | this.queryClick() | ||
94 | }, | ||
92 | handleRefresh () { | 95 | handleRefresh () { |
93 | this.$confirm('是否确认刷新', '提示', { | 96 | this.$confirm('是否确认刷新', '提示', { |
94 | confirmButtonText: '确定', | 97 | confirmButtonText: '确定', | ... | ... |
... | @@ -12,7 +12,7 @@ | ... | @@ -12,7 +12,7 @@ |
12 | </el-form-item> | 12 | </el-form-item> |
13 | </el-col> | 13 | </el-col> |
14 | <el-col :span="18" class="btnColRight"> | 14 | <el-col :span="18" class="btnColRight"> |
15 | <btn nativeType="cx" @click="handleSubmit">搜索</btn> | 15 | <btn nativeType="cx" @click="handleSearch">查询</btn> |
16 | <btn nativeType="cx" @click="handleAdd">新增</btn> | 16 | <btn nativeType="cx" @click="handleAdd">新增</btn> |
17 | </el-col> | 17 | </el-col> |
18 | </el-row> | 18 | </el-row> |
... | @@ -112,6 +112,11 @@ export default { | ... | @@ -112,6 +112,11 @@ export default { |
112 | this.taskData = null | 112 | this.taskData = null |
113 | this.$refs.task.isShow() | 113 | this.$refs.task.isShow() |
114 | }, | 114 | }, |
115 | handleSearch () { | ||
116 | this.form.currentPage = 1 | ||
117 | this.tableData.data = [] | ||
118 | this.queryClick() | ||
119 | }, | ||
115 | async featchData () { | 120 | async featchData () { |
116 | try { | 121 | try { |
117 | this.form = Object.assign(this.form, this.formData) | 122 | this.form = Object.assign(this.form, this.formData) | ... | ... |
... | @@ -25,7 +25,7 @@ | ... | @@ -25,7 +25,7 @@ |
25 | <!-- 操作按钮 --> | 25 | <!-- 操作按钮 --> |
26 | <el-col :span="6" class="btnColRight"> | 26 | <el-col :span="6" class="btnColRight"> |
27 | <btn nativeType="cx" @click="handleUpdateDic">刷新缓存</btn> | 27 | <btn nativeType="cx" @click="handleUpdateDic">刷新缓存</btn> |
28 | <btn nativeType="cx" @click="handleSubmit">查询</btn> | 28 | <btn nativeType="cx" @click="handleSearch">查询</btn> |
29 | </el-col> | 29 | </el-col> |
30 | </el-row> | 30 | </el-row> |
31 | </el-form> | 31 | </el-form> |
... | @@ -134,6 +134,11 @@ export default { | ... | @@ -134,6 +134,11 @@ export default { |
134 | this.$refs.msg.messageShow(); | 134 | this.$refs.msg.messageShow(); |
135 | } | 135 | } |
136 | }, | 136 | }, |
137 | handleSearch () { | ||
138 | this.form.currentPage = 1 | ||
139 | this.tableData.data = [] | ||
140 | this.featchData() | ||
141 | }, | ||
137 | async handleEdit (index, row) { | 142 | async handleEdit (index, row) { |
138 | try { | 143 | try { |
139 | let { result: res } = await ruleConfig.eidtConfigRule(row.BSM_YWSJB); | 144 | let { result: res } = await ruleConfig.eidtConfigRule(row.BSM_YWSJB); | ... | ... |
-
Please register or sign in to post a comment