소스 검색

调整待办页列表顺序排序问题

ellisran 2 달 전
부모
커밋
5b65c0bf09
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/controller/dashboard_controller.js

+ 1 - 1
app/controller/dashboard_controller.js

@@ -145,7 +145,7 @@ module.exports = app => {
             // 获取系统维护信息
             const maintainData = await ctx.service.maintain.getDataById(1);
             const renderData = {
-                dashboardShenpis: ctx.helper._.orderBy(dashboardShenpis, ['start_audit', 'shenpi_time'], ['desc', 'desc']),
+                dashboardShenpis: ctx.helper._.orderBy(dashboardShenpis, ['start_audit', 'shenpi_time'], ['desc', 'asc']),
                 dashboardStatus,
                 role: pa.role,
                 authMobile: pa.auth_mobile,