Commit 0f81ae81 authored by Z's avatar Z

Z: Hot: pageNum api change fix.

parents 55fa3808 b3df9f32
......@@ -63,7 +63,7 @@
placeholder="请输入关键词"
/>
</el-form-item>
<el-button class="button buttondark" size="small" @click="handleSearch">搜索</el-button>
<el-button class="button buttondark" size="small" @click="handleSearch(1,1)">搜索</el-button>
</el-form>
</div>
<el-table
......@@ -535,7 +535,7 @@ export default {
page: {
currentPage: 1,
size: 10,
total: 100
total: 0
},
moveDialogShow: false,
counterDialog: false,
......@@ -574,6 +574,7 @@ export default {
});
},
handleTreeClick(data) {
this.formData.keywords = ''
this.title = data.name
if(data.shopId) {
this.groupId = data.shopId
......@@ -627,6 +628,7 @@ export default {
this.handleTypeChange(val,ctPage)
},
getMailList(page,ctPage) {
this.formData.keywords = ''
this.title = "全部"
this.type = 1;
this.page.currentPage = ctPage
......@@ -641,8 +643,9 @@ export default {
},
handleShopowner() {},
getNoGroupMember(page,ctPage) {
this.title = "未分组"
this.formData.keywords = ''
this.page.currentPage = ctPage
this.title = "未分组"
this.type = 2;
let params = {
pageNum: page
......@@ -650,7 +653,6 @@ export default {
getNoGroupMember(params).then(res => {
this.tableData = res.data.list;
this.page.total = this.totalNumber = this.wNumber = Number(res.data.total);
});
},
handleMemberChange(val) {
......@@ -671,12 +673,16 @@ export default {
this.getNoGroupMember(val,ctPage)
}else if (this.type == 3) {
this.getGroupMember(val,ctPage)
}else if (this.type == 4) {
this.handleSearch(val,ctPage)
}
else {
this.getStoreMember(val,ctPage)
}
},
handleSearch() {
handleSearch(page,ctPage) {
this.type = 4
this.page.currentPage = ctPage
switch (this.type) {
case 1:
this.counterId = 0;
......@@ -690,16 +696,12 @@ export default {
}
let params = {
keyWords: this.formData.keywords,
stallId: this.counterId
stallId: this.counterId,
pageNum: page
}
search(params).then(res=>{
console.log(res,"搜索结果");
let array = []
array.push(res.data.userInfo)
console.log(array,"???");
this.tableData = array;
this.page.total = 1
this.tableData = res.data.list
this.page.total = Number(res.data.total);
})
}
}
......
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