```c
{
title: '计划日期',
dataIndex: 'parentPlanApprovalDate',
width: 150,
defaultSortOrder: 'descend', // 默认上到下为由大到小的顺序
sorter: (a, b) => {
return new Date(a.parentPlanApprovalDate) > new Date(b.parentPlanApprovalDate) ? 1 : -1;
},
customRender: function (text){
if(text == '' || text == null){
return '/';
} else {
return moment(text).format("YYYY-MM-DD");
}
}
},
05-12
3033
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
03-27
1688
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
01-18
02-28
1148
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-28
719
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
03-22
2528
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)