|
@@ -131,7 +131,7 @@ export class PageRoleComponent implements OnInit {
|
|
|
query.equalTo('parent', parent ? parent : undefined);
|
|
|
searchValue && query.contains('name', searchValue);
|
|
|
query.notEqualTo('isDeleted', true);
|
|
|
- query.select('code', 'name', 'branch', 'parent');
|
|
|
+ query.select('code', 'name', 'branch', 'parent','type');
|
|
|
query.descending('createdAt');
|
|
|
query.limit(2000);
|
|
|
let res = await query.find();
|
|
@@ -140,7 +140,7 @@ export class PageRoleComponent implements OnInit {
|
|
|
title: item.get('name'),
|
|
|
key: item.id,
|
|
|
children: [],
|
|
|
- isParent: parent ? true : false, //是否为下级单位
|
|
|
+ isParent: item.get('type') =='单位' ? true : false, //是否是最下级
|
|
|
isLeaf: false,
|
|
|
});
|
|
|
});
|