提交记录排序
This commit is contained in:
parent
92ee88a961
commit
6da442b49e
|
|
@ -335,7 +335,13 @@ const transformSubmitRecords = (submitList) => {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
return submitList.map(item => {
|
const sortedList = [...submitList].sort((a, b) => {
|
||||||
|
const timeA = a?.createTime ? new Date(a.createTime).getTime() : 0;
|
||||||
|
const timeB = b?.createTime ? new Date(b.createTime).getTime() : 0;
|
||||||
|
return timeB - timeA;
|
||||||
|
});
|
||||||
|
|
||||||
|
return sortedList.map(item => {
|
||||||
// 处理附件:可能是逗号分隔的URL字符串
|
// 处理附件:可能是逗号分隔的URL字符串
|
||||||
let imageAttachments = [];
|
let imageAttachments = [];
|
||||||
let fileAttachments = [];
|
let fileAttachments = [];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user