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 style="display: flex">
|
||||
<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>-->
|
||||
<button class="top-tool-btn" style="border-radius: 0px"
|
||||
type="button" @click="onsearch">
|
||||
|
||||
@@ -16,8 +16,7 @@ export default {
|
||||
},
|
||||
pageObj: { // 分页对象
|
||||
pageNo: 1,
|
||||
pageSize: defaultPageSize,
|
||||
total: ''
|
||||
pageSize: defaultPageSize
|
||||
},
|
||||
/* 工具参数 */
|
||||
tools: {
|
||||
@@ -145,6 +144,7 @@ export default {
|
||||
this.getTableData()
|
||||
},
|
||||
search (params) {
|
||||
console.info(params)
|
||||
this.pageObj.pageNo = 1
|
||||
this.getTableData({ q: params })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user