fix : setting下的页面在翻页、搜索时去掉向接口传递的'total'参数

This commit is contained in:
晶晶 张
2021-08-19 10:04:46 +08:00
parent 77c65e953c
commit bb0dceb05c
2 changed files with 3 additions and 3 deletions

View File

@@ -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">

View File

@@ -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 })
} }