Commit c06eb519 by yangxiaolei

加上分页

parent 8ec19730
......@@ -66,7 +66,6 @@
</el-table-column>
</el-table>
<div class="pagination-box">
<el-pagination
style="margin-right: 30px;"
@size-change="handleSizeChange"
......@@ -74,10 +73,8 @@
:current-page.sync="pagination.pageIndex"
:page-sizes="[10, 20, 50, 100, 500]"
:page-size="pagination.pageSize"
layout="sizes, prev, pager, next"
:total="pagination.total">
</el-pagination>
</div>
</div>
</div>
<el-dialog title="节假日导入" :visible.sync="importDialog" class="eContainer-dialog" center>
......@@ -106,6 +103,7 @@
} from "~/utils/format";
import OperateParams from "../model/OperateParams"
import CodeTable from "~/config/CodeTable";
import commonFunctions from '~/mixin/commonFunctions.js';
// import {
// insertParaApv,
// importParaApvFile
......@@ -113,6 +111,7 @@
export default {
name:"holiday",
mixins: [commonFunctions],
components: {
'm-currency-list': CurrencyList
},
......@@ -129,7 +128,7 @@
//以key-value形式存储数据 发送文件
formData: new FormData(),
//文件上传进度显示
loading: false,
fileName: "",
columnsConfig: [{
type: 'selection',
......@@ -193,12 +192,14 @@
this.handleSearch();
},
async getList(){
const loading = this.loading();
const res = await this.$Api.post('/service/hol/list', {
...this.searchParams
});
if (res.data && res.data.length) {
if (res.respCode === "AAAAAA") {
loading.close()
this.tableData = res.data
this.pagination.total = res.data.length
this.pagination.total = Number(res.data.length)
}
},
httpRequest(params) {
......@@ -264,9 +265,10 @@
this.holidayList = []
this.searchParams = {
pageNum: this.pagination.pageIndex,
pageSize: this.pagination.pageSize,
...params.data
}
console.log("this.searchParams=>",this.searchParams)
this.getList()
},
handleReset() {
......
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