Explorar el Código

更新单位管理排序

warrior hace 6 meses
padre
commit
bbdeda298a

+ 1 - 0
projects/textbook/src/modules/nav-admin/page-role/page-role.component.ts

@@ -189,6 +189,7 @@ export class PageRoleComponent implements OnInit {
         type: item.get('type'),
       });
     });
+    parent && nodes.sort((a:any,b:any)=> a.title.localeCompare(b.title, 'zh-Hans-CN'))
     return nodes;
   }
   //搜索

+ 1 - 0
projects/textbook/src/modules/nav-province-contact/page-role/page-role.component.ts

@@ -222,6 +222,7 @@ export class PageRoleComponent implements OnInit {
         type: item.get('type')
       });
     });
+    nodes.sort((a:any,b:any)=> a.title.localeCompare(b.title, 'zh-Hans-CN'))
     return nodes;
   }
   //搜索