Commit 999dc1b1 authored by 张俊's avatar 张俊

搜索优化

parent f77aa766
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
placeholder="请输入内容" placeholder="请输入内容"
prefix-icon="el-icon-search" prefix-icon="el-icon-search"
v-model="input2"> v-model="input2">
<el-button slot="append" @click="search_list()">搜索</el-button> <el-button slot="append" @click="search_list_btn()">搜索</el-button>
</el-input> </el-input>
</div> </div>
</div> </div>
...@@ -89,6 +89,10 @@ export default { ...@@ -89,6 +89,10 @@ export default {
}, },
methods: { methods: {
search_list_btn(){
this.currentPage = 1
this.search_list()
},
search_list(){ search_list(){
if(!this.input2){ if(!this.input2){
this.tableData = [] this.tableData = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment