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

搜索优化

parent f77aa766
......@@ -8,7 +8,7 @@
placeholder="请输入内容"
prefix-icon="el-icon-search"
v-model="input2">
<el-button slot="append" @click="search_list()">搜索</el-button>
<el-button slot="append" @click="search_list_btn()">搜索</el-button>
</el-input>
</div>
</div>
......@@ -89,6 +89,10 @@ export default {
},
methods: {
search_list_btn(){
this.currentPage = 1
this.search_list()
},
search_list(){
if(!this.input2){
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