Commit 516ceabd authored by 邓春圆's avatar 邓春圆

分页 参数 调整

parent bfea555a
......@@ -68,7 +68,7 @@
</el-table-column>
</el-table>
<!-- 分页组件 -->
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize"
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.page" :limit.sync="queryParams.rows"
@pagination="getList"/>
</div>
</template>
......@@ -109,8 +109,8 @@ export default {
channelList: [],
// 查询参数
queryParams: {
pageNo: 1,
pageSize: 10,
page: 1,
rows: 10,
},
// 表单校验
......@@ -169,7 +169,7 @@ export default {
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNo = 1;
this.queryParams.page = 1;
this.getList();
},
}
......
......@@ -19,7 +19,8 @@ export default {
total: 0,
form: {},
queryParams: {
pageSize:20,
page: 1,
rows: 10,
transportType:3,
startWarehouseIdList:[],
destWarehouseIdList: []
......@@ -76,13 +77,13 @@ export default {
<template #header>
<el-form inline>
<el-form-item label="始发地">
<el-select v-model="queryParams.startWarehouseIdList" @change="getList()" multiple :placeholder="$t('请选择始发地')">
<el-select v-model="queryParams.startWarehouseIdList" @change="queryParams.page = 1;getList()" multiple :placeholder="$t('请选择始发地')">
<el-option v-for="item in exportWarehouseList" :label="$l(item, 'title')" :value="item.id"
:key="item.id"></el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('目的地')" prop="destWarehouseId">
<el-select @change="getList()" v-model="queryParams.destWarehouseIdList" multiple :placeholder="$t('请选择目的地')">
<el-select @change="queryParams.page = 1;getList()" v-model="queryParams.destWarehouseIdList" multiple :placeholder="$t('请选择目的地')">
<el-option v-for="item in importWarehouseList" :label="$l(item, 'title')" :value="item.id"
:key="item.id"></el-option>
</el-select>
......@@ -111,7 +112,7 @@ export default {
</template>
</el-table-column>
</el-table>
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize"
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.page" :limit.sync="queryParams.rows"
@pagination="getList"/>
</el-card>
</el-dialog>
......
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