Commit 3b805be3 authored by xulili's avatar xulili

柜组列表搜索

parent 8d87583b
...@@ -134,7 +134,7 @@ export default { ...@@ -134,7 +134,7 @@ export default {
tableHeight: window.innerHeight * 0.5 , tableHeight: window.innerHeight * 0.5 ,
page:{ page:{
currentPage:1, currentPage:1,
size:20, size:10,
total:0 total:0
}, },
form:{ form:{
...@@ -146,13 +146,13 @@ export default { ...@@ -146,13 +146,13 @@ export default {
}; };
}, },
mounted() { mounted() {
this.getList() this.getListData()
}, },
methods: { methods: {
getList() { getListData() {
let param = {} let param = {}
let _this = this let _this = this
param.keyWords = this.form.keyWords? this.form.keywords : 0 param.keyWords = this.form.keyWords? this.form.keyWords : 0
param.pageNum = this.page.currentPage param.pageNum = this.page.currentPage
getList(param).then(res => { getList(param).then(res => {
if(res.result == 'fail'){ if(res.result == 'fail'){
...@@ -160,7 +160,8 @@ export default { ...@@ -160,7 +160,8 @@ export default {
_this.tableData = [] _this.tableData = []
} }
if(res.result == 'success'){ if(res.result == 'success'){
_this.tableData = res.data.adminShops _this.tableData = res.data.adminShops.list
_this.page.total = Number(res.data.adminShops.total)
} }
}) })
}, },
...@@ -219,15 +220,13 @@ export default { ...@@ -219,15 +220,13 @@ export default {
this.counterDialog = false this.counterDialog = false
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
console.log(`当前页: ${val}`); this.page.currentPage = val
this.getListData()
}, },
//搜索 根据搜索条件查询 //搜索 根据搜索条件查询
handleSearch(){ handleSearch(){
this.getList() this.getListData()
}, },
}, },
/* mounted() { /* mounted() {
this.$nextTick(() => { this.$nextTick(() => {
......
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