Commit 0f81ae81 authored by Z's avatar Z

Z: Hot: pageNum api change fix.

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