diff --git a/common.props b/common.props index 3fecb17..34c0770 100644 --- a/common.props +++ b/common.props @@ -1,7 +1,7 @@ latest - 1.0.0-preview.12 + 1.0.0-preview.13 $(NoWarn);CS1591;CS0436 module true diff --git a/src/EasyAbp.ProcessManagement.Application/EasyAbp/ProcessManagement/Notifications/NotificationAppService.cs b/src/EasyAbp.ProcessManagement.Application/EasyAbp/ProcessManagement/Notifications/NotificationAppService.cs index fc66a3a..6149f67 100644 --- a/src/EasyAbp.ProcessManagement.Application/EasyAbp/ProcessManagement/Notifications/NotificationAppService.cs +++ b/src/EasyAbp.ProcessManagement.Application/EasyAbp/ProcessManagement/Notifications/NotificationAppService.cs @@ -109,6 +109,11 @@ protected override NotificationDto MapToGetOutputDto(Notification entity) return dto; } + protected override IQueryable ApplyDefaultSorting(IQueryable query) + { + return query.OrderByDescending(e => e.Id); + } + protected override NotificationDto MapToGetListOutputDto(Notification entity) { return MapToGetOutputDto(entity); diff --git a/src/EasyAbp.ProcessManagement.Application/EasyAbp/ProcessManagement/Processes/ProcessAppService.cs b/src/EasyAbp.ProcessManagement.Application/EasyAbp/ProcessManagement/Processes/ProcessAppService.cs index 6464eb5..003735f 100644 --- a/src/EasyAbp.ProcessManagement.Application/EasyAbp/ProcessManagement/Processes/ProcessAppService.cs +++ b/src/EasyAbp.ProcessManagement.Application/EasyAbp/ProcessManagement/Processes/ProcessAppService.cs @@ -101,6 +101,11 @@ protected override ProcessDto MapToGetOutputDto(Process entity) return dto; } + protected override IQueryable ApplyDefaultSorting(IQueryable query) + { + return query.OrderByDescending(e => e.Id); + } + protected override ProcessDto MapToGetListOutputDto(Process entity) { return MapToGetOutputDto(entity); diff --git a/src/EasyAbp.ProcessManagement.Web/Components/NotificationsOffcanvasWidget/Default.js b/src/EasyAbp.ProcessManagement.Web/Components/NotificationsOffcanvasWidget/Default.js index 9a1dbc5..d182c63 100644 --- a/src/EasyAbp.ProcessManagement.Web/Components/NotificationsOffcanvasWidget/Default.js +++ b/src/EasyAbp.ProcessManagement.Web/Components/NotificationsOffcanvasWidget/Default.js @@ -29,7 +29,7 @@ res.items.forEach(function (item) { if (!existingAlertIds.has(item.id)) { var newAlert = createAlert(item); - alertPlaceholder.append(newAlert) + alertPlaceholder.prepend(newAlert) var newAlertNode = document.getElementById(item.id); newAlertNode.addEventListener('close.bs.alert', function () { tryClearInterval();