Commit 350d1e3c authored by Z's avatar Z

Z: Dot: search done.

parents 51b4e13e 3b805be3
......@@ -134,7 +134,7 @@ export default {
tableHeight: window.innerHeight * 0.5 ,
page:{
currentPage:1,
size:20,
size:10,
total:0
},
form:{
......@@ -146,13 +146,13 @@ export default {
};
},
mounted() {
this.getList()
this.getListData()
},
methods: {
getList() {
getListData() {
let param = {}
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
getList(param).then(res => {
if(res.result == 'fail'){
......@@ -160,7 +160,8 @@ export default {
_this.tableData = []
}
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 {
this.counterDialog = false
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
this.page.currentPage = val
this.getListData()
},
//搜索 根据搜索条件查询
handleSearch(){
this.getList()
this.getListData()
},
},
/* mounted() {
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