Commit 385bef41 by 胡悦

优化人群分页搜索

1 parent 2caec486
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-05-24 18:18:53 * @Date: 2022-05-24 18:18:53
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-06-14 18:31:20 * @LastEditTime: 2022-06-15 17:25:53
--> -->
<template> <template>
<div> <div>
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="table-content"> <div class="table-content">
<GLTable v-loading="loading" ref="crowdTable" :tableData="tableData" @refreshTable="search" :tableTotal="tableTotal" :layout="layout" :tableParams="crowdTableParams" :hasNum="true" :pageConf="pageConf" :noDataImg="url" @selectionTable="handleSelectionTable" @row-click="rowClick"></GLTable> <GLTable v-loading="loading" ref="crowdTable" :tableData="tableData" @refreshTable="getCrowdList" :tableTotal="tableTotal" :layout="layout" :tableParams="crowdTableParams" :hasNum="true" :pageConf="pageConf" :noDataImg="url" @selectionTable="handleSelectionTable" @row-click="rowClick"></GLTable>
</div> </div>
</div> </div>
</div> </div>
...@@ -108,15 +108,16 @@ export default { ...@@ -108,15 +108,16 @@ export default {
this.getCrowdList() this.getCrowdList()
}) })
}, },
getCrowdList() { getCrowdList(page = { pageNum: 1, pageSize: 10 }) {
this.$refs.crowdTable.page = page
var params = { var params = {
req: { req: {
keyword: this.searchForm.keyword, keyword: this.searchForm.keyword,
merchantId: this.$globalState.session.merchantId, merchantId: this.$globalState.session.merchantId,
crowdType: 3, crowdType: 3,
filterType: 2, filterType: 2,
pageSize: this.$refs.crowdTable.page.pageSize, pageSize: page.pageSize,
pageNum: this.$refs.crowdTable.page.pageNum pageNum: page.pageNum
} }
} }
this.$apis.customerTransform.queryCrowdtree(params).then(res => { this.$apis.customerTransform.queryCrowdtree(params).then(res => {
...@@ -212,7 +213,7 @@ export default { ...@@ -212,7 +213,7 @@ export default {
this.$refs.crowdTable.$refs.crowdlistMutiTable.toggleRowSelection(row) this.$refs.crowdTable.$refs.crowdlistMutiTable.toggleRowSelection(row)
}, },
search() { search() {
this.getCrowdList() this.getCrowdList({ pageNum: 1, pageSize: 10 })
}, },
handleConfirm() { handleConfirm() {
// console.log(this.innerTags) // console.log(this.innerTags)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!