fix : setting下的页面在翻页、搜索时去掉向接口传递的'total'参数
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
<div v-if="showLayout.indexOf('searchInput') > -1" class="top-tool-search margin-r-20">
|
<div v-if="showLayout.indexOf('searchInput') > -1" class="top-tool-search margin-r-20">
|
||||||
<div style="display: flex">
|
<div style="display: flex">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="keyWord" size="small"></el-input>
|
v-model="keyWord" size="small" @keyup.enter.native="onsearch"></el-input>
|
||||||
<!-- <el-button icon="el-icon-search" @click="onsearch" size="small"></el-button>-->
|
<!-- <el-button icon="el-icon-search" @click="onsearch" size="small"></el-button>-->
|
||||||
<button class="top-tool-btn" style="border-radius: 0px"
|
<button class="top-tool-btn" style="border-radius: 0px"
|
||||||
type="button" @click="onsearch">
|
type="button" @click="onsearch">
|
||||||
|
|||||||
@@ -16,8 +16,7 @@ export default {
|
|||||||
},
|
},
|
||||||
pageObj: { // 分页对象
|
pageObj: { // 分页对象
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: defaultPageSize,
|
pageSize: defaultPageSize
|
||||||
total: ''
|
|
||||||
},
|
},
|
||||||
/* 工具参数 */
|
/* 工具参数 */
|
||||||
tools: {
|
tools: {
|
||||||
@@ -145,6 +144,7 @@ export default {
|
|||||||
this.getTableData()
|
this.getTableData()
|
||||||
},
|
},
|
||||||
search (params) {
|
search (params) {
|
||||||
|
console.info(params)
|
||||||
this.pageObj.pageNo = 1
|
this.pageObj.pageNo = 1
|
||||||
this.getTableData({ q: params })
|
this.getTableData({ q: params })
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user