给报表里面的数值增加排序功能

This commit is contained in:
季圣华
2021-10-13 23:57:30 +08:00
parent 5ca1dc9ef6
commit 9e738e1bc1
12 changed files with 39 additions and 40 deletions

View File

@@ -107,10 +107,10 @@
}
},
{ title: '名称', dataIndex: 'name', width: 100},
{ title: '编号', dataIndex: 'serialNo', width: 150, align: "center"},
{ title: '期初金额', dataIndex: 'initialAmount', width: 100, align: "center"},
{ title: '本月发生额', dataIndex: 'thisMonthAmount', width: 100, align: "center"},
{ title: '当前余额', dataIndex: 'currentAmount', width: 100, align: "center"},
{ title: '编号', dataIndex: 'serialNo', width: 150},
{ title: '期初金额', dataIndex: 'initialAmount', sorter: (a, b) => a.initialAmount - b.initialAmount, width: 100},
{ title: '本月发生额', dataIndex: 'thisMonthAmount', sorter: (a, b) => a.thisMonthAmount - b.thisMonthAmount, width: 100},
{ title: '当前余额', dataIndex: 'currentAmount', sorter: (a, b) => a.currentAmount - b.currentAmount, width: 100},
{ title: '账户流水', dataIndex: 'action', align:"center", width: 200,
scopedSlots: { customRender: 'action' }
}