给报表增加合计的功能
This commit is contained in:
@@ -44,11 +44,27 @@
|
||||
rowKey="id"
|
||||
:columns="columns"
|
||||
:dataSource="dataSource"
|
||||
:pagination="ipagination"
|
||||
:pagination="false"
|
||||
:scroll="scroll"
|
||||
:loading="loading"
|
||||
@change="handleTableChange">
|
||||
</a-table>
|
||||
<a-row :gutter="24" style="margin-top: 8px;text-align:right;">
|
||||
<a-col :md="24" :sm="24">
|
||||
<a-pagination @change="paginationChange" @showSizeChange="paginationShowSizeChange"
|
||||
size="small"
|
||||
show-size-changer
|
||||
:showQuickJumper="true"
|
||||
:page-size="ipagination.pageSize"
|
||||
:page-size-options="ipagination.pageSizeOptions"
|
||||
:total="ipagination.total"
|
||||
:show-total="(total, range) => `共 ${total} 条`">
|
||||
<template slot="buildOptionText" slot-scope="props">
|
||||
<span>{{ props.value-1 }}条/页</span>
|
||||
</template>
|
||||
</a-pagination>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</section>
|
||||
<!-- table区域-end -->
|
||||
</a-card>
|
||||
@@ -83,20 +99,17 @@
|
||||
mpList: getMpListShort(Vue.ls.get('materialPropertyList')) //扩展属性
|
||||
},
|
||||
ipagination:{
|
||||
pageSizeOptions: ['10', '20', '30', '100', '200']
|
||||
pageSize: 11,
|
||||
pageSizeOptions: ['11', '21', '31', '101', '201']
|
||||
},
|
||||
depotList: [],
|
||||
tabKey: "1",
|
||||
// 表头
|
||||
columns: [
|
||||
{
|
||||
title: '#',
|
||||
dataIndex: '',
|
||||
key:'rowIndex',
|
||||
width:40,
|
||||
align:"center",
|
||||
title: '#', dataIndex: 'rowIndex', width:40, align:"center",
|
||||
customRender:function (t,r,index) {
|
||||
return parseInt(index)+1;
|
||||
return (t !== '合计') ? (parseInt(index) + 1) : t
|
||||
}
|
||||
},
|
||||
{title: '条码', dataIndex: 'barCode', width: 120},
|
||||
@@ -122,7 +135,7 @@
|
||||
let param = Object.assign({}, this.queryParam, this.isorter);
|
||||
param.field = this.getQueryField();
|
||||
param.currentPage = this.ipagination.current;
|
||||
param.pageSize = this.ipagination.pageSize;
|
||||
param.pageSize = this.ipagination.pageSize-1;
|
||||
return param;
|
||||
},
|
||||
getDepotData() {
|
||||
|
||||
Reference in New Issue
Block a user